Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2010-02-17 00:07:34

bobdobbs
Member
Registered: 2006-03-13
Posts: 14

Can texpattern output valid html4 ?

Hi guys.

I’m shopping around for a cms. I’d like to know if I can do this with textpattern:

Can I edit tp’s templates and settings so that it will produce valid html 4.01 ?
It is important to me that I am able to use the doctype of my choice.

Thanks.

Offline

#2 2010-02-17 00:40:38

rsilletti
Moderator
From: Spokane WA
Registered: 2004-04-28
Posts: 707

Re: Can texpattern output valid html4 ?

Page templates are rendered as input in terms of both HTML and doctype, the only thing TXP parses to output as otherwise than you would see in your template when editing would be the specific TXP template tags – in the format <txp:xxx_xxxx />, with some variations.

Offline

#3 2010-02-17 00:44:09

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: Can texpattern output valid html4 ?

bobdobbs wrote:

Can I edit tp’s templates and settings so that it will produce valid html 4.01 ?
It is important to me that I am able to use the doctype of my choice.

Txp functions that produce tags for empty elements are hard-coded to add the closing slash. This is scattered around the code so it would take some looking to catch them all, and would be a pain to deal with on upgrade. If XHTML 1.0 is not acceptable, I wouldn’t use Txp.

Edit: tennapel is right; trailing slash is OK, just gets reported as a warning in some validators.

Last edited by jsoo (2010-02-17 11:08:30)


Code is topiary

Offline

#4 2010-02-17 07:40:50

tennapel
Member
Registered: 2009-05-31
Posts: 62

Re: Can texpattern output valid html4 ?

Textpattern generates a trailing slash in a break, but within the context of HTML 4.01 that is actually a valid way of representing the break tag, although some validators report it as a warning.

I would use Textpattern to generate HTML4.01 pages, that is not a problem, you can insert whatever DOCTYPE you want in the templates you design.

Offline

#5 2010-02-18 15:38:37

sewm
New Member
From: Toronto, Canada
Registered: 2004-05-08
Posts: 9
Website

Re: Can texpattern output valid html4 ?

I’m using Jon-Michael Deldin’s plugin jmd_html to convert /> to > on my TextPattern install. Works great.

Last edited by sewm (2010-02-18 15:40:19)

Offline

Board footer

Powered by FluxBB