Theme Joomla Extensions

Problems with Ampersand inside link - XML method

I've noticed that if i provide anything in the tag within the XML file that includes an ampersand ==> &, that it will spit out the error:

Warning: Invalid argument supplied for foreach() in
siteroot/modules/mod_powerslide/helper.php on line 97

I think I see the reasoning behind this but being that 99% of joomla links have ampersands in them there has to be some kind of workaround. I've even tried putting quotes around the links but I just get syntax problems then and dead links that lead here.

LumoMongo replied SEO URL's...

hmm... simplest way would be to use SEO URL's...

I dont know if there is a workaround for this, I think it would be best if Skashi had a look at it - I am sure the admin method works fine, but due to the nature of XML based content I can see why the ampersand is breaking the file.

Skashi will see this post and reply with any possible workarounds, I have mailed him about it.

skash replied Workaround

The ampersand is a reserved character in xml. You must escape it as &

So instead of doing this:

<link>http://www.mysite.com?option=com_powerslidepro&id=2</link>


Add the & instead:

<link>http://www.mysite.com?option=com_powerslidepro&amp;id=2</link>

jerry3 replied Thanks!

Awesome guys thanks for the quick support on this truly priceless joomla plugin

LumoMongo replied No problem

Glad you got sorted out

You must be logged in to post a comment. Please register if you do not have an account yet.

busy

INSIDE: Forum / Extensions

members

search