Developer forum

Forum » Templates » template.TagExists & template.LoopExists

template.TagExists & template.LoopExists

Peter Leleulya
Reply

Hi guys,

I just upgraded a project to the latest core and now a huge performance issue occurred.
We used some template extenders in which we used template.TagExists and template.LoopExists to add tags or call functionalitity only when it is desired.
Now these allways seem to return true so it seems like an infinate loop is happening on some places.
Is this a bug? Or is there a new way to implement this ?
Can TagExist still be used with razor templates? (template tags still exist, right?)
 


Replies

 
Peter Leleulya
Reply

Sorry, doesn't seem to be an issue anymore.

In a template a commented TemplateTags() tag existed which created all the mayhem!
Once removed everything worked as it was supposed to ...

@*@TemplateTags()*@

 
Nicolai Høeg Pedersen
Reply

Hi Peter

Yes, you cannot have TemplateTags() in your source code since that will let the template instance beleive that it is still there.

 

You must be logged in to post in the forum