Create more semantic code (span="articleHead" to H

Use GitHub to post feature requests for phpwcms.
Locked
bertalizer
Posts: 47
Joined: Sat 21. Feb 2004, 14:24
Location: Belgium

Create more semantic code (span="articleHead" to H

Post by bertalizer »

First of all I would like to congratulate Oliver on a FANTASTIC project!
I've tried many different sytems and this is the best I've found!

It's almost perfect, but...
Is it possible to change the span tags that are currently used for the different headers?
I really would like to change

<span class="articleHead">...</span> to <h1>...</h1>
<span class="articleSubHead">...</span> to <h2>...</h2>
<span class="contentHead">...</span> to <h3>...</h3>

And style them with CSS...

Could this be implemented? Or is there a (not very difficult) way I can change this myself?

Thanks alot!
B.
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

http://www.studmed.dk Portal for doctors and medical students in Denmark
bertalizer
Posts: 47
Joined: Sat 21. Feb 2004, 14:24
Location: Belgium

Post by bertalizer »

frold wrote:maybe you can use this post? http://www.phpwcms.de/forum/viewtopic.php?p=5346#5346
Thanks for the tip, but no...
maybe I am not being clear.

Now the headers and subheaders are styled by using <span class=""></span>

I really would like to have this replaced by H-tags (H1 for the articleHead, H2 for the articleSubHead, etc...)

This would create more semantic code (Semantic code uses html elements for their given purpose).

I've been looking at the code and I think content.article.inc.php needs to be changed.

Thanks
B.
User avatar
habi
Posts: 166
Joined: Sun 15. Feb 2004, 13:39
Location: Rutschwil, Switzerland
Contact:

Post by habi »

perhaps it could be made like this:

check in file front.func.inc.php function span_class

in this function check the var $class and if one of your head-class comes in, then replace the code with <h1>....</h1> an so on, depending on the incoming $class.
Locked