Mobile app version of vmapp.org
Login or Join
Nimeshi995

: Creating a Template Like System in cPanel I am creating a medium sized website using cPanel and their File Manager system and the majority of my pages are going to be the same with a different

@Nimeshi995

Posted in: #Cpanel #Template

I am creating a medium sized website using cPanel and their File Manager system and the majority of my pages are going to be the same with a different title and content section and I wanted to see if there is a system for making one general template file and then having all the other pages inherit from that file so all I have to do is have a content and title section and the rest of the links, headers, and whatnot can be changed throughout the site by just changing one file.

Is there anything like this? I have used Jinaj2 in python and a few other systems for other server scripting languages but I am not sure how to implement it with cPanel.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

2 Comments

Sorted by latest first Latest Oldest Best

 

@Jessie594

Most hosting companies which have cPanel installed have a file manager setup, you could technically browse to your www, public_html folder and create a new index files and write the HTML by hand and save it.

10% popularity Vote Up Vote Down


 

@Pope3001725

cPanel isn't a hosting environment or server-side scripting language. It's a control panel for general website management (email, ftp, etc). It can't do things like templates or include files. You'll need to use Server Side Includes, PHP includes, etc. like you've used in the past to accomplish this. If you're going to use cPanel for file management then you'll just need to code it correctly and upload the file with the right extension for this work (just like you would if you used FTP, SFTP, etc).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme