PDA

View Full Version : Validation Error With Page-by-Page Archive


Acronyc
05-09-2007, 07:10 PM
Hi Everyone,

I have just migrated my old Blog from Drupal to Pixelpost and am loving it so far. Much more simpler, lighter and easier to use. I have gotten everything working so far the way I want it, except on the archive page.

I'm using the Page-by-Page archive addon that was included in PP1.6. It works fine, but whenever you go to the browse archive page I'm getting this error when I try to validate the XHTML:

Error Line 30 column 31: there is no attribute "onChange".

<select name='browse' onChange='self.location.href=this.options[this.selectedInd

Does anyone have any ideas as to why I'm getting this? It seems to be the <BROWSE_CATEGORIES_PAGED> that's giving me a problem, but I'm not sure why it isn't working when I get no validation error if I just use <BROWSE_CATEGORIES>.

My site can be seen here (http://www.acronyc.net), and just go to the archive and follow the validation link at the bottom to see what I mean.

Also, the default selection for <BROWSE_CATEGORIES_PAGED> says "Select Category". Where can I change this? I am using my categories only for locations (countries), and I would like it to say "Location Archive" instead.

Thanks for any help!!

jaywilliams
05-09-2007, 07:28 PM
You will find the "Select Category" text in the following location:
./language/lang-english.php on Line #63

Feel free to modify the browse select box with your own code. You can find the select box code in the following location:
./addons/paged_archive.php on Lines #194, 230, 253, 522, 526

I hope you find this helpful.

Acronyc
05-09-2007, 09:43 PM
Thanks for the help, now I know where to change things and I got the title of the select box changed okay. But do you know why I'm getting that validation error? Now I know where I need to look, but I'm not sure exactly what I need to change.

Thanks!

Acronyc
05-09-2007, 09:53 PM
Success!!

I discovered that the "onChange" attribute has to be "onchange", all in lowercase.

Thanks for the help!

jaywilliams
05-09-2007, 11:40 PM
You might want to check the validation for the about & contact page.

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.acronyc.net%2Fabout

There are some template tags in there that are causing some issues.

Acronyc
05-10-2007, 01:39 PM
Thanks, I didn't notice those warnings before. I'm using the miniCMS addon to make extra pages, but since there are no images on those pages I can just toss those template tags out.

Thanks again!