Page 1 of 1

Gallery plugin help with permalinks

Posted: Wed Aug 05, 2009 1:56 am
by hyejohn
How do I change the permalink structure for the gallery plugin?

What's currently coming up:
http://lucassian.com/index.php?serendip ... ext_Level/

what I'd like to have instead:
http://lucassian.com/index.php?/gallery ... Level.html
OR
http://lucassian.com/index.php?/gallery ... Level.html
OR
http://lucassian.com/index.php?/Portfol ... Level.html

Most importantly, I'd like to get rid of the "=" and the "&" from the link.

When I run my mainpage through an xhtml validator, it flags those links!

Re: Gallery plugin help with permalinks

Posted: Wed Aug 05, 2009 10:28 am
by garvinhicking
Hi!

The current gallery plugin does not support customization of the permalink structure, so you'd need to manually edit the serendipity_event_usergallery.php file, change the permalinks, and add the rewrite rules to your .htaccess.

The HTML code of your portfolio is actually okay, what exactly do you validate that gives you errors? As long as '&' is encoded as '&' in the HTML, everything should be okay and perfectly valid...

Regards,
Garvin

Re: Gallery plugin help with permalinks

Posted: Wed Aug 05, 2009 5:16 pm
by hyejohn
It's the links from the homepage that create havoc with the w3c xhtml validator. It chokes on the '&' and the '=' in the href links.

Re: Gallery plugin help with permalinks

Posted: Wed Aug 05, 2009 5:50 pm
by hyejohn
Fixed it with

Code: Select all

&
for & and

Code: Select all

=
for =

Thanks for the help!

Re: Gallery plugin help with permalinks

Posted: Thu Aug 06, 2009 10:27 am
by garvinhicking
Hi!

"=" is valid in URLs. Please tell me the exact validator and URL. The W3C validator does not complain about "="...

Regards,
Garvin

Re: Gallery plugin help with permalinks

Posted: Thu Aug 06, 2009 6:51 pm
by hyejohn
It was the W3c validator, but it was only complaining about the '&'s - It was identifying the missing ';' when it hit the = and I misinterpreted that as another issue. :oops: