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.

weblog:entries outside of an embed

September 21, 2008 8:58am

Subscribe [1]
  • #1 / Sep 21, 2008 8:58am

    Hi all,

    I’m wondering if there is a way to do the following without having to specify each custom field manually e.g title=“title” in the params and {embed:title} in the actual embed:

    {exp:weblog:entries weblog="my_weblog"}
    {embed="my/embed"}
    {/exp:weblog:entries}

    Then in the embed just have the html code.

    <h2>{title}</h2>
    
    <p>{some_custom_field}

    The reason I want to keep the weblog entries tag out side is that I want to assign the entry_id a php variable, with is then passed to another embed.

    I guess I could just wrap that other embed in the weblog entries tag again, I just wanted to try it without that extra query.

    Any ideas, suggestions would be great.

    Cheers
    Steve

  • #2 / Sep 21, 2008 1:35pm

    Lisa Wess

    20502 posts

    You can’t break up containers that way, since the parse order doesn’t parse quite like that.

    You could pass all of the weblog parameters as an embed, so that you can embed the whole weblog entries tag.

    Whatever you do, you should not nest weblog entries tags, via embed or otherwise.

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

ExpressionEngine News!

#eecms, #events, #releases