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.

Channel field tag not displaying channel entry

July 05, 2012 5:49am

Subscribe [1]
  • #1 / Jul 05, 2012 5:49am

    Matthew Bond

    2 posts

    ExpressionEngine v2.1.3

    I have 2 channels Banner and Popup that are experiencing similar issues.

    {exp:channel:entries channel="pages"}
    {related_entries id="F_content_banner_selector"}
     {if no_related_entries}
     {/if}
     {if F_banner}{F_banner}
     <a href="http://{F_banner_link}" title="{F_banner_title}" class="ba-banner">_  <div class="ba-banner-box"> _{F_banner_image}_    {F_banner_title}   _  </div>_ </a>
     {/F_banner}{/if}
    {/related_entries}
    {/exp:channel:entries}

    What is displaying on the template is only the Field names as {F_banner_link}. If I rename the field group from {F_banner} to {F_banner2} the channel entry is displayed correctly but I then get a php error.

    file:channel/mod.channel.php, expression engine
    message: Undefined index 1
    message:invalid argument supplied for foreach()
  • #2 / Jul 05, 2012 5:27pm

    Dan Decker

    7338 posts

    Hi Matthew,

    Thanks for posting your question and welcome to the Forums!

    What kind of field is {F_banner}? In a pair like that, it leads me to believe it is a Matrix?

    Is this a feature that has suddenly stopped working?

    Any more detail you can provide would be most welcome!

    Cheers,

  • #3 / Jul 09, 2012 4:28am

    Matthew Bond

    2 posts

    Hi Dan - Your correct in saying the field pair is in relation to a matrix field type. And both channels I am having difficulties with use this matrix field type. What do you suggest I try next?

  • #4 / Jul 10, 2012 12:03pm

    Dan Decker

    7338 posts

    Hi Matthew,

    I asked:

    Is this a feature that has suddenly stopped working?

    That information would be key in determining the next step.

    Do you recall any changes that were made to your installation recently?

    What cell-types are you using inside the Matrix? Have you verified all of your field names and cell names are correct?

    Cheers,

  • #5 / Jul 10, 2012 7:48pm

    Matthew Bond

    2 posts

    Hi Dan - Their has been no significant changes made to the CMS.

    I have tried deleting the channels and entering a new simplified matrix with 2 text field types.

    {F_popupjb}
     <div class="hea"><h3>{F_popup_title}</h3><p></div><br /></p><h4>{F_popup_subtitle}</h4>
    <p> {/F_popupjb}

    And my output to the browser is the same. None of the field names are being populated by the entry.

    Matt

  • #6 / Jul 11, 2012 4:01pm

    Dan Decker

    7338 posts

    Hi Matthew,

    I’d like to see first hand what’s going on here. Be on the lookout for an email from EllisLab.

    Cheers!

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

ExpressionEngine News!

#eecms, #events, #releases