What means the dot before the template name?
Posted: 17 May 2008 05:04 AM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  06-22-2007

I once remember that someone told me to put a dot before the template name, but now I don’t remember what that was meant to do.

For example what’s the difference between {embed=“includes/.header”} and {embed=“includes/header”}

Profile
 
 
Posted: 17 May 2008 05:31 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6549
Joined  04-15-2006

Hiya,

That’s just a mechanism put in place so that you can hide templates from view by people publically. Say you had a template that you embed into another template. Whilst the two templates may work quite nicely if viewed in that way (embedded) if someone was to come across the name of your embedded template (not really too sure how they would happen upon that though) then it will not render for them because they may possibly be able to get at information they aren’t supposed to or things would just look very very wonky! wink

More information can be found here.

There is also a configuration variable that can be used to change the dot to something else if you prefer.

Hope that helps.

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
Posted: 17 May 2008 06:38 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  98
Joined  06-22-2007

Thanks Mark, the dot sound useful.

Profile
 
 
Posted: 17 May 2008 06:47 AM   [ Ignore ]   [ # 3 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  6549
Joined  04-15-2006

No problem.

Never actually used it myself as I don’t do too many embeds although a few here and there but no-one would ever be able to guess the names of them anyway so I’m not too fussed. wink

Hope it all goes well for you.

Best wishes,

Mark

 Signature 

Full List Of Plugins Here!! (16)
 
Retrieve Statuses
Maximum Posts Reached
Neat Link
Redirect
Fetch URI

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64926 Total Logged-in Users: 28
Total Topics: 81885 Total Anonymous Users: 25
Total Replies: 440192 Total Guests: 236
Total Posts: 522077    
Members ( View Memberlist )
Newest Members:  mileswkakiharaAurelsbhairabEric Gunkevovitya.melnikalinm24Derek Sundersimple_think