Posted by Phoenix2020 on November 4, 2009 at 12:46pm
Jump to:
| Project: | XML sitemap |
| Version: | 6.x-2.x-dev |
| Component: | xmlsitemap_custom.module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Issue Summary
I have some views that are filtered by variables in the url. For example:
www.mywebsite.com/hotels?city=london
www.mywebsite.com/hotels?city=miami
...
I want to insert some of these urls as custom links into XML-Sitemap 2. But I can only insert the path "hotels". If I want to insert the path "hotels?city=london" for example, I get the following error:
The custom link hotels?city=london is either invalid or it cannot be accessed by anonymous users.
Is there a way to insert such paths?
Comments
#1
Ugh, adding query support to the custom links isn't really going to be easy. It might be easier and better for you to make your view paths work like
hotels/city/londonor something similar. I'm going to have to leave this as postponed for now.#2
#3
Did you ever get this solved and if yes how, please?
#4
Dependent on #839636: Support paths with query arguments
#5
+1 for this feature request.
"Ugh" is exactly what I said after seeing how this is(n't) handled. I'd love to pitch in, but having only worked with it for a few hours would certainly break something: it's not a simple patch. It would be great to just be able to alter the second argument passed to url() in
xmlsitemap_generate_chunk()via a hook or ideally in the data of the $link array itself.Since this module is useful and robust in other respects... I guess it's down to rewriting views. :'(