We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23510
    • 168 Posts
    So I have:

    [[!Cliche? &id=`1` &view=`album` &thumbWidth=`170` &thumbHeight=`170` &itemTpl=`pf.AlbumItem.tpl` ]]


    Problem is that Cliche is not seeing my itemTpl, choosing instead to display a tpl from somewhere else. I have hand edited the item.tpl and itemzoom.tpl inside core/components/cliche/controllers/web/plugins/default to read class="zoom1" yet on my output even after clearing the cache, I am seeing

    <a class="zoom" ...etc


    I have NO idea where it is getting class="zoom" from!

    This is really frustrating.

    Thanks in advance to anyone who can help out.
      • 32316
      • 387 Posts
      From the rtfm:
      By default, all chunks are filebased and are located in : "assets/components/cliche/plugins/[plugin]/[chunkName].tpl"
      that is assets/... not core/...

      But even so it is not a good idea to edit the default templates - if you updated the extra at some point you will lose your edited versions - you need to create your own templates and call them in your call
        • 23510
        • 168 Posts
        Thanks whistlemaker - I *did* create my own templates and called it, as I usually do with any snippet call....look at the first line of code in my post. Something is overriding it and can't figure out what.

        But thanks for the correct location.

        I have only been able to get around the problem by keeping the zoom class and just letting that route to colorbox.
          • 23510
          • 168 Posts
          Oh there are no tpl files inside the folder you mentioned. Even in the github repo for cliche. See:

          https://github.com/lossendae/Cliche/tree/master/assets/components/cliche/plugins
            • 32316
            • 387 Posts
            Guess the docs are wrong - kind of makes it hard to use!!!!