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.

Unwanted returns after fields

July 09, 2011 10:18pm

Subscribe [3]
  • #1 / Jul 09, 2011 10:18pm

    BrianPx

    14 posts

    How can I create a single rendered line of multiple fields within a template?  There always seems to be a return after every field when the page renders.  For example,


    <ol class="results">
                {exp:channel:entries channel="block-schedule" paginate="bottom" limit="3"}                     
                           <li class="testionials">
                            {title}{rank}
                            6/27:{day-1}
                            6/28:{day-2}
                            6/29:{day-3}
                            6/30:{day-4}
                            7/01:{day-5}
                        </li>    
                     {paginate}
                    Page {current_page} of {total_pages} pages {pagination_links}
                    {/paginate}
                    
                {/exp:channel:entries}
               </ol>

    produces..

    ETA-Late
    Smith, John
    CA2
    6/27:
    ETA-Late
    6/28:
    ETA-Late
    6/29:
    6/30:
    ETA-D
    7/01:

    when I want it to produce…
    ETA-Late
    Smith, John CA2
    6/27: ETA-Late
    6/28: ETA-Late
    6/29:
    6/30: ETA-D
    7/01: ETA-D

  • #2 / Jul 09, 2011 10:31pm

    BrianPx

    14 posts

    OK, it seems to be related to the formatting field options within the Edit Field.  Do you normally set it to XHTML with allow override or None?  Why would you not allow overriding?

  • #3 / Jul 10, 2011 11:18am

    alexmglover

    47 posts

    If you do not set the field to none, the text fields will return wrapped in tags.  When you change your field, you can choose to override the fields you have already created.  This will remove the wrapped paragraph tags.

  • #4 / Jul 11, 2011 7:48am

    Sue Crocker

    26054 posts

    Thanks for the assist, Alex.

    BrianPx - there will be times when you don’t want to allow your client to change the formatting of a field, which is why you have that setting. I use None for formatting things that shouldn’t be wrapped in a paragraph tag.

    Does that help?

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

ExpressionEngine News!

#eecms, #events, #releases