Hello-
I want to create a plugin where I can add a tag like this:
{exp:my_custom_tag}
Where the my_custom_tag plugin will look at the ENTIRE channel entry (custom fields and all) and then output some custom, conditional information.
How can my plugin gain access to the currently active channel item? Is it in the context somewhere?
Regards, Eric
Nope, you aren’t missing something. It is possible to do the conditionals in the template file, but the specific conditionals that I want to do will be re-used in several different places, to I’m trying to encapsulate them for reuse and maintenance.
Is there a different way to go about this that might have fewer headaches?
Regards, Eric
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.