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.

allow_eecode and exp:channel:entries

August 23, 2010 1:22am

Subscribe [3]
  • #1 / Aug 23, 2010 1:22am

    Brettro

    8 posts

    This is one tricky add-on! I’ve installed the allow_eecode plugin and I have been able to successfully embed a Freeform template, but I haven’t been able to successfully embed a template that has an exp:channel:entries tag in it.  Is it not possible to do this? Or am I missing some very subtle thing that needs to be changed somewhere?

    Here’s my template with the allow_eecode in it:

    {exp:channel:entries channel="{channel}" disable="pagination" status="open" limit="1" url_title="{segment_3}}
        
        ...stuff…
        
        {if activity_content_05 != ""}
        <div id="activity-content-05">
            {exp:allow_eecode embed="y"}{activity_content_05}{/exp:allow_eecode}
        </div>
        {/if}
    {/exp:channel:entries}

    And here’s what I have in the channel entry for the “activity_content_05” textarea:

    {embed="includes/bug_err"}

    And here’s the bug_err template code:

    <div class="bug">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <caption>
            ERRs
          </caption>
          <tr>
            <th scope="col" width="50%">Country Program</th>
            <th scope="col" width="50%">ERR File</th>
          </tr>
        {exp:channel:entries channel="err"}  
          <tr>
            <td width="50%">Country Program</td>
            <td width="50%"><a href="http://{err_file}">{title}</a></td>
          </tr>
        {/exp:channel:entries}  
        </table>
    </div>

    Everything above the exp:channel:entries tag displays just fine in the rendered page.

    Any help would be fantastic!

  • #2 / Aug 23, 2010 8:38pm

    Brandon Jones

    5500 posts

    Hi Brettro,

    On the bug_err template, try adding dynamic=“no” to the channel entries tag.  If there’s no change I’d suggest simplifying things for debugging. Get a single exp:channel:entries tag working inside the eecode tags and work incrementally from there.

  • #3 / Aug 29, 2010 2:35pm

    Brettro

    8 posts

    Yep, that absolutely worked.  I can’t believe I didn’t think to try that before posting.  Thank you, thank you for the suggestion!

  • #4 / Aug 30, 2010 4:13pm

    Ingmar

    29245 posts

    Glad to see Brandon was able to help. Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases