LemonStand Forum: Sitemap - LemonStand Forum

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Sitemap Add a sitemap for your store

#21 User is offline   EHLOVader 

  • LemonElite
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 309
  • Joined: 05-May 11

Posted 30 March 2012 - 03:26 AM

View PostMatthew3man, on 30 March 2012 - 01:53 AM, said:

Can't really see how this ties in with my point to be honest. The idea is I need actual files to be created, at the moment the files don't ever exist, it's just the .htaccess and PHP that resolve the sitemap. What I want is for the sitemap to have a generated file too (maybe in a nested category) that could be included & manipulated to show a HTML sitemap on the front end.

Matt


Why would you need actual files created?

It generates on the fly, that is how PHP works.

What would you use actual files for? the file not found is due to the .htaccess routing, it is either not reaching the right part of your application, or doesn't know where to look and is looking at files.

If you didn't do anything with the .htaccess file when adding the sitemap module, per the instructions in the marketplace and here, then that is why you are getting the error.
0

#22 User is offline   Matthew3man 

  • Member
  • Group: Members
  • Posts: 26
  • Joined: 15-February 12
  • LocationSouthampton, United Kingdom

Posted 02 April 2012 - 04:18 AM

View PostEHLOVader, on 30 March 2012 - 03:26 AM, said:

Why would you need actual files created?

It generates on the fly, that is how PHP works.

What would you use actual files for? the file not found is due to the .htaccess routing, it is either not reaching the right part of your application, or doesn't know where to look and is looking at files.

If you didn't do anything with the .htaccess file when adding the sitemap module, per the instructions in the marketplace and here, then that is why you are getting the error.



The sitemap.xml on my site works fine. That is not what I am trying to achieve with this. I understood the .htaccess parts but my request is this:

To create a HTML sitemap based on this XML generated sitemap. I wanted to get PHP to generate it using the 'file' functions in PHP, allowing me to open sitemap.xml and replace certain XML tags with HTML ones, and then output it on the front end. But as previously mentioned, there is not an actual sitemap.xml file, only .htaccess commands that handle that request. So my request is really quite simple (hopefully) - how can you force the plugin to create a sitemap.xml file? Any points to where I can edit the code would be amazing!
0

#23 User is offline   EHLOVader 

  • LemonElite
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 309
  • Joined: 05-May 11

Posted 02 April 2012 - 05:36 AM

View PostMatthew3man, on 02 April 2012 - 04:18 AM, said:

The sitemap.xml on my site works fine. That is not what I am trying to achieve with this. I understood the .htaccess parts but my request is this:

To create a HTML sitemap based on this XML generated sitemap. I wanted to get PHP to generate it using the 'file' functions in PHP, allowing me to open sitemap.xml and replace certain XML tags with HTML ones, and then output it on the front end. But as previously mentioned, there is not an actual sitemap.xml file, only .htaccess commands that handle that request. So my request is really quite simple (hopefully) - how can you force the plugin to create a sitemap.xml file? Any points to where I can edit the code would be amazing!



ah, I guess I misread, for some reason I picked up on a file not found error, but don't see it now. (except way up towards the top)

For HTML though the modules may not be the best place to develop that, the frontend is missing a large amount of automated things because they leave formatting and markup to you.

Maybe a good way for Sitemap to support what you need to do, is to abstract it a bit more, and provide public or simple static methods to return the various parts. Currently it supports Pages, Products, Categories, Blog posts and the private release Wiki.

Then once you have the data at hand, you would be able to loop through it as needed in your CMS page for the sitemap. Allowing you to build out the style, in line with your own site.
0

#24 User is offline   apepp 

  • LemonElite
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 820
  • Joined: 30-October 11

Posted 30 April 2012 - 12:09 AM

Hello fellow lemonheads!

I'm experiencing a problem with sitemap...is this a bug or is it just me?

I'm using the one from github, last updated in March...

...when clicking on "Sitemap Configuration" in the backend admin settings i get error display:

http://www.zen63258....%2008.54.25.png

...can anyone shed any light on this error?

...the sitemap still gets genereated though, but i can't see the settings in admin.

..also, on another note, is it possible for the sitemap to include grouped product URLs...can't see here that they are being included?

many thanks!

This post has been edited by apepp: 30 April 2012 - 12:20 AM

0

#25 User is offline   Manca 

  • Developer
  • Group: +Administrators
  • Posts: 252
  • Joined: 02-September 11

Posted 30 April 2012 - 11:36 AM

Hi Andrew,

The error you're getting seems to be coming from the code that outputs the list of CMS pages on the Sitemap configuration area. I was able to replicate it in my store, it happens if you have theming enabled in your store but have at least one CMS page that doesn't belong to any theme (which shouldn't be possible in LS, I'd advise checking the pages DB table and seeing which pages have no theme assigned). I'll update the module next time I get the chance to avoid the error.

Grouped products are not included on the sitemap, no. I'll take that as a suggestion, we might add it in when time permits.

Thank you

#26 User is offline   apepp 

  • LemonElite
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 820
  • Joined: 30-October 11

Posted 30 April 2012 - 11:42 AM

...perfect Manca! Magnifico!! Found a blank row in the pages table, no idea how that one got there, but it is now working with it removed...

..cheers!

:D B)

Andrew
0

#27 User is offline   Manca 

  • Developer
  • Group: +Administrators
  • Posts: 252
  • Joined: 02-September 11

Posted 04 May 2012 - 01:03 PM

Glad you caught that one, Andrew. It's probably a good thing you removed it, it could have caused issues elsewhere.

I fixed the issue in the module and published the update. If anyone else is experiencing the same issue, please update the module.

Thank you

#28 User is offline   bennyb 

  • Member
  • Group: Members
  • Posts: 26
  • Joined: 18-June 12

Posted 09 January 2013 - 08:17 AM

I've just installed this, I had to change the .htaccess file to get the XML to show and all seems to work fine except some of the urls generated are wrong.

My LS install is in a sub directory called 'shop'
I have 'Generate individual category pages' checked
Category root path is set to '/category'

In the xml my top level urls come out as:

http://www.mysite.com/shop/product/

but all the category urls come out as:

http://www.mysite.co...category/gifts/

duplicating the 'shop' part of the URL.

I've tried all combinations in the 'category root path' field with no luck. Is it a .htaccess problem?

Many thanks
Ben
0

#29 User is offline   Manca 

  • Developer
  • Group: +Administrators
  • Posts: 252
  • Joined: 02-September 11

Posted 09 January 2013 - 02:52 PM

Hi Ben,

I just did a quick test with a similar setup and you're right, the category urls come out incorrect if you have a Rewrite Base directive in your .htaccess (eg. "RewriteBase /shop", which you would need on some servers to get everything working right). We'll fix that with an update, though we won't have a chance to work on that until next week at the earliest. I'll post here when a fix is released.

Thank you

#30 User is offline   bennyb 

  • Member
  • Group: Members
  • Posts: 26
  • Joined: 18-June 12

Posted 11 January 2013 - 03:04 AM

Thats great, I look forward to the update

Many thanks
Ben
0

#31 User is offline   bennyb 

  • Member
  • Group: Members
  • Posts: 26
  • Joined: 18-June 12

Posted 31 January 2013 - 02:36 AM

Hi Manca

Just wondering if you had a chance to look at this issue yet?

Thanks
0

#32 User is offline   lexbi 

  • Member
  • Group: Members
  • Posts: 25
  • Joined: 05-January 12

Posted 22 April 2013 - 06:18 AM

Does this require a cron job to update the sitemap? Does it do this automatically? Does it do it run when someone logs into the backend or what?
0

#33 User is offline   lexbi 

  • Member
  • Group: Members
  • Posts: 25
  • Joined: 05-January 12

Posted 22 April 2013 - 06:25 AM

Also are there any plans to detect pages outside of Lemonstand? For example a wordpress install on the same site?
0

Share this topic:


  • 2 Pages +
  • 1
  • 2

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