Start ::
Developers Corner ::
0.8 Theme Design ::
Stylesheet absolute path
Moderated by: Support Team
-
- rank:
-
pnFreshman
- registered:
- January 2007
- Status:
- offline
- last visit:
- 25.04.07
- Posts:
- 27
How do I get the absolute path of a stylesheet?
...doesn't give the URL of the site, and it cant be combined with:
...because it results in something like:
http://www.mysite.co.uk/P...yTheme/style/style.css
Thanks all
edited by: ntward, Mar 08, 2007 - 10:01 AM -
- rank:
-
pnProfessional
- registered:
- September 2002
- Status:
- offline
- last visit:
- 11.05.08
- Posts:
- 745
For what do you need that? $stylepath is usually sufficient.
-----
best regards from Kiel, sailing city
Steffen Voß
Member of the PostNuke Steering Committee
Visit: Kaffeeringe.de - Internet & Kreativität -
- rank:
-
pnFreshman
- registered:
- January 2007
- Status:
- offline
- last visit:
- 25.04.07
- Posts:
- 27
Hi all,
I need it for my site-wide RSS feed module. The XSL stylesheet loads a CSS style sheet, and for some reason I need to have the complete path included for it to work. The relative path fails.
Ideally I don't want to hard code it, so I can easily use it on several sites. Also, I need use a stylesheet from the theme rather than the module for consistency.
What am I missing? -
- rank:
-
Moderator
- registered:
- March 2002
- Status:
- offline
- last visit:
- 24.04.08
- Posts:
- 7647
Nick,
I take the point of the use of these variables in 'pages' to be served remotely. Should, at some point, we introduce stylesheets into our rss and atom themes we would run into the same problem. I've updated these paths to be URLs rather than URIs. This makes no difference to the browser and solve your problem.
This will be in the next daily.
-Mark
Start ::
Developers Corner ::
0.8 Theme Design ::
Stylesheet absolute path
