Yii Framework Forum: Webfeeds, navigation and sitemap.xml? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Webfeeds, navigation and sitemap.xml? Rate Topic: -----

#1 User is offline   fibler 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 06-October 09

Posted 11 December 2009 - 08:25 AM

I recently followed the 'How to generate Web feed for an application' cookbook example using Zend components to generate rss feed. Which was very helpful and easy to do.

What I was wondering, is there a way to manage navigation in Yii so all links can be added to a sitemap.xml file?

I'm just starting to learn xml and any help would be appreciated.

thanks
0

#2 User is offline   fibler 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 06-October 09

Posted 11 December 2009 - 05:59 PM

Ok -- so what I thought I might try doing is using the Zend Navigation class to create a menu and sitemap. As described in the tutorial here

I was able to initiate the class and output the XML data into an array. However, im not sure how to use the Zend_Navigation menu function. In the tutorial they use $this->navigation()->menu(); to output a menu list, although i'm not sure how to do it in Yii.

Also, does anyone know the pros / cons of using xml? Is it better for seo, more server intensive, etc.... ???? I'm just wondering when it would be beneficial to use XML in your applicaton.

Any thoughts?
0

#3 User is offline   fibler 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 35
  • Joined: 06-October 09

Posted 12 December 2009 - 08:55 AM

After doing some research I can now see the benefits of using XML extensively within an application. Making your data readily available to external sources is a good idea.

I'm going to experiment a bit with simpleXML and build my own xml interpreter to manage my navigation, breadcrumbs and sitemap. If anyone has already built a class to work with Yii and would like to share please get in touch!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users