Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 03:51 am EST
Geeklog Forums
Template var for current theme?
Status: offline
mst3kroqs
Forum User
Regular Poster
Registered: 10/18/05
Posts: 78
Location:Cary, NC USA
Hi -
Does GL set a template var equivalent to the current theme name, as derived from the name of the layout/theme-root/ directory?
For instance, I wanted to make a complete copy of the professional theme for testing, and put it in /layout/professional-test/.
From a drop-down selector standpoint in 'My Account', the name of the theme is now 'professional-test', and I would like to use that to construct a path in my header.thtml to load theme-specific javascript.
In other words, I'd like to make the theme and support scripts path-neutral.
Thanks!
-m
Does GL set a template var equivalent to the current theme name, as derived from the name of the layout/theme-root/ directory?
For instance, I wanted to make a complete copy of the professional theme for testing, and put it in /layout/professional-test/.
From a drop-down selector standpoint in 'My Account', the name of the theme is now 'professional-test', and I would like to use that to construct a path in my header.thtml to load theme-specific javascript.
In other words, I'd like to make the theme and support scripts path-neutral.
Thanks!
-m
8
7
Quote
All times are EST. The time is now 03:51 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content