1,105,402 Community Members

PHP Themeing Engine

Member Avatar
Stefano Mtangoo
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 441 [?]
Q&As Helped to Solve: 394 [?]
Skill Endorsements: 2 [?]
 
0
 

Hi friends,
it is weeks now I'm trying to figure out how to make simple custome theme engine for my custom PHP CMS. I want to use it for my projects. It is based on custom framework too. So I checked how Drupal does it and Joomla. They are complex but gave me little Idea.

What do I need to make a theme engine so that one can make a theme without knowing internal flow of the site articles, menus et al? Any article that talks of generic theme engine (not some specific CMS based)

I hope I have made clear myself.
Thanks

Member Avatar
pritaeas
mod_pritaeas
11,315 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,835 [?]
Skill Endorsements: 155 [?]
Moderator
Featured
Sponsor
 
1
 

A CSS only theme can get you quite far I think. Just make sure your building blocks can be accessed by id's, and similar items by classes.

Member Avatar
Stefano Mtangoo
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 441 [?]
Q&As Helped to Solve: 394 [?]
Skill Endorsements: 2 [?]
 
0
 

A CSS only theme can get you quite far I think. Just make sure your building blocks can be accessed by id's, and similar items by classes.

Thanks.
Is there a way to make blocks accessible to backend where by I can assign block to something (article, links, menu et al) so that in combination to CSS I can change layout of the theme?

Thanks for great tip I didn't think of :)

Member Avatar
pritaeas
mod_pritaeas
11,315 posts since Jul 2006
Reputation Points: 1,420 [?]
Q&As Helped to Solve: 1,835 [?]
Skill Endorsements: 155 [?]
Moderator
Featured
Sponsor
 
0
 

Well, I use Smarty. I have predefined blocks for the backed ($MENU, $FOOTER, $CONTENT), which can be used in my theme template, if that's what you mean. That way, it is no longer dependant on CSS only (you can choose to not render stuff, instead of hiding it).

Member Avatar
Stefano Mtangoo
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 441 [?]
Q&As Helped to Solve: 394 [?]
Skill Endorsements: 2 [?]
 
0
 

Well, I use Smarty. I have predefined blocks for the backed ($MENU, $FOOTER, $CONTENT), which can be used in my theme template, if that's what you mean. That way, it is no longer dependant on CSS only (you can choose to not render stuff, instead of hiding it).

cool! thanks you!

Question Answered as of 2 Years Ago by pritaeas
You
This question has already been solved: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: