We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    For ease of use in snippets, etc. we should allow tv’s to be processed like [*tvname:pageid*] and document objects like [*pagetitle:pageid*]
      • 1764
      • 680 Posts
      I’ve thougt about this before and it is very handy. It’s easy enough to do as a snippet but it would be nice to have as a core functionality so that it can be be used in snippets, plugins, templates, etc. without having the dependency to a snippet.

      Dependencies is one thing that we may want to address at some point.
        • 18397
        • 3,250 Posts
        This would make using tv’s in newslisting possible!
          • 6726
          • 7,075 Posts
          Not on the technical side of things but from a user and a webdesigner’s perspective, it would be a definite plus to be able to use TVs in Snippets without having to code it.

          I understand that from a coder’s perspective, using TVs in snippet is straightforward but that would limit the use of TVs by most people. Newslisting is a nice example of this, and since creating TVs is so easy in MODx you can bet people will use them. More often than not, they’ll need the ability to list and display documents in a flexible way.

          This would therefore be a real plus smiley
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l'outil id
            • 32963
            • 1,732 Posts
            Quote from: Mark at Nov 27, 2005, 07:46 PM

            For ease of use in snippets, etc. we should allow tv’s to be processed like [*tvname:pageid*] and document objects like [*pagetitle:pageid*]

            Hi Mark,

            Can explain a bit more on this? Maybe an example? Are you referring to pulling a TV from another page?

              xWisdom
              www.xwisdomhtml.com
              The fear of the Lord is the beginning of wisdom:
              MODx Co-Founder - Create and do more with less.
              • 18397
              • 3,250 Posts
              Quote from: xwisdom at Nov 28, 2005, 07:46 AM

              Are you referring to pulling a TV from another page?

              Yes indeed! For example,

              In the newslisting template you could write [*mytv:[+id+]*] and the system would output the tv corresponding with the post and not the page that the snippet is called on.
                • 32963
                • 1,732 Posts
                Hmmm,

                One thing to note here is that for every document that we pull the TV from we would have to fetch the data for that document and where possible parse that document. This might affect performance if used incorrectly.
                  xWisdom
                  www.xwisdomhtml.com
                  The fear of the Lord is the beginning of wisdom:
                  MODx Co-Founder - Create and do more with less.