We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Quote from: banzai at Feb 24, 2014, 12:52 PM
    Quote from: fourroses666 at Feb 24, 2014, 10:08 AM
    Dunno if this is any help;

    Canonical urls
    https://support.google.com/webmasters/answer/139066?hl=en&ref_topic=2371375

    Magento and prolly WP have plugins / extentions for that.

    Thanks, but the suggested solution for pagination issue is using rel="next" and rel="prev"

    https://support.google.com/webmasters/answer/1663744?hl=en&ref_topic=2371375

    In addition, i'm trying to avoid the duplicated title on pagination with this:

    <title>[*pagetitle*] [[if? &is=`[+currentPage+]:>:1` &then=`- pag. [+currentPage+]`]] </title>


    but does not work sad


    [[]] -> [!!] and will work
      http://modx.im - Russian community
      http://extras.evolution-cms.com - Repository for Evolution
      • 2762
      • 1,198 Posts
      Quote from: dmi3y at Feb 24, 2014, 12:55 PM

      [[]] -> [!!] and will work
      Thanks
      I've already tried the uncached call, but still not work: output "- pag. 1" in the first page
        Free MODx Graphic resources and Templates www.tattoocms.it
        -----------------------------------------------------

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

        bubuna.com - Web & Multimedia Design
        • 9995
        • 1,613 Posts
        Did you try the old way?

        [+prev:is=``:then=``:else=`<link rel="prev" href="[+prev+]" />`+]
        

          Evolution user, I like the back-end speed and simplicity smiley
          • 13226
          • 953 Posts
          I am currently attempting (quite miserably to be honest) to get a value from a TV

          my idea was:
          [[if? &is=`[*tvname*]:isempty` &then=`` &else=`{{mychunk}}`]]

          But this doesn't work - does anyone have an idea ?

          All help appreciated - thanks
          • use
            else=`@TPL:mychunk`
              http://modx.im - Russian community
              http://extras.evolution-cms.com - Repository for Evolution
              • 13226
              • 953 Posts
              @dmi3y

              Cheers for the answer :0

              I falsely added a chunk in my first post - should have been an image tag

              [[if? &is=`[*tvname*]:isempty` &then=`` &else=`<img src="assets/images/pic1.jpg" alt="">`]]


              It doesnt work as in the code above

              UPDATE

              I've got it working now - MY BAD sad

              I am using it in a Ditto call and forgot to change the "*" to "+" in the TV call

              Thanks for the help anyway smiley [ed. note: iusemodx last edited this post 10 years, 1 month ago.]
                • 2762
                • 1,198 Posts
                New question

                Does it work with tvs?
                I'm trying to replace the old "tvcnd" Snippet (Template Variable Conditional by Mark Kaplan)

                example:
                [!if? &is=`[*Select-Slider*]:is:FlexSlider` &then=`{{chunkname}}`!]


                but doesn't work [ed. note: banzai last edited this post 10 years, 1 month ago.]
                  Free MODx Graphic resources and Templates www.tattoocms.it
                  -----------------------------------------------------

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

                  bubuna.com - Web & Multimedia Design
                  • 31255
                  • 118 Posts
                  I`m trying to do Foundation HTML5 top-bar in Evolution with wayfinder.

                  <li class="[+wf.classnames+] [[if? &is=`[+wf.classnames+]:and:(isfolder):is:1` &then=`has-dropdown`]]"> <a href="[+wf.link+]" [+wf.attributes+]>[+wf.linktext+]</a> [+wf.wrapper+] </li>


                  and

                  <li class="[+wf.classnames+] [[if? &is=`(isfolder):is:1` &then=`has-dropdown`]]"> <a href="[+wf.link+]" [+wf.attributes+]>[+wf.linktext+]</a> [+wf.wrapper+] </li>


                  Tried (isfolder) and [(isfolder)] too.

                  I made chunk for has-dropdown (chunk just have text has-dropdown) and tried &then=`@TPL:has-dropdown`.

                  All ways renders all ok, but attribute class is empty. [ed. note: valokammi last edited this post 9 years, 11 months ago.]
                    Tassu, webmaster of Valokammi
                    • 31255
                    • 118 Posts
                    Seems that (isfolder) is not working.

                    Last variation:
                    <li class="[[if? &is=`[+wf.classnames+]:and:(isfolder):is:1` &then=`[+wf.classnames+] has-dropdown` &else=`[+wf.classnames+]`]]"> <a href="[+wf.link+]" [+wf.attributes+]>[+wf.linktext+]</a> [+wf.wrapper+] </li>


                    Again empty class attribute.
                      Tassu, webmaster of Valokammi
                      • 31255
                      • 118 Posts
                      Strange behavior. I put
                      &then=`@tpl:has-dropdown`
                      . It renders @tpl:has-dropdown to ALL classes, not links that are folders. But when I put
                      &then=`[+wf.classnames+] has-dropdown`
                      its empty, AND seems like it tried to render it all classes too.

                      Then I tried:

                      [[if? &is=`[(isfolder)]:is:1` &then=`<li class="[+wf.classnames+] has-dropdown"> <a href="[+wf.link+]" [+wf.attributes+]>[+wf.linktext+]</a> [+wf.wrapper+] </li>` &else=`<li class="[+wf.classnames+]"> <a href="[+wf.link+]" [+wf.attributes+]>[+wf.linktext+]</a> [+wf.wrapper+] </li>`]]


                      It`s better, no empty space in all classes, but links that are folders class is empty.

                      I`ve tried at my mind all possible variations, but not the right one wink [ed. note: valokammi last edited this post 9 years, 11 months ago.]
                        Tassu, webmaster of Valokammi