Author |
Message |
janeuk
Regular


Joined: Oct 13, 2007
Posts: 61
|
Posted:
Wed Nov 21, 2007 6:46 pm |
|
Hi,
I set up my site mainly creating Content module pages, they pass the W3C compliancy test, but when I changed the Message on the Home page using the same kind of html that I used for the Content pages, it has many W3C errors, and although I managed to correct many of the errors, I can't get the Messages page in admin to accept & which is a change the W3C validator shows needs to be done, it literally disappears after I try to make the change and there is another problem with the W3C validator not liking my centering <center></center> saying it isn't allowed. As I like simple solutions best - lack of coding knowledge I am wondering if its possible to make a Content Module page as the main index/home page instead of the Messages.
Thanks for any help!
Jane |
|
|
|
 |
jakec
Site Admin

Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom
|
Posted:
Thu Nov 22, 2007 6:55 am |
|
Unfortunately you can only have one module on the homepage at a time and I assume you have news set to the homepage currently?
Therefore it is possible to have the content module on your homepage, but not with the News module as well. Although it might be possible to hack the code to have two modules on the homepage.
It might be easier to make the code in the messages module compliant, but without seeing the code it is difficult for us to help.
What version of Nuke are you using?
If you are using RN are you using the WYSIWYG editor? |
|
|
|
 |
warren-the-ape
Worker


Joined: Nov 19, 2007
Posts: 196
Location: Netherlands
|
Posted:
Thu Nov 22, 2007 7:29 am |
|
Well validating is nice but dont stare yourself blind on it Its just a tool nothing more nothing less.
Characters like & should be saved when entered in the 'html' box within the tinymce editor.
And nope the <center> tag isnt allowed according to the 4.0 W3C specification, they advice you to use CSS (styles) for it, in this case text-align.
You can already use something like; <div align="center">content</div> to center your content
What i did for my Administration News page is disable the tinymce editor, that way it wont strip out extra tags/styles.
When disabled you could use something like; <div style="text-align:center">content</div>
Better would be to specify classes or id's and move all lay-out to your css file (if you are a standards compliance purist )
Do you always want to center those stories btw?
If so, it would be easier to edit your theme and include the text alignment setting in the css of your theme.
Edit: Isnt there already a 'center' button within the editor, or am i missing something here? |
|
|
|
 |
janeuk

|
Posted:
Thu Nov 22, 2007 8:13 am |
|
Hi,
Yes there is something missing - I don't have the editor enabled, I had to disable it when I had problems getting it to accept my pre-written html content pages as they were, it kept changing position of text etc. on its own accord. I was using copies that were created when I was using Ravennuke 2.02 version, and just assumed it would be a straight transfer but it wasn't. Thanks for your help with this, I will have a go at re-writing the page now  |
|
|
|
 |
jakec

|
Posted:
Thu Nov 22, 2007 11:03 am |
|
RN 2.10.01 comes with the newer WYSIWYG editor, and appears to produce more compliant HTML code and even corrects errors in previous stories which were produced using the old editor |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Sun Nov 25, 2007 10:47 am |
|
Just a quick side note: the <center> tag is still allowed in HTML 4.01 Transitional and XHTML 1.0 Transitional and is still used throughout even RavenNuke (from its PHP-Nuke roots). |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
warren-the-ape

|
Posted:
Sun Nov 25, 2007 11:56 am |
|
Mjah its 'allowed' within the loose and transitional dtd's but its still deprecated.
In these days there are far superior solutions, like CSS for example. An element like this shouldnt be added voluntarily, we are not living in 1997 any longer  |
|
|
|
 |
montego

|
Posted:
Sun Nov 25, 2007 11:59 am |
|
Agreed. Just stating fact and highlighting that RN is still only "Transitional". |
|
|
|
 |
|