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.

Two weblogs on a single page

December 26, 2007 8:42pm

Subscribe [1]
  • #1 / Dec 26, 2007 8:42pm

    alex7

    130 posts

    Happy holiday, everyone! I’m trying to find a way to display information from the two weblogs. In a site index I see this blocks of code:

    {exp:weblog:category_heading weblog="{my_weblog}"}
      […]
    {/exp:weblog:category_heading}

    and

    {exp:weblog:entries weblog="{my_weblog}" orderby="date" sort="desc" limit="5" disable="member_data|trackbacks"}
      […]
    {/exp:weblog:entries}

    Variable my_weblog represent my first weblog. Lets call it “weblog1”. But I’ve got “weblog2” that I wish to be shown here as well. What should I do? Define additional variable “my_weblog2” and duplicate two quoting blocks of code like:

    {exp:weblog:category_heading weblog="{my_weblog}"}
      […]
    {/exp:weblog:category_heading}
    
    {exp:weblog:category_heading weblog="{my_weblog2}"}
      […]
    {/exp:weblog:category_heading}

    or there is another way like:

    {exp:weblog:category_heading weblog="{my_weblog}{my_weblog2}"}
      […]
    {/exp:weblog:category_heading}

    So far don’t have a clue. :sick:

  • #2 / Dec 26, 2007 9:03pm

    alex7

    130 posts

    Well… finely I found how to do it:

    {exp:weblog:category_heading weblog="{my_weblog}|{my_weblog2}"}
      […]
    {/exp:weblog:category_heading}

    same for weblog entries.

    Amazing! Looks like the flexibility of this system has no limits at all. 😜

  • #3 / Mar 18, 2008 2:20pm

    soxhead

    69 posts

    Nice. I was just wondering if this was possible—thanks for posting your solution.

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

ExpressionEngine News!

#eecms, #events, #releases