Theme Joomla Extensions

XML Fetch Method

I am trying to use the XML File gallery fetch method, but when I set the gallery to XML, it does not show anything at all.

Here is what I have done:

chmod 755 modules/mod_powerslide/xml/mod_powerslide.xml (this file already existed when I installed the module)

Then edit the contents of modules/mod_powerslide/xml/mod_powerslide.xml to be the following:

 
<?xml version="1.0" encoding="utf-8"?>
<galleries>
<gallery>
<image>
<title>Worship Times</title>
<description>We meet each sunday at:</ br>
8:00 AM - Meditative Worship in Fireside building</ br>
9:30 AM - Traditional Worship in </ br>
11:30 AM - The Journey, a contemporary worship in Ross Hall
</description>
<filename>/images/powerslide/front-cropped.png</filename>
<link>http://www.url01.url</link>
</image>
<image>
<title>Welcome</title>
<description>Welcome to Tempe First United Methodist Church. Click here for Visitor information.</description>
<filename>/images/powerslide/church-cross-sized.png</filename>
<link>http://www.url02.url</link>
<defaultimage>1</defaultimage>
</image>
</gallery>
</galleries>

I don't have URLs to link to yet, so I left those example URLs.

I did not create a new file, I only edited the example that was installed with the module, and changed it's file permissions to 755.
When I activate this, the website loads with no powerslide module. When It it switched to "folder structure method" everything works fine (except I don't have image descriptions).

I have tried giving the XML file absolute filenames (http://...) as well, this did not have any effect on the status of the module.

LumoMongo replied Remove line breaks

Try and take the line breaks as shown below out of your description

line breaks look like this: <br/> or <br>


- as that could be breaking the XML script - if you make your description just plain text it might sort out the display issue...

As you say, your permissions etc are correct, so I think that might be the problem.

clydekiller replied I'm having a similar problem.

I edited the example file and when I try to load the xml file I get this error on my front page:

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


Any ideas?
When I use the folder method everything works fine but the xml fetch does not...

skash replied Formatting issue with xml file

There is usually a formatting issue with your xml file for it to give you that error. Send us a support ticket (click Support on our menu above) and attach your xml file and I will try identify the problem.

jerry3 replied Link tags within xml file...

I've noticed that if i provide a link in the link tags:

 <link></link>

within the XML file that includes an ampersand - &, it will spit out the error:

Warning: Invalid argument supplied for foreach() in /home7/site99/public_html/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 to here?

clydekiller replied Yeah, I noticed that too.

The ampersands do cause those errors. I gave up on the xml file and plan to just use the folder option. I know I did everything correctlyto get the XML working but it doesn't (Guess thats how they get you to buy the PRO version)

skash replied ampersand as &

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>

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