You are not logged in.
Pages: 1
Topic closed
I'm trying to create a big website, with lots of pages, but i'm stuck on how to go about making the site so that I can change themes easily. I had a look at smarty, but not sure if that's what I'm looking for.
you want a pre-made engine that let's you change themes easily ? like some sort of portal ?
phpNUKE, postNUKE
not really, I'm making my own site but not sure how to go about theming it. :S
Assuming you dont want to change the layout (tables, etc...):
You can have use PHP in the following way:
for the stylesheet:
<link type="text/css" href="<?php echo $theme; ?>/style.css" />
A different stylesheet can change a lot of things including background images, but if you need to change images too:
<img src="<?php echo $theme; ?>/image1.jpg" />
and put every theme in a separate directory
What softwares and method do you use to create the site?
here's what you can do:
include all the stle elements in a CSS sheet, and simply create a sheet switcher using php.
thanks, i found a solution, that's part of what i'm doing
u need to analyse evrething on a peace of paper before starting any code...
this is an advice...
even if you write the analisis in arabic, frensh , sirilanki and not using a specific language as uml, it ain't important
what i'm saying, if you have a peace of paper, on what the site will look like , what are your needs to do things around, it will be clearer to u, on what methodologie you will use to make a solution...
in other words, if you see that you need a multiple layout changes,
you should ask your self and put answers on the papers, like
how many style sheet i need?
what each style sheet do for the site?
what are the colors , tables, layers, textbox, ... etc includes?
what are the basics colors?
what ......?
you will put the answers.....
you will see that you build a full site on a peace of a paper, all you have to do on the next step is to search for the code, as css code on this example and create the solution... and after that test it...
if you will have this spirit, you will see that analysing any project before going deep in coding, will lead you to a good working solution in no time, and save a lot of your time
Pages: 1
Topic closed