We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10378
    • 375 Posts
    Hello,

    I have a new project which has 4 site contexts + the default "web" context, which is currently unused. Later the configuration should be, that a manager user should only have access to it's own site context.

    web
    site1
    site2
    site3
    site4
    


    The problem is, I need to create a possibility to cross post news articles between these 4 contexts using the Articles plugin. Each manager user from each site context should be able to post an article and choose in which context this article will be visible.

    The only idea I have is to place the Articles container in the currently unused "web" context and give each manager user the permission to post and see the "web" context + it's own context. Via a template variable the user could choose in which contexts the article will be visible.

    web
     - Articles container
    site1
     - gets it's news from the "web" Articles container
    site2
     - gets it's news from the "web" Articles container
    site3
     - gets it's news from the "web" Articles container
    site4
     - gets it's news from the "web" Articles container
    


    Is this a good decision or are there other/better ways to do this?

    Thanks for your help/hints!

    Greetings,
    Martin [ed. note: gadgetto last edited this post 12 years, 1 month ago.]
      Freelancer @bitego http://www.bitego.com
      ---
      GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
      More infos here: http://www.bitego.com/extras/goodnews/
    • Take a look at Marks tutorial on how to access articles with getResources, you can make a list tv so the user can select which context the article should appear on and then filter the getResources call on each context based on the tv value or you could some sort of tagging to each context.

      Good luck.

        Benjamin Marte
        Interactive Media Developer
        Follow Me on Twitter | Visit my site | Learn MODX
        • 10378
        • 375 Posts
        This is exactly what I did! And it works like a charm! I think this is the best solution for cross posting Articles to different Contexts.

        Another little problem was, that the customer want's to post his Articles across 1 ore more contexts so it was a little bit tricky (for me) to find a method to filter the values from the TV which holds the Context names where the Article should be visible. Couldn't find a filter method doing this with a multi checkbox TV so I took a tag TV where the output is a comma separated string.

        MODx Revo is gorgeous!
          Freelancer @bitego http://www.bitego.com
          ---
          GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
          More infos here: http://www.bitego.com/extras/goodnews/
        • How were you able to keep the Articles blog entries in the appropriate context? I have the situation where I have a blog in one context and want to show the overview page and article pages from the blog in a second context. Right now with getResources I can list the articles no problem in the second context. But when the user clicks on "read more" then, they get shipped over to context 1. Of course the blog sits in context 1, but how can the user experience be that in context 2 that they stay in context 2?
            Benjamin Davis: American web designer living in Munich, Germany and a MODX Ambassador. I am also co-founder of SEDA.digital, a MODX Agency.
            • 10378
            • 375 Posts
            This is the normal behavior. As far as I know it isn't possible to do what you want.
              Freelancer @bitego http://www.bitego.com
              ---
              GoodNews - one of the most advanced and integrated Group Mailer premium add-ons for MODX Revolution!
              More infos here: http://www.bitego.com/extras/goodnews/