<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>chirale &#187; path</title>
	<atom:link href="http://chirale.wordpress.com/tag/path/feed/" rel="self" type="application/rss+xml" />
	<link>http://chirale.wordpress.com</link>
	<description>watashi no yume...</description>
	<lastBuildDate>Mon, 07 Dec 2009 08:58:07 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='chirale.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/913d290334c442dca8a7360d648ac1bd?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>chirale &#187; path</title>
		<link>http://chirale.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://chirale.wordpress.com/osd.xml" title="chirale" />
		<item>
		<title>Get alias or system path: drupal_lookup_path</title>
		<link>http://chirale.wordpress.com/2008/06/26/get-alias-or-system-path-drupal_lookup_path/</link>
		<comments>http://chirale.wordpress.com/2008/06/26/get-alias-or-system-path-drupal_lookup_path/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 13:40:44 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[drupal_lookup_path]]></category>
		<category><![CDATA[l]]></category>
		<category><![CDATA[path]]></category>
		<category><![CDATA[system path]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=81</guid>
		<description><![CDATA[l function converts automatically system path in alias where available.
This simple snippet ports this useful function on your raw HTML attributes, point to alias or to the system path.
if(($nodepath = drupal_lookup_path('alias',"node/".$realnode-&#62;nid))===FALSE)
$nodepath =  base_path() . "node/".$realnode-&#62;nid;
Where $nodepath can be used on href
Cfr. drupal_lookup_path
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=81&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://api.drupal.org/api/function/l/5">l function</a> converts automatically system path in alias where available.</p>
<p>This simple snippet ports this useful function on your raw HTML attributes, point to alias or to the system path.</p>
<p><code>if(($nodepath = drupal_lookup_path('alias',"node/".$realnode-&gt;nid))===FALSE)<br />
$nodepath =  base_path() . "node/".$realnode-&gt;nid;</code></p>
<p>Where $nodepath can be used on href</p>
<p>Cfr. <a href="http://api.drupal.org/api/function/drupal_lookup_path/5">drupal_lookup_path</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chirale.wordpress.com/81/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chirale.wordpress.com/81/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/81/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/81/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/81/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=81&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2008/06/26/get-alias-or-system-path-drupal_lookup_path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
		<item>
		<title>Contemplate and views: create a link without $node-&gt;path</title>
		<link>http://chirale.wordpress.com/2008/02/28/contemplate-and-views-create-a-link-without-node-path/</link>
		<comments>http://chirale.wordpress.com/2008/02/28/contemplate-and-views-create-a-link-without-node-path/#comments</comments>
		<pubDate>Thu, 28 Feb 2008 10:25:56 +0000</pubDate>
		<dc:creator>chirale</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[path]]></category>

		<guid isPermaLink="false">http://chirale.wordpress.com/?p=47</guid>
		<description><![CDATA[In contemplate and views, $node-&#62;path return current page path. But this variable is only available to users with &#8220;administer alias&#8221; permission, so as administrator you can view links, but as normal user you cannot use them.
Here a $node-&#62;path alternative:
l(strip_tags($node-&#62;title),"node/".$node-&#62;nid)
Since $node-&#62;title is raw input, strip_tags strips all HTML tags.
A node/$node-&#62;nid links to article. Drupal link function [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=47&subd=chirale&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In contemplate and views, $node-&gt;path return current page path. But this variable is only available to users with &#8220;administer alias&#8221; permission, so as administrator you can view links, but as normal user you cannot use them.</p>
<p>Here a $node-&gt;path alternative:</p>
<p><code>l(strip_tags($node-&gt;title),"node/".$node-&gt;nid)</code></p>
<p>Since <code>$node-&gt;title</code> is raw input, <a href="http://it2.php.net/manual/it/function.strip-tags.php">strip_tags</a> strips all HTML tags.<br />
A <code>node/$node-&gt;nid</code> links to article. Drupal link function returns the (in case) aliased path.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/chirale.wordpress.com/47/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/chirale.wordpress.com/47/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/chirale.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/chirale.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/chirale.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/chirale.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/chirale.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/chirale.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/chirale.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/chirale.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/chirale.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/chirale.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=chirale.wordpress.com&blog=1488255&post=47&subd=chirale&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://chirale.wordpress.com/2008/02/28/contemplate-and-views-create-a-link-without-node-path/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/12a67456dc1db7deec545e23d51e0c8c?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chirale</media:title>
		</media:content>
	</item>
	</channel>
</rss>