I just tried out your extension. Nice idea. I've always liked how
the css file was exposed under pages but I really hadn't thought of it
having it's own section either. Also, I've always wondered where to
put my js files. I usually just tucked them in the javascript folder
and referenced them. This gives them a proper place. I mostly only
use one stylesheet per website so it seems a bit overkill. Not to be
stingy with my tabs, but I think I'd like it better if the css and js
pages were both under one tab. I'm looking forward to seeing what
becomes of this extension.
Thanks,
Steven
On May 27, 2008, at 1:28 PM, Chris Parrish wrote:
nurilized wrote:
is there any way to call js/css files from anywhere of the page/
layout?
suppose, i use one template and many subpages?
but i use different/extra css/js files on subpages (and also
common), for
example i will use accordion script on a subpage and putting this on
template or on header snippet is nonsense
so i am looking for a way to call these files from inside page/layout
I just released version 0.3 of this extension and you will now find
tags to do just this. For instance:
<r:stylesheet name="my_stylesheet" />
produces:
your stylesheet content
Or, if you want to be more fancy, try:
<r:stylesheet name="my_stylesheet" as="inline" />
and get:
<style type="text/css">
<!--
your stylesheet content
-->
</style>
The same works with the <r:javascript> tag.
-Chris
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant
_______________________________________________
Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant