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.

Most Recent - linking multiple weblogs

July 06, 2010 5:25am

Subscribe [2]
  • #1 / Jul 06, 2010 5:25am

    MichaelWatt

    48 posts

    After browsing the forum, I’ve figured out how to display multiple weblogs on a single page. My last hurdle is finding a way to link those weblog titles to their post page.

    I realize that I can’t use my_template_group because I’m displaying various weblogs and each has their own unique template group name.
    Could you help me out here please?

    Here is the code I’m using at the moment:

    {exp:weblog:entries orderby="date" sort="desc" weblog="on-thewater|jdm-tackle-watch|guerilla-plugging|guts|bu-chan|green-tsuribito" dynamic="off"  limit="15" disable="pagination|custom_fields|categories|member_data|trackbacks"}
    <li><a href="http://{title_permalink={my_template_group}/detail}">{title}</a></li>
    {/exp:weblog:entries}
  • #2 / Jul 06, 2010 6:34am

    Wouter Vervloet

    758 posts

    Hi Michael,

    You can use a conditional based on which weblog the entry belongs to:

    {exp:weblog:entries orderby="date" sort="desc" weblog="on-thewater|jdm-tackle-watch|guerilla-plugging|guts|bu-chan|green-tsuribito" dynamic="off"  limit="15" disable="pagination|custom_fields|categories|member_data|trackbacks"}
      {if weblog_short_name == 'on-thewater'}
        <li><a href="http://{title_permalink=water/detail}">{title}</a></li>
      {if:elseif weblog_short_name == 'jdm-tackle-watch'}
        // and so on…
      {/if}
    {/exp:weblog:entries}

    Greetz,
    Wouter

  • #3 / Jul 09, 2010 5:30am

    MichaelWatt

    48 posts

    Thanks for responding Wouter and I apologize for my late reply. Life throws some curves once in a while.

    I implemented your conditionals but when rendered, the recent articles is blank. I’m definitely not doing something right. Most likely I’m misunderstanding your use of the conditionals. Could you spare a little more time helping me with this please?

    Here is the code I used..

    <ul>
    {exp:weblog:entries orderby="date" sort="desc" weblog="on-thewater|jdm-tackle-watch|guerilla-plugging|guts|bu-chan|green-tsuribito" dynamic="off"  limit="15" disable="pagination|custom_fields|categories|member_data|trackbacks"}
    
      {if weblog_short_name == 'on-thewater'}
        <li><a href="http://{title_permalink=on-the-water/blog}">{title}</a></li>
      {if:elseif weblog_short_name == 'jdm-tackle-watch'} 
      {if:elseif weblog_short_name == 'guerilla-plugging'} 
      {if:elseif weblog_short_name == 'guts'}  
      {if:elseif weblog_short_name == 'bu-chan'} 
      {if:elseif weblog_short_name == 'green-tsuribito'} 
     {/if}
    
    {/exp:weblog:entries}  
    </ul>


    Thanks for your time!
    Michael

  • #4 / Jul 11, 2010 7:43am

    MichaelWatt

    48 posts

    Problem solved.

    I actually went with this solution…
    http://ellislab.com/forums/viewthread/67972/

    Thanks for your help Wouter!
    Michael

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

ExpressionEngine News!

#eecms, #events, #releases