Comments (13)
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.
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.
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.
itemTpl didn't work for me.
from cliche.
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.
I answered on the forum :)
from cliche.
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.
It should be as a your private message answer so i don't believe that the link will work as it is.
from cliche.
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.
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.
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.
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.
Problem solved &loadCSS=0
will do fine for me :D
from cliche.
Related Issues (20)
- toPlaceholder & fancybox HOT 3
- Javascript conflict HOT 1
- Browse... button doesn't work HOT 3
- itemTpl not being read? HOT 4
- uploading not recognizing or processing UPPERCASE file extensions HOT 4
- After go back to album list it starts at page 1
- macintosh upload gets stuck somehow HOT 5
- Requested new features!
- When clicking on an album the variables are passed, but the page doesn't change. HOT 1
- New update? HOT 9
- Placeholder to retrieve the Album ID on a template ? HOT 4
- How to disable the load of jquery ? HOT 6
- How to add a plugin ?
- Fancybox doesn't works with jQuery >= 1.9
- lower/uppercase issue
- File Upload Error HOT 1
- Client-side resize
- ERROR Unexpected token <:
- Error "Fatal error: Cannot redeclare class PhpThumb"
- Cliche caching HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cliche.