using object methods with parameters in automatic fieldshi and thanks for making this awesome tool
i'm using object methods in automatic fields, and i am passing in a parameter (such as "_header2" - a simple string)
i am putting it as [onshow.xlat.get_xlat("_header2")] in the automatic field and i discovered that the " are being passed in too
then i realized that this isn't actually code at all, rather just a text string being passed through to actual code, and the " are not needed even though my code looks really weird without them
is this correct?
Re: using object methods with parameters in automatic fieldsHi Lauren,
Yes it is totally right.
The documentation says:
When you are calling a method with arguments (like methY(a,b) in the example above), then TBS does a lazy analysis of arguments, without string delimiters. There is no intention to go further in the analysis because having PHP code in the template is not the purpose.