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

    i have two CONTEXT

    deafult "web" and "blog"

    Structure:

    Web
    Page1
    Page2
    Page5 -< Have TV
    Page6-< Have TV
    Page7-< Have TV
    Page3
    Page4

    Blog
    Page1
    Page2
    Page3
    Page4

    Problem:
    When i use wayfinder or ditto to select page 5,page 6,page 7 form web context in blog context.
    That does’t work sad

    How to get access to docs from another context??
    (I need to get only TV params)

    Sorry for my English smiley
      • 28171
      • 7 Posts
      if use [[ditto ?startID=`9`]] or [[ditto ?parents=`9`]]
      Where 9 -ID "Page 2 " - it does’t work.
      if use [[ditto ?documets=`10,11,12`]] IT WORKS!!!
      10,11,12 ID of child pages ("page 5","page 6","page 7",)

      :( other snipets the same effect sad
        • 22303 MODX Staff
        • 10,725 Posts
        Ditto and Wayfinder are not yet context aware AFAIK. getResources is, but regardless, those Resources should be getting selected if they are children of the Resource with id 9.
          • 3749
          • 24,544 Posts
          Do you have any security ACLs that you set up yourself? Could it be that the user has permission for documents 10,11,12, but not for 9? Or is 9 unpublished?
            Did I help you? Buy me a beer
            Get my Book: MODX:The Official Guide
            MODX info for everyone: http://bobsguides.com/modx.html
            My MODX Extras
            Bob's Guides is now hosted at A2 MODX Hosting
            • 18654
            • 191 Posts
            Quote from: BobRay at Apr 11, 2010, 11:10 PM

            Do you have any security ACLs that you set up yourself? Could it be that the user has permission for documents 10,11,12, but not for 9? Or is 9 unpublished?
            I ran into exactly that problem - my snippet wasn’t able to access resources from other contexts. I had to add an anonymous user and a manager user to each context or it wouldn’t fetch the resources. Make sure you add the manager permission first, because I did it the other way around, and the context actually disappeared on me (I had to go into the database to add the manager as a user).

            -matt
              God does not save those who are only imaginary sinners. Be a sinner, and let your sins be strong, but let your trust in Christ be stronger, and rejoice in Christ who is the victor over sin, death, and the world.