Training

Our next U.S. stop:

NOTE: The date of this workshop has been changed to July 23.

Join us in July at Leu Gardens in Orlando for this day-long no-frills Friday focused on the Content Construction Kit and Views modules, two of the most widely used modules in the Drupal eco-system. We’ll cover these useful tools that allow you to define, edit, add and delete new types of content, such as blog posts, press releases, photo albums or newsletters and how they will be presented on your site. Our hometown no frills fee of $124 covers training from 9 to 5.

Additional upcoming training events...

New Podcast

Posted Friday, June 26 at 10:19 am

We're back together for another news-based DrupalEasy podcast covering some of the latest Drupal-related (and sometimes not-so-related) happenings in the Drupal community. Join Andrew Riley, Ryan Price, and myself (Mike Anello) as we discuss Opera Unite, the next version of Drupal and CCK, an upcoming Drupal-powered intranet package. As always, we also make our Picks of the Week and Site of the Week.

Download Podcast 12
DrupalEasy_ep12_20090625.mp3
Syndicate content

Testimonial

On March 11th I attended the first DrupalEasy Workshop in Orlando, Florida. I'm an experienced web developer who has recently picked up Drupal as a tool for helping to build high quality content-driven websites. Mike and Ryan were excellent teachers - they gave a thorough overview of a complex topic in a short space of time, and provided plenty of resources for us to continue learning. The workshop is essential for anyone who has previously configured a basic Drupal site and wishes to take their skills to an advanced level. I would not hesitate to recommend DrupalEasy.com training and hope to attend more workshops in the future.

Everywhere

Check out DrupalEasy around the web:

Who are we?

DrupalEasy is the collective expertise of Ryan Price and Michael Anello, who joined forces to provide training and consulting services worldwide. Read all about them and what they can do.

What is Drupal?

Drupal is a free, super-powerful content management system for sites that require information posting and collection, including blogs, forums, videos, photos, and databases of information. We think it is the best platform available. Here's why...

Why Drupal?

More and more savvy organizations are going with Drupal for content management, and its no mystery why. It’s free, flexible, and easy to maintain for small or large volume sites. Learn more...

XML Sitemap not associated with pathauto url aliases

Average: 3.3 (6 votes)

This question comes to us from our Facebook forum. It feels good to answer, because this is the first of many questions we'll be answering here on the site.

Some Help I need (XML Sitemap)

wrote on Jan 8, 2008 at 5:52 PM.

So right now, I've been trying to fix an issue I have on my website. I imported everything I had from WordPress (posts, comments, categories/tags, etc), and then I installed the pathauto and the XML Sitemap modules. The problem I'm having is that XML Sitemap is producing a sitemap with every link in terms of nodes rather than the aliases my pages now have, and I would strongly prefer it to use the aliases. My NEW content is being included in the sitemap using aliases, but all the previously imported content is in the node format.

You can look at my sitemap if you're not sure what I mean, is http://omareduardo.com/sitemap.xml

Thanks for any help!
-Omar

I was looking at the database tables for XML sitemap. It stores a `pid`field in each row of the `xmlsitemap_node` table. It's likely that your links were added to the table and haven't been associated with their path and the entry in the `xmlsitemap_node` table. You could do this by hand, but there appears to be a function called drupal_lookup_path()
that accepts a few arguments.

http://api.drupal.org/api/function/drupal_lookup_path/5

Description

drupal_lookup_path($action, $path = '')
Given an alias, return its Drupal system URL if one exists. Given a Drupal system URL return one of its aliases if such a one exists. Otherwise, return FALSE.

Parameters

$action One of the following values:

  • wipe: delete the alias cache.
  • alias: return an alias for a given Drupal system path (if one exists).
  • source: return the Drupal system URL for a path alias (if one exists).

$path The path to investigate for corresponding aliases or system URLs.

Return value

Either a Drupal system path, an aliased path, or FALSE if no path was found.

Trackback URL for this post:

http://drupaleasy.com/trackback/2

4 comments

Pingback

[...] I answered the first question on the site, about pathauto aliases and XML Sitemaps. I hope we keep getting some mid-level questions like this, but also some much simpler [...]

Guest wrote 1 year 20 weeks ago

This is working for

This is working for me...http://www.jasperkooij.com/drupal/drupal-xml-sitemap-problems.htm

user picture
ryanprice wrote 41 weeks 4 days ago

Having just experienced the

Having just experienced the same problem on this site, I find that editing the node and saving it will do the trick, but if you're talking about several thousand nodes, you don't have that option.

I have also set the weight of my XML sitemap to a positive number, at the suggestion of countless tips all over the drupalsphere.

Add your comment

The content of this field is kept private and will not be shown publicly.
 

Syndicate content