How do I easily modify templates and how do I know which are loaded where?
If I try t oload a template in DreamWeaverMX... It doesn't give me the WSYWIG view... I really didn't want to have to hand code all of my templates...
![]()
![]()
How do I easily modify templates and how do I know which are loaded where?
If I try t oload a template in DreamWeaverMX... It doesn't give me the WSYWIG view... I really didn't want to have to hand code all of my templates...
![]()
![]()
For which template file to load and what variables you can use, please refer to user manual in template section.
We do not use Dreamweaver to design templates, but it's done by hand using HTMLKit. It could be our fault, it's rendered perfectly in IE and opera, but not in mozilla. The html code for the table may not completely closed.
Yeah... I played a bit yesterday with index.html in HTMLKit and there are a few unclosed tags...
Guess Job #1 is RTFM, #2 is work out wihich tenplates I'm interested in, #3 is validate their HTNL #4 is amend as required....
Was hoping it was going to be a bit simpler
Thanks for the quick response
I'm struggling with the manual... was it written in Spanish and translated??
"It can't be do it using..."
"Have no any variables...."
"You can disable header and footer by write no text..."
![]()
the reason they may not load in dreamweaver is because the templates don' t contain the following:Originally posted by richhead
How do I easily modify templates and how do I know which are loaded where?
If I try t oload a template in DreamWeaverMX... It doesn't give me the WSYWIG view... I really didn't want to have to hand code all of my templates...
![]()
![]()
if you wanted to preview them, you mihgt get away with just a <html><body> at the top of the page. just remember to remove it when you are finished.Code:<html> <head> </head> <body> </body> </html>
as for templates, yep, you will need to edit every last one of them.look in the themes/default folder. all of those will need to be edited plus the ones in the cp and mail folder.
Also edit the titles.inc.php in the main folder. Then look in the msg.php file in the themes/default folder. There are some places there that may require editing. And some of the coding is in the class files in the lib folder but not very much.
The good news is that the main look and feel of your site is controlled in just five files: the header.html, the cat_header.html (used only for the category page in browse) and the footer.html files in the default folder and the header.html and footer.html files in the cp folder.
Finally, you will edit all those files in default and cp. But it is not too bad. you will want to delete or substitute your own image that is located in most of them. And look at the css in the header files. Particularly, the .tbl_ ones. And if you remove the background color form the .tbl_border, then your page background color will show thru.
Or you could purchase Veg's template: see http://www.nicecoder.com/community/s...threadid=1402. It may be worth it just to get a clean set of templates and the css file.
Because in the final analysis, no matter what templates you start out with, you WILL end up spending some time customizing each and every one of them.
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
I think dody, the Core Developer of INDEXU, is from Indonesia and English is his second language.Originally posted by richhead
I'm struggling with the manual... was it written in Spanish and translated??
"It can't be do it using..."
"Have no any variables...."
"You can disable header and footer by write no text..."
![]()
The syntax is a little convoluted sometimes but can be figured out most of the time. If not I sure a post here at the forum will clear it up.
We have many different languages represented here and so someone will be able to help if you have a question
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
and for you add #5 run thru spell checkerOriginally posted by richhead
Yeah... I played a bit yesterday with index.html in HTMLKit and there are a few unclosed tags...
Guess Job #1 is RTFM, #2 is work out wihich tenplates I'm interested in, #3 is validate their HTNL #4 is amend as required....
Was hoping it was going to be a bit simpler
Thanks for the quick response![]()
![]()
but that's ok, my typing is pretty bad too.![]()
yep, there are a few unclosed tags. Font tags, especially.
To locate what does what, open the php file and search for the file extension html. Also, search for msg as some stuff is in the msg.php file.
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
Many thanks esm....
I'm hand coding the first one now... I think the difficulty arise from the fact that the header (in isolation) is invalid - lots of 'unclosed' table tags and no </body> or </html>.. in fact it even starts wrong, no valid !DOCYTYPE statement... which might explain my Mozilla struggles... I'm assuming Header + some content + footer = complete page?
I can see this is going to take me forever![]()
the </body> or </html> are in the footer.
The header and footer take a while ( I use the same header and footer in the cp and the cat_header is the same as the header except for the title ( i think ). I could probably just reference the header/footer in default but I haven't gotten around to that. it was just easy to copy them.
Sounds like we have found us an HTML expert! That is good!!!
yep, the content is all the other templates.Originally posted by richhead
I'm assuming Header + some content + footer = complete page?
I can see this is going to take me forever![]()
But they only took me about an hour. the header/footer will take a few hours.
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
so what is the significance of DOCTYPE?Originally posted by richhead
in fact it even starts wrong, no valid !DOCYTYPE statement... which might explain my Mozilla struggles
About 94% of my visitors use IE. about half of the remaining use browsers so old, probably nothing looks right to them.
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
Doctype is short for "document type declaration" (or DTD). Any (X)HTML web page needs to define a Doctype : it is used to declare which version of (X)HTML the webpage conforms to.
Since different versions of (X)HTML mean different markup, browsers may not behave correctly if you don't set a proper Doctype... and your page will not be valid (X)HTML, even if the rest of your markup is perfect..
Modern broswers (NS6, IE6, Mozilla, Opera and that one for the Mac (Jav??) are all becoming less tolerant of poor HTML (not closing tags for example), I'd rather invest the effort once (up front) to make the templates valid, than revisit it each time I get a complaint (by which time I will have forgotten how it all hanges together![]()
OK... I took header + index + footer and created one file, there were loads of unclosed tags and loads of unecessary closing tags (or prhaps they were the missing ones - just in the wrong place). I know have a new file that's valid and can be seen in DWMX... which I'll now use to play about and create my desired layout before decomposing back into the three separate files.
Product seems pretty good (what I've seen), but the templates are not so good.... I'd love to see how some of these directories look in certain browsers!
Once I have something ready for my client, I'll let you know... I'd welcome feedback on my installation of Indexu
It took me over an hour to get the template to validate in W3C (which is the only guarantee it'll be future proof).
If header & footer are the worst two... this be a doddle![]()
that is how I did it, except for the validation thing...although I did run it thru TIDY to clean it up.Originally posted by richhead
OK... I took header + index + footer and created one file, there were loads of unclosed tags and loads of unecessary closing tags (or prhaps they were the missing ones - just in the wrong place). I know have a new file that's valid and can be seen in DWMX... which I'll now use to play about and create my desired layout before decomposing back into the three separate files.
I think dody is working on enabling smarty templates in the next version which will really add some much needed power to the templates.Originally posted by richhead
Product seems pretty good (what I've seen), but the templates are not so good.... I'd love to see how some of these directories look in certain browsers!
See http://www.nicecoder.com/community/s...&threadid=1254
Won't do much for validation but I think some folks look at it like "well, if it will display in IE and maybe ns6, then the rest of the folks are on there own."
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.
THANKS!Originally posted by richhead
Doctype is short for "document type declaration" (or DTD). Any (X)HTML web page needs to define a Doctype : it is used to declare which version of (X)HTML the webpage conforms to.
Since different versions of (X)HTML mean different markup, browsers may not behave correctly if you don't set a proper Doctype... and your page will not be valid (X)HTML, even if the rest of your markup is perfect..
is there a place to read about the different doctypes?
esm
"The older I get, the more I admire competence, just simple competence, in any field from adultery to zoology."
.