Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2005-12-21 09:56:50

Jeremie
Member
From: Provence, France
Registered: 2004-08-11
Posts: 1,578
Website

Re: Alternative to <h1>

maniqui wrote:
What do you think of using just an <img /> (or an @<a href=”“><img /></a> inside a heading?

Seems strange. Well, apart from some special cases, I would say it’s not that good. Mostly, if the meaning of your header is text (and for example you use image to handle special font), it should be a no-no (and use image replacement in that case). I’ll take a look at the Mozilla site.

Interesting feature!
So, does it mean that the CMS will wrap subheadings (headings inside an article) in relation to the heading level of the article title?

Yes. In Plume-CMS, each article could have chapter, it’s like a sub-article. So the structure is like this :

<ul><li>The article title</li><li><ul><li>A chapter title</li><li><ul><li>The headers in that chapter</li></ul></li><li>A chapter title</li><li><ul><li>The headers in that chapter</li></ul></li><li>A chapter title</li><li><ul><li>The headers in that chapter</li></ul></li></ul></li></ul>

In the article markup (called wiki langugage, similar to Textile and other cms things) you apply header1, header2, just like anywhere else. But when the CMS render the pages to the public, it will automaticaly call the article title h1, then the chapters titles h2, then the article header1 h3 and so on (but only if there are multiple chapter, if there is only one it’s handled of course).

Very nice feature yep. I think I mentioned it in the feature request forum a while ago (at the end of the TXP gamma stage iirc).

If you’re interested you could take a look at Plume. It’s PHP and GPL, so maybe there are some code that could be re-used for a TXP patch or plugin.

Last edited by Jeremie (2005-12-21 09:57:27)

Offline

Board footer

Powered by FluxBB