Page 1 of 1

Assign a template created in Admin

Posted: Sat 27. Mar 2021, 15:54
by rbrickyboy
I have 3 templates created in admin (Admin->Templates), Is there a way to assign them to articles I created?
IE. Homepage will use the homepage template I created, Contact Us will use contact-us template etc..
I'm new to phpwcms, hope you could help me..

Regards,

Re: Assign a template created in Admin

Posted: Sun 28. Mar 2021, 06:57
by Oliver Georgi
It works by structure levels, check Admin->Structure Level. There you define the templates used by articles related to the level itself. In addition every article and content part can have custom templates. But these are defining the parts only. But you can act on everything also programatically. (template/inc_script/frontent_render)

Re: Assign a template created in Admin

Posted: Sun 28. Mar 2021, 09:01
by rbrickyboy
Hi Oliver,
I appreciate your reply, now I know how to assign a template to different via site structure level!
Also how can I manipulate the article rendering?