ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

More flexible blog / news entries.

March 14, 2014 6:49pm

Subscribe [2]
  • #1 / Mar 14, 2014 6:49pm

    franz

    8 posts

    Hi everyone,

    Let’s say I’m working on a channel called ‘News’.
    - My News content field will be called ‘body’
    - How can I get a styling similar to what the NYT times does without playing around with HTML while creating a new news post?

    http://goo.gl/EHXWOi

    They appear to assign certain classes so images stand out or elements are formatted differently. How can I achieve something similar?

    Cheers

  • #2 / Mar 15, 2014 1:29pm

    Boyink!

    5011 posts

    You’ll have to decide how flexible you want to be. To be ultimately flexible there’s no way around having a bunch of HTML in your one body field.

    If you can define a vocabulary of layout options, then you can use a combination of other channel fields and template logic to hold the other content elements and mark them up intelligently.

    You might have an image field, then another custom field with alignment options - then in the template use conditionals that look at the alignment choice and apply it to the image.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases