RSGallery2 Support Forums
Welcome, Guest. Please login or register.

Login with username, password and session length
  Home    Forum    Help    Search    Login    Register  
*
News : November 20, 2008, 05:25:25 pm
+  RSGallery2 Support Forums
|-+  RSgallery2 support forums
| |-+  Display and Templates (Moderators: Jonah, Tomislav Ribicic, Daniel Tulp, Ronald Smit)
| | |-+  Google Sitemap template - someone please test
Advanced search
  « previous next »
Pages 1
Author
Topic: Google Sitemap template - someone please test  (Read 1709 times)
« on: September 03, 2008, 11:43:40 pm »
Chef Groovy Offline
Dev Team
Full Member
*
Posts: 110
danshaffer@insightbb.com
View Profile WWW

I made a temple to issue a site for all images to Google webmaster tools.  It's in the SVN at in the templates directory.

to call it, tell google to get sitemap something like

http://www.fantasyartwork.net/index.php?option=com_rsgallery2&task=xml&xmlTemplate=xml_google_sitemap&gid=11

for one of mine, or leave off the GID to send a list of all published images

note: it uses the old method of creating the xml (output .= data), don't know how to do the new buffering method, if anyone can shed some light, please advice.

Also how do you read template parameters in a xml template??

Thanks
Logged

Chef Groovy
RSGallery2: Legacy - Dev
Test Site: dev.fantasyartwork.net
 
Reply #1
« on: September 04, 2008, 10:52:14 pm »
Chef Groovy Offline
Dev Team
Full Member
*
Posts: 110
danshaffer@insightbb.com
View Profile WWW

doh, forgot to attach it
Logged

Chef Groovy
RSGallery2: Legacy - Dev
Test Site: dev.fantasyartwork.net
 
Reply #2
« on: September 05, 2008, 03:42:30 am »
john Offline
Dev Team
Sr. Member
*
Posts: 458

View Profile Email

Hey ..

if your template inherits from the meta template (class rsgTemplate in meta/display.class.php) the you can access the parameters like this:

Code:
$this->params->get('parameter name')

else you should have a look at lines 20-33 of the above mentioned file on how to load the parameters.

John
Logged
 
Print  Pages 1
« previous next »
Jump to: