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 - displaying entries on a different site

November 29, 2012 7:56am

Subscribe [3]
  • #1 / Nov 29, 2012 7:56am

    Grant7077

    1 posts

    Hi guys,

    I have a MSM Expression Engine install with 6 sites running, I have mananged to feed entries such as news posts through from the sub-sites to the main sites, however this has just linked back to the original post when clicked on.

    I am trying to feed careers entries from a particular category on the main site to one of the sub-sites, I have achieved displaying them all but I can’t figure out how to display one entry fully when its clicked on as the post itself doesn’t exist on that particular site only on the main site.

    Has anyone come across this before? It is perhaps something simple but I can’t figure it out.

    Thanks,

    Grant

  • #2 / Dec 04, 2012 10:35am

    zulo

    3 posts

    Has no one come across this before? Any help would be appreciated.

    Thanks

  • #3 / Dec 04, 2012 10:50am

    Boyink!

    5011 posts

    Think of it this way - the posts don’t really exist on a front-end site. They exist in the EE database, code with a backend site ID of where they were entered.

    If you want to display an entry on a site that it wasn’t entered on, you just need a single-entry template with a channel:entries tag coded with the correct parameters to pull that entry- usually just specifying the site parameter and reading the entry URL title from the URL.

  • #4 / Dec 04, 2012 11:01am

    Grant7077

    1 posts

    Hi there, thanks for that.

    I see what you mean but I can’t figure out how to pull that particular entry using the parameters,

    ‘usually just specifying the site parameter and reading the entry URL title from the URL.’

    How would you be able to specify the entry URL title?

    Thanks again.

  • #5 / Dec 04, 2012 11:04am

    Boyink!

    5011 posts

    Usually you link to a detail template using a variable like url_title_path in your index template. This puts the entry URL title in the URL so the channel:entries tag on the detail template can read it dynamically.

    So you don’t specify it -  you link in such a way as to allow the EE code on the detail template to read it dynamically.

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

ExpressionEngine News!

#eecms, #events, #releases