Jeremy in memoriam 1991-2020 Mar 9, 2011 #1 OK, so I am working on how to accomplish building a new "custom template" help option. Can I do a dynamic "<xen include=" or do I need to build the template via PHP and pass that along to my template?
OK, so I am working on how to accomplish building a new "custom template" help option. Can I do a dynamic "<xen include=" or do I need to build the template via PHP and pass that along to my template?
Jeremy in memoriam 1991-2020 Mar 9, 2011 #2 Bobster confirmed my suspicions that I needed to do it via PHP. I thought I read that <xen: syntax was converted at compile, but wasn't 100% sure.
Bobster confirmed my suspicions that I needed to do it via PHP. I thought I read that <xen: syntax was converted at compile, but wasn't 100% sure.
Bob Well-known member Mar 9, 2011 #4 Jaxel said: I use dynamic templates in mods all the time... Click to expand... he wanted to do this.. <xen:include template="{$var}" /> that won't work.
Jaxel said: I use dynamic templates in mods all the time... Click to expand... he wanted to do this.. <xen:include template="{$var}" /> that won't work.
Jaxel Well-known member Mar 9, 2011 #5 Oh... yeah... you can't do that... look at my portal mod, in /EWRporta/ViewPublic/Portal.php Code: $object = $this->createTemplateObject($template_name, $params);
Oh... yeah... you can't do that... look at my portal mod, in /EWRporta/ViewPublic/Portal.php Code: $object = $this->createTemplateObject($template_name, $params);
Bob Well-known member Mar 9, 2011 #6 Jaxel said: Oh... yeah... you can't do that... look at my portal mod, in /EWRporta/ViewPublic/Portal.php Code: $object = $this->createTemplateObject($template_name, $params); Click to expand... Checking it out now Thanks Bro!
Jaxel said: Oh... yeah... you can't do that... look at my portal mod, in /EWRporta/ViewPublic/Portal.php Code: $object = $this->createTemplateObject($template_name, $params); Click to expand... Checking it out now Thanks Bro!
Jeremy in memoriam 1991-2020 Mar 9, 2011 #7 Jaxel said: Oh... yeah... you can't do that... look at my portal mod, in /EWRporta/ViewPublic/Portal.php Code: $object = $this->createTemplateObject($template_name, $params); Click to expand... Yep. I was hoping that I could be lazy and not use that.
Jaxel said: Oh... yeah... you can't do that... look at my portal mod, in /EWRporta/ViewPublic/Portal.php Code: $object = $this->createTemplateObject($template_name, $params); Click to expand... Yep. I was hoping that I could be lazy and not use that.