For the project I'm working on, it has to have a changeable template system, so the users can make their own HTML templates to work with the system. However, I have no clue how to even go about doing this. Any help would be appreciated, thanks.
xapher19 0 Newbie Poster
Recommended Answers
Jump to PostFor the project I'm working on, it has to have a changeable template system, so the users can make their own HTML templates to work with the system. However, I have no clue how to even go about doing this. Any help would be appreciated, thanks.
I'm interested to see …
Jump to PostYou'll have to create a script that takes a template file and processes it. Come up with some simple syntax that is then replaced with content (for example, <!--# footer #--> or [[[footer]]] to create a footer placeholder).
Or, you could just make them type <?= $footer; ?>, and include …
Jump to PostI'm not that experienced in PHP to be perfectly honest, I know how to do quite a bit, but a lot of it I'm still learning. Maybe I'm going a bit out of my depth with this :/
If so then for now just use PHP include and put sections …
All 10 Replies
Stefano Mtangoo 455 Senior Poster
twiss 155 Veteran Poster
xapher19 0 Newbie Poster
twiss 155 Veteran Poster
xapher19 0 Newbie Poster
Stefano Mtangoo 455 Senior Poster
xapher19 0 Newbie Poster
Stefano Mtangoo 455 Senior Poster
flinh123 0 Newbie Poster
xapher19 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.