Moderator’s note: Moved to Plugins: Technical Assistance.
I have 2 plugins I’m working on, and each of them has the option to render out a value, or a number of values… so it can be either a variable pair, or single variable, e.g.
// Will print the calendar days of the current week
{exp:week_range}
{day}
{/exp:week_range}OR
// Will print out the current month name of the start date of the current week.
{exp:week_range get="month" format_month="F"}My problem is, I can’t use both of these instances on the same page, or it borks the parsing and starts including templates within one another. If I include JUST the variable pair on the page, or even multiple instances of the single variable format it works fine. Is this a limitation of EE, or am I writing the plugins wrong?
Hm, it may be problematic that you seem to try to handle both behaviours in the same method. I never did that so I#m not 100% certain.
You could try to split up the applications into separate functions and do something along the line of this
{exp:week_range:days}
{day}
{/exp:week_range:days}{exp:week_range:month format_month="F"}Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.