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 Multiple Channel Conditionals

October 22, 2012 5:13am

Subscribe [2]
  • #1 / Oct 22, 2012 5:13am

    jonwrightmedia

    75 posts

    I have a client who has two websites using MSM.

    He currently has a separate blog for each site, but now wants to display posts from both blogs on one of the sites.

    I understand how to do this in it’s most simple terms, but he also wants to decide which articles to publish on the second site using a radio button.

    How would I approach this using the channel entries tag and conditionals?

  • #2 / Oct 23, 2012 11:10am

    Shane Eckert

    7174 posts

    Hi jonparadise2,

    Thank you for your question. This is a good one!

    There are several ways you could go about this. You could use conditionals, or segment variables, or search.

    I like the idea of using search.

    So the idea would be to use something like a radio or a select drop down. I like the select drop down idea, so I will use that. Check out this screen shot http://cl.ly/image/2M0t3C3y1S0e. This gives your user the option to post to Blog A, Blog B, or both.

    Then in your channel entries tag use the search:field -

    search:blog_selection="BlogA"

    That should give you an idea of where to start with this and how you might get creative in implementing it.

    You can really creative and use something like the P&T Field Pack to spruce up the selection in the Control Panel.

    Let me know what you think!

    Cheers,

  • #3 / Oct 24, 2012 6:25am

    jonwrightmedia

    75 posts

    Thanks for the tips Shane, I’ll give that a go!

  • #4 / Oct 24, 2012 5:10pm

    Shane Eckert

    7174 posts

    Hey jonparadise2,

    Awesome! And I give all the credit to DAN DECKER for the brainstorming session.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases