Q. How to generate Sitemap ?
|
541 posts
|
create a snippet
in your sitemap page body, write: note: set your sitemap page hidden if you don't want it in your "sitemap". |
|
1493 posts
|
This is beautiful! :)) Thank you, Philippe! |
|
1493 posts
|
Just added this to the wiki with a bit of light editing. |
|
541 posts
|
if you want to include hidden pages just change |
|
41 posts
|
Hi there, by some reason I’m getting an error. The output I get is:
Does anyone know what could it be? :S |
|
1493 posts
|
When you did your copy/paste, did you miss out the first |
|
41 posts
|
I putted the code on a snipped and I called the snippet from the sitemap page. I’m getting the error with the html and the xml sitemaps (the xml of course, is with an xml layout). html sitemap: http://indi.solubl.es/comic_sitemap I checked the tags, and none is left open… |
|
1493 posts
|
Weird one, Pnikosis! Can you copy/paste in your HTML snippet, and the code that calls it from the “comic_sitemap” page in the Frog pastebin. Not sure what else to suggest without seeing the code you’re using. |
|
41 posts
|
Pretty weird indeed. I’ve checked the code several times, and I can’t find anything. Anyway, here is the snippet pasted (the snipppet’s name is ‘sitemap’): http://frog.pastebin.com/m95e9551 And the call: http://frog.pastebin.com/m15255ba0 |
|
1493 posts
|
Just a hunch — do you have a filter set on your Sitemap page? And if so, is it Textile? That gives me the identical error to yours with your code, which otherwise works fine when the Sitemap page has a filter of Hope that solves it! |
|
41 posts
|
David, you are right (I’m such a moron), I had the textile filter set on the page. I’ve checked everything but that. Thanks again! If sometime you come to Spain I’ll invite you a couple (or more) of beers :) |
|
1493 posts
|
Sounds good to me! :P Glad it got sorted. |
|
35 posts
|
dies this trick work in 0.9.4 ?
Doesn’t seem to return anything for me when i am finding children of a hidden page like this: |
|
35 posts
|
ah, my mistake. As usual, frog works as expected and is rock solid. It’s nice to be able to count that the issue is me when it doesnt work.
returns published pages of a hidden parent page, exactly what I wanted! |
|
22 posts
|
Can you show us the exact code you ended-up using as I need that same functionality for my sitemap since my site is split in two folders (multilanguage) and the folders are setup as hidden. Thanks in advance. |
|
1493 posts
|
Hi 5ubstance: the line of code in the post above yours should be the working version. Try it, and if you have problems, let us know what they are! |
|
22 posts
|
I’m sure it works David, I’m just not sure about where it goes. Should this be working :
Cause it gives me this :
I’m really not sure about where to place that code.. |
|
1493 posts
|
Did you try using these instructions ? It looks to me like the page isn’t being properly recognized as XML. |
|
22 posts
|
Yeah, the code is fine if I don’t change anything. It’s working with philippe’s solution :
but then, I need to do exactly what avagraphique did which is : return published pages of a hidden parent without the hidden parent itself, and then generate that list as a sitemap. I hope I’ve explained myself correctly but if not, here are some screengrabs :
|
|
1493 posts
|
I think the problem is where you are trying to set the root of your search. Set the “5th” line of the function back to the original:
Then, at the end of the snippet code, change the
and see how that works. (Then just change |
|
22 posts
|
David, you are a Frog CMS official ROCK STAR !! Okay, maybe I’m exxagerating.. a LITTLE bit :P Anyways, you opened my eyes with your last post. I just ended up copying that last segment and changing the roots to /fr/ and /en/ . Here’S what it looks like :
Thanks again David p.s. the amount of posts you have right now really speaks for itself… :P |
|
7 posts
|
he is in the 1337 |

