gerdami wrote on 17 Jan 2010 14:45
Background
The principle of CSIs is to reuse an existing code that would later be rendered on the target page.
On the CSS competition site I used includes that hold their own assets, i.e. images.
In http://css-competition.wikidot.com/include:facebook I had to use a hard reference to the images otherwise the images would not appear on the target site.
[[image http://css-competition.wikidot.com/local--files/include:facebook/facebook-256.png
class="my-facebook" height="{$iconsize}" width="{$iconsize}"
link="http://www.facebook.com/group.php?gid={$gid}"
alt="My presence on Facebook"]]
If I move this include from CSS-comp to the main CSI I have to rename the references.
Question
Would it be possible to have another way of referencing assets that belong to the CSIs ?
Or have I missed an obvious thing ?
You've not missed anything obvious. We'd need to add functionality to parse [[image]] and [[file]] at an earlier time.
Portfolio
There's a chance that it might be intended to use includes the way they are now. CSIs might need things to be parsed earlier, but regular includes (used within the same site) should be kept as they are IMO. Is it possible to make that distinction?
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)