We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 2762
    • 1,198 Posts
    Is possible adding a template variable in tpl chunk?
    I add an hiperlink tv [*downloadlink*] in newslisting tpl chunk, but don’t works.
      Free MODx Graphic resources and Templates www.tattoocms.it
      -----------------------------------------------------

      MODx IT  www.modx.it
      -----------------------------------------------------

      bubuna.com - Web & Multimedia Design
      • 18397
      • 3,250 Posts
      banzai, 6.5 is not yet finished (thats why its not in the first post in this thread) so I left the <? in intentionally. The final version will not have that.

      As for you other question, yes, but you need to do this [+tvnameoftv+]
        • 2762
        • 1,198 Posts
        Ok sorry Mark, you can delete previous post, if you need.
          Free MODx Graphic resources and Templates www.tattoocms.it
          -----------------------------------------------------

          MODx IT  www.modx.it
          -----------------------------------------------------

          bubuna.com - Web & Multimedia Design
          • 2762
          • 1,198 Posts
          Another (probably rolleyes) stupid question:

          I will filter list of template in www.tattoocms.it in tree different categories:

          1 column
          2 columns
          3 columns

          Now:

          -All templates are stored in folder id 38
          -To display news with template i use chunk called TemplateDisplayGallery, that includes dropdown TV colonne (with value 1 column||2 columns||3 columns) called like [+tvcolonne+] and hidden.

          - I had created a new page called 1column-template.html
          with this call:

          [!NewsListing? &summarize=`10` &startID=`38` &truncText=`view template` &tpl=`TemplateDisplayGallery` &filter=`tvcolonne,1 column` &paginate=`1` &alwaysshow=`1`!]


          but i have No entries found.
          What I’m doing wrong??

          Thanks
            Free MODx Graphic resources and Templates www.tattoocms.it
            -----------------------------------------------------

            MODx IT  www.modx.it
            -----------------------------------------------------

            bubuna.com - Web & Multimedia Design
            • 32847
            • 171 Posts
            What about
            &hiddentv=`colonne`


            rolleyes
              • 2762
              • 1,198 Posts
              Quote from: xeres at Feb 05, 2006, 09:55 AM

              What about
              &hiddentv=`colonne`


              rolleyes

              tried with
              &hiddentv=`colonne`

              and
              &hiddentv=`tvcolonne`


              ..nothing changed.
                Free MODx Graphic resources and Templates www.tattoocms.it
                -----------------------------------------------------

                MODx IT  www.modx.it
                -----------------------------------------------------

                bubuna.com - Web & Multimedia Design
                • 18397
                • 3,250 Posts
                Ok, try this:

                Remove all the filter stuff from the snippet call and add the tv to your display template like so
                TV START : [+tvcolonne+] : TV END
                Let me know which values it prints.
                  • 2762
                  • 1,198 Posts
                  Quote from: Mark at Feb 05, 2006, 11:48 AM

                  Ok, try this:

                  Remove all the filter stuff from the snippet call and add the tv to your display template like so
                  TV START : [+tvcolonne+] : TV END
                  Let me know which values it prints.

                  now shows value asigned to any template
                  TV START :
                  1 column
                  : TV END


                  TV START :
                  2 columns
                  : TV END


                  TV START :
                  3 columns
                  : TV END
                    Free MODx Graphic resources and Templates www.tattoocms.it
                    -----------------------------------------------------

                    MODx IT  www.modx.it
                    -----------------------------------------------------

                    bubuna.com - Web & Multimedia Design
                    • 18397
                    • 3,250 Posts
                    Thats why! I don’t know for sure if the snippet supports spaces in the filter... Can you try it w/o spaces?
                      • 2762
                      • 1,198 Posts
                      changed :’( but output the same
                      http://www.tattoocms.it/1column-template.html

                      the snippet show results only if I remove
                      &filter=`tvcolonne,1column`


                      I’m using snippet.newslisting.6.3.2 is the right version?

                      Thanks Mark smiley



                        Free MODx Graphic resources and Templates www.tattoocms.it
                        -----------------------------------------------------

                        MODx IT  www.modx.it
                        -----------------------------------------------------

                        bubuna.com - Web & Multimedia Design