Yii Framework Forum: [EXTENSION] ESitemap - Yii Framework Forum

Jump to content

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

[EXTENSION] ESitemap Rate Topic: -----

#1 User is offline   Dana 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 203
  • Joined: 18-February 10
  • Location:Florida, USA

Posted 09 March 2011 - 03:50 PM

I just created this Sitemap Extension which allows you to add class based actions to a controller to create a sitemap.

The extension can be found here:
http://www.yiiframew...nsion/esitemap/

Please share any feedback/feature requests!
0

#2 User is offline   Dana 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 203
  • Joined: 18-February 10
  • Location:Florida, USA

Posted 11 March 2011 - 09:52 AM

Added this to GitHub as well- https://github.com/DanaLuther/ESitemap
0

#3 User is offline   JCR 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 19-November 10

Posted 30 September 2012 - 10:24 AM

Hi there. Great work on the extension.

Thought I'd share something though but since I'm kind of a new poster it definitely had to be here on the forum page.
Your thinking was pretty much spot on in the url / path formulation for the specified model type and only then replacing the parameter values but you'd probably want to change the SitemapModel to urlencode said parameter values, so it'd output the correct value instead of the current unencoded one.

<loc>example.domain/post/2-this+is+a+post</loc>

instead of
<loc>example.domain/post/2-this is a post</loc>


SitemapModel.php (line 136) should then become:
$vals[] = urlencode($model->$attr);


Keep up the great work.
0

#4 User is offline   Zvook 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 19-July 13

Posted 19 July 2013 - 01:07 AM

Hi! Great extension!
But I have just one question about it:
How can I use several models into the 'classConfig'?
I mean if I have some action with input params of several different models?
For example:
public function actionOne(modelX_id, modelY_id, modelZ_id){}

0

#5 User is offline   Sailendra Shakya 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 05-August 13

Posted 06 August 2013 - 12:34 AM

Can you tell me what is the difference between using xml extension of yii and xml created by xml generator? I need xml site map for my website.
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