Giter Club home page Giter Club logo

Comments (13)

lossendae avatar lossendae commented on September 24, 2024

On an album use the property &js=yourChunkName and put your javascript in it (ex: [[!ClicheAlbum? &id=3 &js=yourChunkName]]

Don't put <script> tag in the chunk, it'll will added automatically.

from cliche.

fourroses666 avatar fourroses666 commented on September 24, 2024

oke nice,

the problem is there is no rel="xxx" onto the thumbs <a tag so it that code won't work.

maybe a stupid question, but is it possible to use my own chunks for the thumb code?

from cliche.

lossendae avatar lossendae commented on September 24, 2024

It's possible yes, use the property &itemTpl=yourChunkName

Your questions just remind me how much this component needs more love and a LOT more documentation :)

from cliche.

fourroses666 avatar fourroses666 commented on September 24, 2024

itemTpl didn't work for me.

from cliche.

fourroses666 avatar fourroses666 commented on September 24, 2024

i'm not a coder, but i do have the fancybox next / prev image popup working.

removed your js code (default.class.php) and added my own.
(works by adding <a rel="xxx")

maybe u can add a main cliche topic on the forum if u like.

from cliche.

lossendae avatar lossendae commented on September 24, 2024

I answered on the forum :)

from cliche.

fourroses666 avatar fourroses666 commented on September 24, 2024

Can you paste a link :s I somehow can't find it anymore lol.

Need to check email at home, I wrote i had to test ur code but had no time yet.

from cliche.

lossendae avatar lossendae commented on September 24, 2024

It should be as a your private message answer so i don't believe that the link will work as it is.

from cliche.

fourroses666 avatar fourroses666 commented on September 24, 2024

it works,

&js=chunkname did the trick.
&itemTpl=chunkname works also.

&css=chunkname doesn't do anything, am i doing it wrong this way?
into that chunk i placed some css but it's not in the source.

from cliche.

lossendae avatar lossendae commented on September 24, 2024

the option &css load the by default the css file in the current plugin directory.
Which is by default : /assets/components/cliche/plugins/default/style.css

If you set chunkname, then it will try to load a css file in the directory with the supplied name.
example &css=chunkname would try to load -> /assets/components/cliche/plugins/default/chunkname.css

The implementation depends on the plugin, but both supplied with cliche works the same way.

BUT, that is only the intended preocess because for an unknown reason it was put out of recent releases. This is going to be fixed in next RC so thank you very much for reporting :)

from cliche.

fourroses666 avatar fourroses666 commented on September 24, 2024

Oké!, but when u want to place the css file on a other place, is that possible?
Would be great, i always like to place all my css into 1 directory.

from cliche.

lossendae avatar lossendae commented on September 24, 2024

In that case, you can set the property loadCSS to false (&loadCSS=0) and load your own CSS appart from cliche.
I may add an option to load CSS via specified folder later, but for now that's the only solution.

from cliche.

fourroses666 avatar fourroses666 commented on September 24, 2024

Problem solved &loadCSS=0 will do fine for me :D

from cliche.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.