Search found 4 matches

by JonathanT
Thu May 27, 2010 1:07 pm
Forum: The Lounge
Topic: Problems making an Object available over more than one UDT - PLEASE ADVISE
Replies: 0
Views: 856

Problems making an Object available over more than one UDT - PLEASE ADVISE

Hello all, Thanks to anyone who maybe be willing to help in advance. Running the latest version of CMS MS. I created my self a nice php banner swapping script. The problem is, when I require this script in a UDT then call create the Object. The constructor works fine, which is placed in the header. ...
by JonathanT
Wed May 05, 2010 9:14 am
Forum: Tips and Tricks
Topic: UDT to get root page alias and id, page level, is page root - no sql queries
Replies: 6
Views: 5318

Re: UDT to get root page alias and id, page level, is page root - no sql queries

It was set to false. So Ok, you can use the UDT anywhere in the template that you then call the variable. As long as its in the same section. So if you call the UDT in the body section, you can use the variable in that section. However IF you want the variable available for the whole template, just ...
by JonathanT
Tue May 04, 2010 9:41 am
Forum: Tips and Tricks
Topic: UDT to get root page alias and id, page level, is page root - no sql queries
Replies: 6
Views: 5318

Re: UDT to get root page alias and id, page level, is page root - no sql queries

Ok, sorry this does work. However if you are inserting this into your template, it only works for me if you insert it inside the body tag. So if you insert the UDT inside the header in the template it will not work. But if you insert it into the if correctly populates the variables. Weird but it wor...
by JonathanT
Tue May 04, 2010 9:28 am
Forum: Tips and Tricks
Topic: UDT to get root page alias and id, page level, is page root - no sql queries
Replies: 6
Views: 5318

Re: UDT to get root page alias and id, page level, is page root - no sql queries

Unfortunately I cannot get this to work. As a quick break down of what I have done,

Created a UDT called {get_root}

Called that Tag in the template.

Called the {$root_alias} in the template.

Unfortunaltly does not display anything. Is there any dependencies?

Go to advanced search