Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2014-08-20 06:33:02

Katie_SFO
Member
Registered: 2014-08-20
Posts: 6

Which template(s) contain the opening <body> tag

I'm new to ThirdLight, so I have a couple of beginner questions...
I need to put a snippet of code right after the opening <body> tag. I found one template with that opening tag: header_common.tpl. Is that the only one?
Inside a template file, is there a way to control whether one of its elements appears based on the user type? I want this code snippet to be on the page for anyone who visits the site except an administrator.

Thanks very much!

Offline

#2 2014-08-21 12:53:05

steve
Third Light Staff
Registered: 2013-06-06
Posts: 92

Re: Which template(s) contain the opening <body> tag

Hi Katie,

These are the templates that make use of a <body> tag:

contactsheetpopup.tpl
grid.tpl
header_common.tpl
header_loginpage.tpl
htmlemailheader.tpl
lightboxreceipt.tpl
orderreceipt.tpl
publishweb.tpl

Where available, you could inspect $IMS_USER.usertype. A value of 12 represents an administrator

Use {debug} to see what variables are available to each template.

Best Regards,
Steve

Offline

#3 2014-08-21 19:45:57

Katie_SFO
Member
Registered: 2014-08-20
Posts: 6

Re: Which template(s) contain the opening <body> tag

Thanks so much, Steve! Your post is incredibly helpful. Thank you thank you!

Offline

Board footer