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.

Displaying category lists from two weblogs on the same page

July 29, 2007 9:59pm

Subscribe [1]
  • #1 / Jul 29, 2007 9:59pm

    *

    20 posts

    Hello,


    I’m trying something that I suppose it should be easy… let’s see:

    a. Two weblogs: japan | korea

    b. One group category (countries [1]) including this categories: Weather | Population | Politics

    c. Both weblog have the same group category assigned.

    d. In the index page I want to show two lists:

    :: Japan ::

    Weather [C1]
    Population [C2]
    Politics [C3]


    :: Korea ::

    Weather [C4]
    Population [C5]
    Politics [C6]


    * Note: Category numbers [Cn] are not shown on the page.

    ——————————————————

    This the code is embedded on the index page using {embed="includes/side-content"}. I suppose that I’m missing something because it’s not working:


    —- includes/side-content—-

    {assign_variable:my_weblog="default_site|japan|korea"}
    {assign_variable:my_template_group="site"}
    
    <div class="leftBox">
        <h4>Japan</h4>
    
    <p>{exp:weblog:categories weblog="{japan}" category_group="1" style="nested"}<br />
    <a href="http://{path={my_template_group}/category}">{category_name}</a><br />
    {/exp:weblog:categories}</p>
    
    <p></div></p>
    
    <p><div class="rightBox"><br />
        </p><h4>Korea</h4>
    
    <p>{exp:weblog:categories weblog="{korea}" category_group="1" style="nested"}<br />
    <a href="http://{path={my_template_group}/category}">{category_name}</a><br />
    {/exp:weblog:categories}</p>
    
    <p></div>


    —-

    Thank you.

  • #2 / Jul 29, 2007 11:32pm

    Ryan Irelan

    444 posts

    Try removing the curly braces from the value of

    weblog

    here:

    {exp:weblog:categories weblog="{japan}" category_group="1" style="nested"}

    It should be:

    {exp:weblog:categories weblog="japan" category_group="1" style="nested"}
  • #3 / Jul 30, 2007 4:32am

    *

    20 posts

    You are right Ryan, that solved the problem.

    Thank you,

    Abraham

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

ExpressionEngine News!

#eecms, #events, #releases