We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 36686
    • 165 Posts
    I’m trying to translate the links generated by page.nav. I’ve got a property set called BlogList with an element getResourcesTag, with properies called pageFirstTpl, pageLastTpl etc. The value for pageFirstTpl is:

    <li class="control"><a[[+classes]][[+title]] href="[[+href]]">Första</a></li>


    Inspite of the link saying "Första", the link displayed still says "First". The code on my page looks like this:

    <ul class="posts">
    [[!getResourcesTag?
       &parents=`55`
       &depth=`0`
       &tpl=`bloggOchNyhetItem`
       &tplLast=`bloggOchNyhetItemLast`
       &includeContent=`1`
       &includeTVs=`1`
       &processTV=`1`
       &showHidden=`1`
       &limit=`4`
       &pageVarKey=`page`
       &element=`getResources`
       &elementClass=`modSnippet`
       &hideContainers=`1`
    ]]
    </ul>
    <div class="paging"> 
       <ul class="pageList">       
         [[!+page.nav]] 
       </ul> 
    </div>


    What am I missing?
      • 21800
      • 174 Posts
      look at snippet "getPage" properties.
        • 36686
        • 165 Posts
        What do you mean?

        The documentation reads like this:
        At this time, you can only override these template properties in a Property Set; if you use these inline in your getPage tag properties, you may get unexpected results because any placeholders in the inline content may potentially be processed before getPage and the element it is wrapping are processed.
          • 21800
          • 174 Posts
          I’ve made the changes (|< / >|) directly here in pageFirstTpl / pageLastTpl lines as I have only one language to serve in this case.
            • 14822
            • 61 Posts
            too late??

            This work for me
            [[!getPage?
               &elementClass=`modSnippet`
               &element=`getResources` 
               &parents=`1`
               &depth=`2`
               &limit=`2`
               &pageVarKey=`pagina` 
               &includeTVs=`1`
               &includeContent=`1` 
               &tpl=`novedadesTpl`
               &pageFirstTpl=`<li class="control"><a[[+classes]][[+title]] href="[[+href]]">Primera</a></li>`
               &pageLastTpl=`<li class="control"><a[[+classes]][[+title]] href="[[+href]]">Última</a></li>`
            ]]
            <div class="paging">
            <ul class="pageList">
              [[!+page.nav]]
            </ul>
            </div>
            
              • 40090
              • 8 Posts
              Thanx joZ3! That did the job smiley