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.

MSM and getting current entry's site_id inside weblog:entries

May 10, 2010 12:53pm

Subscribe [2]
  • #1 / May 10, 2010 12:53pm

    Joel Bradbury

    18 posts

    Hello,


    I’ve got a 3 site MSM set up. I’m outputting a merged list of events from all 3 sites (the weblogs are called events on all sites). In brief :

    {exp:weblog:entries 
        weblog="events" 
        site="siteA|siteB|siteC"}
        ..
    {/exp:weblog:entries}


    Inside the loop I need to add the class of the entry’s site to some elements to differentiate them in for separate styling. The {site_short_name} always returns the current site’s short name.

    Is there any tag to output the id/short_name for the entry’s site?


    Ta

  • #2 / May 10, 2010 5:42pm

    Ingmar

    29245 posts

    {entry_site_id} would be an obvious possibility, I think.

  • #3 / May 10, 2010 5:45pm

    Joel Bradbury

    18 posts

    Ok, so now I feel like an idiot.

    Don’t know how I missed that.

    Thanks Ingmar.

  • #4 / May 10, 2010 5:47pm

    Ingmar

    29245 posts

    No worries 😊 Glad it was an easy one. Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases