We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13428 ☆ A M B ☆
    • 1,031 Posts
    You could use i.e. the docfield modifier for that. Example call for the sidebar config:

    [+element:docfield=`pagetitle`+]
      • 38630
      • 21 Posts
      Thanks for the prompt reply Jako. I understand the phx modifier call but how do I call that from my multiTV snippet call? If I have something like this:

      [!multiTV?
      &tvName=`assets`
      &docid=`[*id*]`
      &tplConfig=``
      &outerTpl=`cecWrapper`
      &rowTpl=`cecRowTpl`
      &display=`0`
      &offset=`0`
      &rows=`all`
      &randomize=`0`
      &reverse=`0`
      &orderBy=``
      &toPlaceholder=``
      &toJson=`0`
      &published=`1`
      &emptyOutput=`1`
      &noResults=``
      &outputSeparator=``
      &firstClass=``
      &lastClass=``
      &evenClass=``
      &oddClass=``
      &paginate=`0`
      &offsetKey=``
      !]


      Can I add the the phx call in my outerTpl and rowTpl? And how does the ID get passed?

      Thanks
        • 13428 ☆ A M B ☆
        • 1,031 Posts
        Use the PHx modifier inside of cecRowTpl.
          • 38630
          • 21 Posts
          I have tried that but get nothing. I have turned PHx logging on to see what that produces and it just logs the ID of the current resource. I still don't understand how the ID of the resource I am trying to get the TVs from gets passed from the MultiTV call to the PHx modififer?
            • 38630
            • 21 Posts
            Thanks for your help Jako, I got there is the end. I didn't realise that 'element' in
            [+element:docfield=`pagetitle`+] 
            needs to be the same as the MultiTV element. So in my case I had a MultiTV which is called assets and the call in my rowTpl is
            [+assets:docfield=`pagetitle`+]
            .

            I'll be sending a donation for such great work on this. Cheers
              • 21417
              • 486 Posts
              Nice work Jako.
              Thanks for sharing the solution Nathan - that was a good question and glad to see it resolved so well. Good luck with the rest of your project.
                Web design Adelaide
                http://gocreate.com.au