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.

a complex situation

November 17, 2010 11:04am

Subscribe [4]
  • #1 / Nov 17, 2010 11:04am

    Tony Gurnick

    94 posts

    Hi Hopefully someone can give me some advice.

    I have MSM.  And 2 sites setup identically. 

    so they have the same weblogs, same category’s on both sites.

    The have different data in the weblogs on each site.

    on one of the sites I want to use the weblog entries loop to display a list of articles from one category across both sites.

    If I use the cat id (C124) instead of cat name it obviously wont work because they are unique ids per site.  But there doesnt seem to be a way to use cat name as a param or dynamically from the url.  or am i missing something?

  • #2 / Nov 17, 2010 11:18am

    Fusion Design

    128 posts

    You could try http://loweblog.com/software/low-seg2cat/ to see if that provides what you need to do.

  • #3 / Nov 17, 2010 11:40am

    Tony Gurnick

    94 posts

    im not sure how that even relates to what i explained above.  Unless of course I have explained badly.

    I want to show a list of blog entries from both sites - where those entries are in the categorys of the same name.

  • #4 / Nov 17, 2010 12:09pm

    Fusion Design

    128 posts

    I was thinking it could work if your url is say: http://example.com/template/C124/

    {exp:weblog:entries weblog="channel" site="siteA|siteB"}
    {if "{segment_2_category_name}" == "{categories}{category_name}{/categories}"}
    {title}
    {/if}
    {/exp:weblog:entries}
  • #5 / Nov 17, 2010 1:23pm

    Tony Gurnick

    94 posts

    oic. problem is the internal count will no longer work and its not sortable

  • #6 / Nov 18, 2010 3:16am

    John Henry Donovan

    12339 posts

    Tony,

    Ok I think I get you. You have 2 categories named the same on the 2 different sites?

    {exp:weblog:entries weblog="channel" site="siteA|siteB" category="12|13"}
    {title}
    {/exp:weblog:entries}

    So you need the name in the URL to generate 2 unique ids from both sites?

    I don’t think this is going to be possible out of the box but please just clarify my understanding first.

  • #7 / Nov 18, 2010 4:49am

    Tony Gurnick

    94 posts

    Correct

  • #8 / Nov 18, 2010 3:29pm

    Ingmar

    29245 posts

    Unfortunately this is not currently an option. You could either use two entries tags, or some PHP, of course. Consider making an FR, too.

  • #9 / Nov 18, 2010 3:33pm

    Tony Gurnick

    94 posts

    Fr?

  • #10 / Nov 18, 2010 3:40pm

    Ingmar

    29245 posts

    Feature Request.

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

ExpressionEngine News!

#eecms, #events, #releases