We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20364
    • 89 Posts
    What I am trying to do is output the rendered full content of a Document via getResources.

    I am doing it like so:

    [[!getResources? &tpl=`module_two_tab` &includeTVs=`1` &processTVs=`1` &tvPrefix=`` &resources=`43,44` ]]


    ’module_two_tab’ has a number of TVs, that are being assigned in resources 43 and 44.

    The chunk (module_two_tab) gets outputted, however it uses the default values of its TVs, instead of the ones that 43 and 44 assigned.

    Any ideas?
      • 22303 MODX Staff
      • 10,725 Posts
      Quote from: mr.johnny at Mar 18, 2011, 03:43 PM

      What I am trying to do is output the rendered full content of a Document via getResources.
      That is not the purpose of getResources. It is for summarizing portions of the content from many Resources; portions that are not dynamic based on the request being made for a specific page and/or with specific request variables.

      If you want the full output of the page somewhere else, use a SymLink Resource.
        • 6437
        • 157 Posts
        Hi OpenGeek,

        Are we any closer to having Symlinks that work across contexts?

        I read in another post on the subject that you have a work around - any chance you can give us a steer?

        Cheers,

        DM
          • 22303 MODX Staff
          • 10,725 Posts
          It’s on the list of things to do for 2.1.0 — trying to get to it in time.
            • 6437
            • 157 Posts
            Great stuff - would be a fab feature, extremely powerfull.

            Thanks,

            DM
              • 20364
              • 89 Posts
              @OpenGeek- what I am trying to do is fully output a Document as part of another Document. Basically, we have customizable "modules" that are documents in themselves, and they get loaded in to a sidebar of another Document.
                • 22303 MODX Staff
                • 10,725 Posts
                Quote from: mr.johnny at Mar 18, 2011, 04:26 PM

                @OpenGeek- what I am trying to do is fully output a Document as part of another Document. Basically, we have customizable "modules" that are documents in themselves, and they get loaded in to a sidebar of another Document.
                Do you have Template Variable tags in the content field or whatever fields you are outputting from the getResources tpl? If so, those are going to be processed as Template Variables for the Resource you are currently requesting in the browser. The Template Variable placeholders for getResources, e.g. [[+tv.MyTVName]], are for rendering the Template Variable values/output from the specific Resource the getResources is outputting to the tpl. But if the [[+content]] or [[+introtext]] or whatever you output in the tpl returns regular Template Variable tags, e.g. [[*MyTVName]], then those are not going to be the values for the summarized Resource.