Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Default template set

Quote Reply
Default template set
Hi,

I'm a bit stuck as to how I call the correct directory for the default template set in a plugin.

I have been using $CFG->{build_default_tpl} but this now has the theme on the end if there is one.

I assume that other plugin writers must have found a solution?

Thanks,
Laura.
The UK High Street
Quote Reply
Re: [afinlr] Default template set In reply to
You can call Links::template_set(). If called in array context it returns (<template set>, <theme>, <template set>.<theme [if there is one]>).

Adrian
Quote Reply
Re: [brewt] Default template set In reply to
Thanks Adrian.