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.

tag displaying field name, not content

June 24, 2007 3:54pm

Subscribe [1]
  • #1 / Jun 24, 2007 3:54pm

    yolise

    59 posts

    I’m sure I’ve missed something simple, but I’ve just upgraded EE so I could use the related categories tag. I have the weblog set up so that the content of the “summary” field displays a thumbnail. Unfortunately, when displaying that field using the related categories tag displays {summary} rather than the content. You can see it here.

    It does work elsewhere.

    And here’s my code.

    <table border="0" cellspacing="30" cellpadding="0">
    
    {exp:weblog:entries weblog="{my_weblog}" related_categories_mode="on" orderby="date" sort="desc" limit="10" paginate="bottom"}
    <?php
    if ($i % 5 == 0) {
    echo "<tr valign=top>";
    }
    ?>
    
    <td align="center" valign="top">
    <a href="http://{title_permalink=gallery/image_full}">{summary}</a>
    </td>
    
    <?php
    if ($i % 5 == 4) {
    echo "</tr>";
    }
    $i++;
    ?>
    
    {/exp:weblog:entries}
    
    </table>

    What have I missed?

    And in a related query, what are the chances of being able to paginate those related entries? Or do I need to think of some other method?

  • #2 / Jun 24, 2007 4:43pm

    Robin Sowell

    13255 posts

    Ah- yep, that one is easy to miss.  Double check the docs- with the related cats parameter on?  You have two more parameters to play with- one of which is custom_fields=“on” - which you need to use if you want custom fields parsed.  See if that does the trick.

  • #3 / Jun 24, 2007 4:49pm

    yolise

    59 posts

    Fabulous. That did the trick!

    I did this template so long ago, I didn’t even remember it was a custom field!

    Thanks!

  • #4 / Jun 24, 2007 4:55pm

    Robin Sowell

    13255 posts

    Hee- yep, even though summary there by default, it’s still a custom field.  And know what you mean about forgetting things on old sites!  Glad you’re squared.

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

ExpressionEngine News!

#eecms, #events, #releases