<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: jQuery Slug Plugin</title>
	<atom:link href="http://www.thewebsitetailor.com/jquery-slug-plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thewebsitetailor.com</link>
	<description>Perry Trinier</description>
	<lastBuildDate>Sun, 06 Nov 2011 23:17:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Permalink: esempio di utilizzo del plugin per lo slug (#slug #permalink #jQuery #plugin) &#171; sipronunciaaigor</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-1377</link>
		<dc:creator>Permalink: esempio di utilizzo del plugin per lo slug (#slug #permalink #jQuery #plugin) &#171; sipronunciaaigor</dc:creator>
		<pubDate>Wed, 27 Apr 2011 10:51:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-1377</guid>
		<description>[...] modifica che ho effettuato allo script originale (jQuery slug plugin di Perry) prevede l&#8217;utilizzo di &lt;span class=&#8221;slug /&gt; prima del campo di input per [...]</description>
		<content:encoded><![CDATA[<p>[...] modifica che ho effettuato allo script originale (jQuery slug plugin di Perry) prevede l&#8217;utilizzo di &lt;span class=&#8221;slug /&gt; prima del campo di input per [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fabrizio Di Pietro</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-1375</link>
		<dc:creator>Fabrizio Di Pietro</dc:creator>
		<pubDate>Mon, 25 Apr 2011 16:59:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-1375</guid>
		<description>Hi Perry,
I&#039;m using your plugin: really a very good plugin.
I&#039;ve changed something and I would like you to take a look at my changes.
I&#039;ve tried to generalize its using.

http://sipronunciaaigor.wordpress.com/2011/04/25/permalink-come-creare-uno-slug-stile-wordpress/

Bye,
Fabrizio</description>
		<content:encoded><![CDATA[<p>Hi Perry,<br />
I&#8217;m using your plugin: really a very good plugin.<br />
I&#8217;ve changed something and I would like you to take a look at my changes.<br />
I&#8217;ve tried to generalize its using.</p>
<p><a href="http://sipronunciaaigor.wordpress.com/2011/04/25/permalink-come-creare-uno-slug-stile-wordpress/" rel="nofollow">http://sipronunciaaigor.wordpress.com/2011/04/25/permalink-come-creare-uno-slug-stile-wordpress/</a></p>
<p>Bye,<br />
Fabrizio</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Permalink: come creare uno slug &#8220;stile wordpress&#8221; &#171; sipronunciaaigor</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-1374</link>
		<dc:creator>Permalink: come creare uno slug &#8220;stile wordpress&#8221; &#171; sipronunciaaigor</dc:creator>
		<pubDate>Mon, 25 Apr 2011 16:52:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-1374</guid>
		<description>[...] Sto sviluppando un nuovo progetto e mi sono trovato nella necessità di creare qualcosa tipo il generatore di permalink di wordpress (altrimenti detto slug). Cercando qua e là un plugin jquery, ho trovato questo jquery slug plugin. [...]</description>
		<content:encoded><![CDATA[<p>[...] Sto sviluppando un nuovo progetto e mi sono trovato nella necessità di creare qualcosa tipo il generatore di permalink di wordpress (altrimenti detto slug). Cercando qua e là un plugin jquery, ho trovato questo jquery slug plugin. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BandonRandon</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-1163</link>
		<dc:creator>BandonRandon</dc:creator>
		<pubDate>Wed, 16 Feb 2011 05:13:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-1163</guid>
		<description>It seems like this plugin has involved and been improved any plans to update it either here or on Google Code? 

Brooke</description>
		<content:encoded><![CDATA[<p>It seems like this plugin has involved and been improved any plans to update it either here or on Google Code? </p>
<p>Brooke</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Perry</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-852</link>
		<dc:creator>Perry</dc:creator>
		<pubDate>Thu, 16 Dec 2010 21:46:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-852</guid>
		<description>Thanks Charlie,

That&#039;s a great function... could really simplify my plugin!</description>
		<content:encoded><![CDATA[<p>Thanks Charlie,</p>
<p>That&#8217;s a great function&#8230; could really simplify my plugin!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-851</link>
		<dc:creator>Charlie</dc:creator>
		<pubDate>Thu, 16 Dec 2010 20:57:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-851</guid>
		<description>quick and dirty jquery solution with international characters support:

hardcode 2 inputs: #title and #slug

include this js: (it collapses hyphens and whitespace and converts international characters.)
http://dense13.com/blog/2009/05/03/converting-string-to-slug-javascript/

and then: 
$(&#039;#title&#039;).keyup(function() {				$(&quot;#slug&quot;).val(string_to_slug($(&quot;#title&quot;).val())); });</description>
		<content:encoded><![CDATA[<p>quick and dirty jquery solution with international characters support:</p>
<p>hardcode 2 inputs: #title and #slug</p>
<p>include this js: (it collapses hyphens and whitespace and converts international characters.)<br />
<a href="http://dense13.com/blog/2009/05/03/converting-string-to-slug-javascript/" rel="nofollow">http://dense13.com/blog/2009/05/03/converting-string-to-slug-javascript/</a></p>
<p>and then:<br />
$(&#8216;#title&#8217;).keyup(function() {				$(&#8220;#slug&#8221;).val(string_to_slug($(&#8220;#title&#8221;).val())); });</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dwayne</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-753</link>
		<dc:creator>Dwayne</dc:creator>
		<pubDate>Thu, 25 Nov 2010 01:15:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-753</guid>
		<description>Awesome plugin dude. Just used this in a little custom Codeigniter driven CMS I built.</description>
		<content:encoded><![CDATA[<p>Awesome plugin dude. Just used this in a little custom Codeigniter driven CMS I built.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bermon</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-453</link>
		<dc:creator>Bermon</dc:creator>
		<pubDate>Thu, 26 Aug 2010 14:49:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-453</guid>
		<description>Thanks for the great plugin. I&#039;ve taken some of the bugs mentioned by Leo and incorporated them into the script. I also added a couple of features:

• The slug can be set as &#039;customizable&#039; in the settings to show the input. Defaults to true.
• Preload the slug text if the input has a value.

Enjoy!


jQuery(function($) {
  jQuery.fn.slug = function(options) {
  	var settings = {
  		slug: &#039;slug&#039;,
  		hide: true,
  		customizable: true
  	};
	
  	if(options) {
  		jQuery.extend(settings, options);
  	}
	
  	$this = jQuery(this);

  	jQuery(document).ready( function() {
  		if (settings.hide) {
  			jQuery(&#039;input.&#039; + settings.slug).after(&quot;\/ &lt;a href=&quot;#edit-slug&quot; rel=&quot;nofollow&quot;&gt;Customize&lt;/a&gt;&quot;);
  			jQuery(&#039;input.&#039; + settings.slug).hide();
  		}
  	});
	
  	makeSlug = function() {
			var slugcontent = $this.val().trim();
			var slugcontent_hyphens = slugcontent.replace(/\s/g,&#039;-&#039;);
			var finishedslug = slugcontent_hyphens.replace(/[^a-zA-Z0-9\-]/g,&#039;&#039;).trim();
			finishedslug = finishedslug.replace(/[-]{2,}/g,&#039;-&#039;);
      finishedslug = finishedslug.replace(/(^[-])&#124;([-]$)/g,&#039;&#039;);
			jQuery(&#039;input.&#039; + settings.slug).val(finishedslug.toLowerCase());
			jQuery(&#039;span.&#039; + settings.slug).text(finishedslug.toLowerCase());
  	}
		
	  jQuery(this).keyup(makeSlug);
		
		if(settings.customizable) {
    	jQuery(&#039;#custom-slug&#039;).click(function(){
    	  jQuery(this).hide();
    	  jQuery(&#039;input.&#039; + settings.slug).fadeIn(&#039;fast&#039;);
    	  return false;
    	});
		} else {
		  jQuery(&#039;#edit-slug&#039;).remove()
		}

  	if(jQuery(&#039;input&#039; + settings.slug).val() != &#039;&#039;){
  	  var slugValue = jQuery(&#039;input.&#039; + settings.slug).val();
  	  jQuery(&#039;span.&#039; + settings.slug).text(slugValue);
  	}
  	
  	return $this;  	
  };
})</description>
		<content:encoded><![CDATA[<p>Thanks for the great plugin. I&#8217;ve taken some of the bugs mentioned by Leo and incorporated them into the script. I also added a couple of features:</p>
<p>• The slug can be set as &#8216;customizable&#8217; in the settings to show the input. Defaults to true.<br />
• Preload the slug text if the input has a value.</p>
<p>Enjoy!</p>
<p>jQuery(function($) {<br />
  jQuery.fn.slug = function(options) {<br />
  	var settings = {<br />
  		slug: &#8216;slug&#8217;,<br />
  		hide: true,<br />
  		customizable: true<br />
  	};</p>
<p>  	if(options) {<br />
  		jQuery.extend(settings, options);<br />
  	}</p>
<p>  	$this = jQuery(this);</p>
<p>  	jQuery(document).ready( function() {<br />
  		if (settings.hide) {<br />
  			jQuery(&#8216;input.&#8217; + settings.slug).after(&#8220;\/ <a href="#edit-slug" rel="nofollow">Customize</a>&#8220;);<br />
  			jQuery(&#8216;input.&#8217; + settings.slug).hide();<br />
  		}<br />
  	});</p>
<p>  	makeSlug = function() {<br />
			var slugcontent = $this.val().trim();<br />
			var slugcontent_hyphens = slugcontent.replace(/\s/g,&#8217;-');<br />
			var finishedslug = slugcontent_hyphens.replace(/[^a-zA-Z0-9\-]/g,&#8221;).trim();<br />
			finishedslug = finishedslug.replace(/[-]{2,}/g,&#8217;-');<br />
      finishedslug = finishedslug.replace(/(^[-])|([-]$)/g,&#8221;);<br />
			jQuery(&#8216;input.&#8217; + settings.slug).val(finishedslug.toLowerCase());<br />
			jQuery(&#8216;span.&#8217; + settings.slug).text(finishedslug.toLowerCase());<br />
  	}</p>
<p>	  jQuery(this).keyup(makeSlug);</p>
<p>		if(settings.customizable) {<br />
    	jQuery(&#8216;#custom-slug&#8217;).click(function(){<br />
    	  jQuery(this).hide();<br />
    	  jQuery(&#8216;input.&#8217; + settings.slug).fadeIn(&#8216;fast&#8217;);<br />
    	  return false;<br />
    	});<br />
		} else {<br />
		  jQuery(&#8216;#edit-slug&#8217;).remove()<br />
		}</p>
<p>  	if(jQuery(&#8216;input&#8217; + settings.slug).val() != &#8221;){<br />
  	  var slugValue = jQuery(&#8216;input.&#8217; + settings.slug).val();<br />
  	  jQuery(&#8216;span.&#8217; + settings.slug).text(slugValue);<br />
  	}</p>
<p>  	return $this;<br />
  };<br />
})</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-241</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Mon, 19 Apr 2010 00:58:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-241</guid>
		<description>Hi Perry,

I think your plugin is nice and very useful. For your info, I wrote an article in my blog mentioning this plugin and a tweak I did to use special chars like accents in Spanish.

Maybe you are interested, and maybe you&#039;d like to support something like that in your future versions (as @Enrico requested):

http://www.netvivs.com/build-permalinks-slug-with-javascript-jquery

Thanks.</description>
		<content:encoded><![CDATA[<p>Hi Perry,</p>
<p>I think your plugin is nice and very useful. For your info, I wrote an article in my blog mentioning this plugin and a tweak I did to use special chars like accents in Spanish.</p>
<p>Maybe you are interested, and maybe you&#8217;d like to support something like that in your future versions (as @Enrico requested):</p>
<p><a href="http://www.netvivs.com/build-permalinks-slug-with-javascript-jquery" rel="nofollow">http://www.netvivs.com/build-permalinks-slug-with-javascript-jquery</a></p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enrico</title>
		<link>http://www.thewebsitetailor.com/jquery-slug-plugin/comment-page-1/#comment-229</link>
		<dc:creator>Enrico</dc:creator>
		<pubDate>Tue, 23 Mar 2010 16:02:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.thewebsitetailor.com/?page_id=25#comment-229</guid>
		<description>what about accénts and umlauts (ü)?</description>
		<content:encoded><![CDATA[<p>what about accénts and umlauts (ü)?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

