Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#73 2007-05-10 22:01:11
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: asy_sitemap: Google-Sitemap (as-is/for developers)
Jeremie wrote:
Stupid question: how to use the
asy_allowed
function? I don’t get the help in the comment lines above it.For example, if I want to exclude the sections A, B, C and D, what the code would be?
Seems like Jeremie never got an answer, and I’d like to know this too. So please?
Offline
Re: asy_sitemap: Google-Sitemap (as-is/for developers)
I think it would be like this:
return !($section = = 'A' || $section = = 'B');
It includes everything except the sections in the asy_allowed function. So here section “A” and section “B” are not included in the sitemap.
edit: the double equal signs should have no gap between them.
Last edited by tinyfly (2007-05-10 22:14:48)
Refresh Dallas and other Refreshing Cities.
Offline
#75 2007-05-10 22:18:41
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: asy_sitemap: Google-Sitemap (as-is/for developers)
Thank you!
Offline
#76 2007-05-11 11:47:50
- aba
- Plugin Author
- Registered: 2004-04-14
- Posts: 119
Re: asy_sitemap: Google-Sitemap (as-is/for developers)
tinyfly wrote:
Anybody else know how to fix the Cannot redeclare page_title() error mentioned previously?
Change
include txpath.’/publish/taghandlers.php’;
to
include_once txpath.’/publish/taghandlers.php’;
Offline
Re: asy_sitemap: Google-Sitemap (as-is/for developers)
Excellent! That did it.
Offline
Re: asy_sitemap: Google-Sitemap (as-is/for developers)
Yup for me too, but now I got a Fatal error: Call to undefined function permlinkurl() in /home.10.5/dorem/multi/shadowrun.fr/textpattern/lib/txplib_misc.php(523) : eval()'d code on line 217
error
My bad, it’s seems to work.
Last edited by Jeremie (2007-05-13 05:15:12)
Offline
Re: asy_sitemap: Google-Sitemap (as-is/for developers)
OK – I seem to be getting some errors with this plugin – especially after upgrading to 4.0.5.
Notice: Undefined index: view in /path/to/home/textpattern/lib/txplib_misc.php(534) : eval()’d code on line 87
I can say straight up that I do not have the skills required to re-code this at all and, provided Sencer is OK with this, was wondering if anyone wants to take it over and iron out the bugs :)
If anyone does take up this project, here are some thoughts for improvement:
- Choose which section, categories, articles are to be included.
- Create different sitemap versions (for Yahoo – if this is important)
- Create a human categorised sitemap (possibly with the options of creating a template with tags)
Anyone got any more suggestions?
I know – its a bit cheeky asking for additions – I’d be happy if it worked without giving errors :)
Offline
Re: asy_sitemap: Google-Sitemap (as-is/for developers)
I’ll be glad to assist the person interested in taking this plugin over. :)
If I can find the time, I’ll tr to udpate the plugin within the next 3 weeks. (No promises ;))
Offline
Re: asy_sitemap: Google-Sitemap (as-is/for developers)
Thanks Sencer – if I had the skills I would help… I might have a look anyway – but **WARNING ** don’t hold your breath :)
Offline
#82 2007-12-12 17:23:42
- vickilh
- Member
- Registered: 2007-10-30
- Posts: 96
Re: asy_sitemap: Google-Sitemap (as-is/for developers)
I am going to sound like a total boob … but how do I get my sitemap.xml file to display in a web page?
Thanks! Vicki
Offline
#83 2007-12-12 17:40:59
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: asy_sitemap: Google-Sitemap (as-is/for developers)
The XML file is not meant to be displayed in a browser. If you want to add a sitemap page to your site, see this post for a couple of suggestions.
Offline
#84 2007-12-12 23:08:31
- vickilh
- Member
- Registered: 2007-10-30
- Posts: 96
Re: asy_sitemap: Google-Sitemap (as-is/for developers)
Thanks! I’ve set that up. But … (I’m new to Texpattern) .. how do I get the sitemap to display? I’ve set up the form, template, and section. If I go to the URL for that section [<site>//txp/?s=Sitemap], nothing shows up. — I know I’m missing something, just don’t know what.
Thanks!! Vicki
Offline