Which doctype and mime-type for PivotX themes?

Discuss PivotX 2.0.x themes here, and view themes that are available for download.

Which doctype and mime-type for PivotX themes?

Postby janozaurus » Sat Jul 04, 2009 8:44 pm

Hi everyone,
now that XHTML (2) has been declared dead and (X)HTML5 is future king I wonder what's the right(TM) way to make a web page (like a PivotX template) today.

Which !DOCTYPE declaration am I supposed to use? Will PivotX pages be served as mime type 'text/html' or 'something/xml+something'? Does the PivotX community suggest any coding standards (other than valid and working)?

Jan
janozaurus
 
Posts: 38
Joined: Mon Nov 26, 2007 9:03 am

Re: Which doctype and mime-type for PivotX themes?

Postby rabbeltje » Mon Jul 06, 2009 6:33 am

i just copy the code from the bare_bones header and it always works ;)

(just to be complete:)
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
User avatar
rabbeltje
 
Posts: 358
Joined: Mon Aug 25, 2008 11:54 am
Location: Neerbeek, The Netherlands

Re: Which doctype and mime-type for PivotX themes?

Postby hansfn » Tue Jul 28, 2009 11:08 am

Just two quick (late) comments:
- PivotX will stick to XHTML for now. When HTML5 is well implemented in all leading browsers, we can consider switching.
- Because IE6 doesn't support "application/xhtml+xml" we are still serving the pages as "text/html". However, with the decline of IE6 it might be time to change this soon ...
hansfn
Developer
 
Posts: 3281
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Which doctype and mime-type for PivotX themes?

Postby jesus2099 » Fri Sep 11, 2009 2:52 pm

Hello,

My website is entirely in standard HTML (<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">) so are my blogger blogs (html files).
I would like to set up a new blog with PivotX which really looks awesome and would like to know if I can make a HTML template too.
I think there is no problem doing this but I would like PivotX not to generate XHTML for <br>, <hr>, <meta> etc. such tags.
I didn't find such hidden config; Is there anyway of doing this (a tag in the template, an extension, etc.).

For instance, in the CMS I use, generation is made with (great) markdown, and all I have to do is replace "/>" by ">" in markdown.php (MARKDOWN_EMPTY_ELEMENT_SUFFIX). Maybe it's as simple as that here too.
User avatar
jesus2099
 
Posts: 11
Joined: Fri Sep 11, 2009 2:13 pm
Location: Paris

Re: Which doctype and mime-type for PivotX themes?

Postby hansfn » Fri Sep 11, 2009 4:27 pm

Hm, I don't see where I was unclear. PivotX produces XHTML.
hansfn
Developer
 
Posts: 3281
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Which doctype and mime-type for PivotX themes?

Postby jesus2099 » Fri Sep 11, 2009 4:57 pm

I thought such a complete thing had a config for this, you mean there is config for this?
Maybe I'll have to have a look at the code then... :|
User avatar
jesus2099
 
Posts: 11
Joined: Fri Sep 11, 2009 2:13 pm
Location: Paris

Re: Which doctype and mime-type for PivotX themes?

Postby hansfn » Fri Sep 11, 2009 6:40 pm

You did notice that I'm one of the developers ...
hansfn
Developer
 
Posts: 3281
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Which doctype and mime-type for PivotX themes?

Postby jesus2099 » Fri Sep 11, 2009 8:45 pm

Oh I did not know that ! Congratulations, PivotX seems so neat ! :D
The few unicode tests I made works really great. Unicode is rarely fully supported in other php bloggers even in recent ones (they often replace all unicode characters by HTML Entities, that's very lame).
I have to learn how to make my theme to replace my blog seemlessly, maybe I just have to make a HTML template, edit the markdown.php as I did for mine and just adjust some few instances of "/>" in PivotX's code.
I'll come here later if I face problems or to share my experience.
User avatar
jesus2099
 
Posts: 11
Joined: Fri Sep 11, 2009 2:13 pm
Location: Paris

Re: Which doctype and mime-type for PivotX themes?

Postby hansfn » Fri Sep 11, 2009 9:01 pm

If you really, really want HTML just write a hook that converts from XHTML to HTML - but seriously, why not just use XHTML?
hansfn
Developer
 
Posts: 3281
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Which doctype and mime-type for PivotX themes?

Postby jesus2099 » Fri Sep 11, 2009 9:13 pm

Thank you for this idea! I have to write a template anyway (with my existing homepage layout) but writing a hook sounds interesting (is a hook an extension?)
I'm going to read those stuff this week-end.
User avatar
jesus2099
 
Posts: 11
Joined: Fri Sep 11, 2009 2:13 pm
Location: Paris

Next

Return to 2.x Themes

Who is online

Users browsing this forum: No registered users and 1 guest

cron