We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Get current template group and template in a plugin

Development and Programming

Pv Ledoux's avatar
Pv Ledoux
95 posts
13 years ago
Pv Ledoux's avatar Pv Ledoux

Hi,

maybe I’m loosing my mind but I can’t find a way to know what is the current template group/template in a plugin.

There is nothing relevant in the Template class. It should be simple but…

Any idea are welcome!

Cheers!

Pv

       
the3mus1can's avatar
the3mus1can
426 posts
13 years ago
the3mus1can's avatar the3mus1can

You might be able to grab it out the $this->templates_sofar instance variable of the template class. Take a look at the fetch_and_parse method in the template class. Otherwise I do not think that there is a way to with the template class.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.