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,

    we currently set up a site with the following configuration:

    web

    - News (Articles container)

    context1

    - Home
    - News (aggregates news from the Articles container in web context)
    - Page
    - ...

    context2

    - Home
    - News (aggregates news from the Articles container in web context)
    - Page
    - ...

    context3

    - Home
    - News (aggregates news from the Articles container in web context)
    - Page
    - ...

    context4

    - Home
    - News (aggregates news from the Articles container in web context)
    - Page
    - ...


    Each of these context have a different domain - except the web context which only holds the Articles container (News) and has no domain assigned.
    We route between contexts with the superb ContextRouter plugin of Mark Hamstra.

    The demand was to have the possibility to cross-post news articles between the 4 contexts/sites. So we decided to put the Articles container into the web context and give all site admins (from all other contexts) access to the web context! With a TV we added a tag selector where the site admin could decide for which domain the news article is relevant!
    On each context (context1 - context4) we now aggregate news from the Articles container from the web context - with the help of getResources. And till this point it works like a charm!


    The problem is if a user clicks on an news header in front-end of one of one of those domains, the "404 - page not found" page is loaded.
    (by the way - same behavior when listing news articles through the AdvSearch plugin)


    Is it possible to do it in this way?

    Additional information:
    - MODx Revo (2.2.2-pl)
    - Friendly URLs = ON (tried this with Friendly URLs OFF, but also didn't work)
      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/
      • 26903
      • 1,336 Posts
      'The problem is if a user clicks on an news header...', whats does this link look like?
        Use MODx, or the cat gets it!
        • 19328
        • 433 Posts
        Hey Gadgetto, did you ever get this to work? If so, how did you do it?
          • 10378
          • 375 Posts
          Sorry for my late response. We changed the setup so that each context has its own news container. The other contexts can aggregate the news from across each container. Each news article has assigned a TV which holds information for which context the article is relevant.
          In front end we filter such articles with getResources an tvFilter.

          In meantime I don't think the first solution is possible without writing an extension...
          Also the solution we have now allowes a better right management for our context admins.

          Can't post a demo link of an article from first setup as we changed the configuration already.
            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/