Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Re: More template woes

$
0
0

From where/how are either of the two getInfo() functions called? I suppose from within a template? In that case we'd need to see that template before we can really answer your question.

Second thing: in the Layout section you'd normally place templates that are to be loaded by the $Layout placeholder, if you have that in your main page template. SilverStripe will look there for a template named after the current Page type.

Includes is meant for bits of templates that are loaded into another template by the <% include ... %> statement.

Basically you can place other templates anywhere in any homemade directory under the templates section, but you might have to use ?flush=all (not ?flush=1) for SilverStripe to find them.


Posted to: More template woes | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles