CSI Cross site includes

By Steven HeynderickxSteven Heynderickx

Description

This description is not a description of a specific problem solver. It is a promotion of a new technique. As more advanced wikidot users that search here for code snippets, you will be well aware of the [[include]] function.

Up till recent you could only include pages of your own site. This has changed! It is now possible to include pages of other sites as well. In this way you can design cool snippets and use them in all your sites without much programming.

The wikidot-guru's made a site csi.wikidot.com that collects these CSI's. Have a look there to see if there is anything you can use. For example if you wanted to publish a Progress Indicator to illustrate the status of your page you could use :
[[include :csi:include:progressindicator label=A cool progress indicator linked to a tag|style=rog]]

A cool progress indicator linked to a tagshine.pnghead.pngwhite.gif

Here is another example of an indicator made by rhombus p

This is a test project - 45% complete
leiger also managed to squeeze a nice clock in a CSI that you can use. more...

Since this project is still young there are not many includes yet… Maybe you can help. Add suggestions, solutions or for blocks of code you regularly use. Then we can turn them into CSI's

new-tag-indicator.png


Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by Steven Heynderickx


Rate this solution

If you think this solution is useful — rate it up!

rating: +6+x
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License