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.

Custom Weblog Fields Not Styling The Entire Entry

August 18, 2010 2:22pm

Subscribe [4]
  • #1 / Aug 18, 2010 2:22pm

    gradschool

    28 posts

    Hello,

    I set up a custom weblog field for my client that is very generic. It looks something like this. Now keep in mind, I’m showing you both the Field Label(Field_Name):

    Header(Header)
    Subhead(Subhead)
    Copy(Copy)

    Header 2(Header_2)
    Subhead 2(Subhead_2)
    Copy 2(Copy_2)

    Header 3(Header_3)
    Subhead 3(Subhead_3)
    Copy 3(Copy_3)

    This continues through “” 15(”“_15), based off the longest entry the client had at the time.

    This is how they look in the templates:

    <h1>{Header}</h1>
    <h2>{Subhead}</h2>
    <p>{Copy}</p>
    
    <p><h1>{Header_2}</h1></p><h2>{Subhead_2}</h2>
    <p>{Copy_2}</p>
    
    <p><h1>{Header_3}</h1></p><h2>{Subhead_3}</h2>
    <p>{Copy_3}

    As you can see, I have simple “Header, subhead, paragraph” tags in clusters that continue up to 15 times.

    The problem is that the

    <h2>{Subhead_""}</h2>

    tag is not working past Subhead 7. They are all tagged properly in the templates, the Field Name is correct, and if it was a CSS problem, how come it’s not affecting Subhead tags 0-6 which look fine?

    UPDATE:
    I just noticed it’s funny how your <h2> tag is styling in my thread, but my <h2> tag is not styling in my client’s site.

  • #2 / Aug 18, 2010 3:34pm

    Ingmar

    29245 posts

    Are you using url_segments in any way?

  • #3 / Aug 18, 2010 4:11pm

    gradschool

    28 posts

    No.

  • #4 / Aug 19, 2010 3:36am

    John Henry Donovan

    12339 posts

    gradschool,

    have you got a link to the page in question please?
    I am right in says you have 45 custom fields in your custom field group?

  • #5 / Aug 19, 2010 11:29am

    gradschool

    28 posts

    http://www.gradschool.umd.edu/index.php/dean/recent_developments/
    Notice how the subheads from “Diversity” on down are not bold? And you are correct, there are 45 custom weblog fields. Is there a limit?

  • #6 / Aug 19, 2010 12:08pm

    Design by Front

    106 posts

    Hey gradschool,

    I notice that you are implicitly adding the <h1>, <h2> and <p> tags:

    <h1>{Header}</h1>
    <h2>{Subhead}</h2>
    <p>{Copy}

    Can you confirm that the text formatting for all your “Header” and “Subhead” custom fields is set to “none” (Header_7+ and Subhead_7+ in particular)?

    Can I also advise that you set all your “Copy” fields formatting to “XHTML” and then remove the <p> tags from your template like so:

    <h1>{Header}</h1>
    <h2>{Subhead}</h2>
    <p>{Copy}</p>
    
    <p><h1>{Header_2}</h1></p><h2>{Subhead_2}</h2>
    <p>{Copy_2}</p>
    
    <p><h1>{Header_2}</h1></p><h2>{Subhead_2}</h2>
    <p>{Copy_2}

    (The <p> tags will be inserted automagically for your ‘Copy’ fields)

    Does this help?

  • #7 / Aug 19, 2010 1:13pm

    gradschool

    28 posts

    Made these changes, and you were right. Many of the headers and subheads were set to XHTML. They’re now set to none, so that’s good. Thanks for your help. You may now close this thread.

  • #8 / Aug 19, 2010 4:56pm

    Ingmar

    29245 posts

    Glad to see you figured it out. Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases