[SOLVED] one custom template for employee pages
Posted: Fri Oct 07, 2022 8:58 am
Hello,
I will try building a website where every employee his own profile-page.
I know it is possible building custom templates for different pages:
- pagename: name-employee
- php-file: name-employee.php
What i will try to do, so i can use one custom template, for different employees.
For made this using subpages:
I have some basic php knowledge.
My question: is there a way, with a if..then structure:
IF subpage-in-employee-dir THEN using custom template profile.php
PS: custom templates is a feature i missed a lot in WCMS, hope it's planned in the near future
I will try building a website where every employee his own profile-page.
I know it is possible building custom templates for different pages:
- pagename: name-employee
- php-file: name-employee.php
What i will try to do, so i can use one custom template, for different employees.
For made this using subpages:
Code: Select all
website.com/employee/name1-surname1
website.com/employee/name2-surname2
...
My question: is there a way, with a if..then structure:
IF subpage-in-employee-dir THEN using custom template profile.php
PS: custom templates is a feature i missed a lot in WCMS, hope it's planned in the near future