Welcome to Geeklog, Anonymous Friday, May 03 2024 @ 06:00 pm EDT

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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
The theme's name is not available, but there's always {layout_url}, i.e. http://www.example.com/layout/professional-test

bye, Dirk
 Quote

All times are EDT. The time is now 06:00 pm.

  • 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