Spartan Well-known member Dec 18, 2013 #1 Can I create a template and use the contents as a "page?" If so, how? Thanks.
P Paul B XenForo moderator Staff member Dec 18, 2013 #2 Use the standard include syntax in the page html: Code: <xen:include template="name_of_template" /> Upvote 0 Downvote
Spartan Well-known member Dec 18, 2013 #3 Brogan said: Use the standard include syntax in the page html: Code: <xen:include template="name_of_template" /> Click to expand... Thanks, but I don't entirely understand. Do I create a template named, "Links", then put at the top of the template?: <xen:include template="Links" /> Then using the "create new page" option in the node tree, I set the url to the url of the template? EDIT: I think I've got it. EDIT Again: Damn that was easy ;-) Last edited: Dec 18, 2013 Upvote 0 Downvote
Brogan said: Use the standard include syntax in the page html: Code: <xen:include template="name_of_template" /> Click to expand... Thanks, but I don't entirely understand. Do I create a template named, "Links", then put at the top of the template?: <xen:include template="Links" /> Then using the "create new page" option in the node tree, I set the url to the url of the template? EDIT: I think I've got it. EDIT Again: Damn that was easy ;-)
P Paul B XenForo moderator Staff member Dec 18, 2013 #4 Yes. Unless you have a specific reason to create a template though, just add your code directly to the page. Upvote 0 Downvote
Yes. Unless you have a specific reason to create a template though, just add your code directly to the page.