<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Apr 29, 2009, at 4:52 PM, Charles wrote:</div><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: arial, helvetica, sans-serif; font-size: 13px; ">On Wed, Apr 29, 2009 at 05:31:43PM -0300, Fernan Aguero wrote:<br>&gt; On Wed, Apr 29, 2009 at 5:23 PM, Charles &lt;<a ymailto="mailto:cshtreck@yahoo.com" href="mailto:cshtreck@yahoo.com">cshtreck@yahoo.com</a>&gt; wrote:<br>&gt; &gt; I'd like someone w/ better catalyst-fu to recommend how I could implement<br>&gt; &gt; urls for members a la myspace and youtube ( ie<br><span>&gt; &gt; &nbsp;<a target="_blank" href="http://websiteurl.com/">http://websiteurl.com/</a><membername>&nbsp;) .</membername></span><br>&gt; &gt; There's got to be a better way that creating a seperate controller for each<br>&gt; &gt; user.<br>&gt;&nbsp;<br>&gt; sub member : Regex('\S+') {<br>&gt;&nbsp; my ($self, $c) = @_;<br><br>Using Regex for that seems weird to me.<br><br>&nbsp; sub member : Chained(/) Args(1) {<br>&nbsp; &nbsp; my ($self, $c, $id) = @_;<br>&nbsp; &nbsp; ...<br>&nbsp; }</div></div></div></div></span></blockquote></div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">hans,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This seems to work, although, i'd have to add logic to have this member controller &nbsp;ignore the following types of urls</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span><a target="_blank" href="http://websiteurl.com/signup">http://websiteurl.com/signup</a></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span><a target="_blank" href="http://websiteurl.com/members/">http://websiteurl.com/members/</a><span class="Apple-converted-space">&nbsp;</span>&lt;= users see this as their url when logged in.</span></div></div></div></span></blockquote><div><br></div>Not at all. You just add handlers for those URLs to your controller; they're more specific than the member handler and should match.</div><div><br></div><div>sub signup : Chained('/') PathPart('signup') Args(0) {</div><div>...</div><div>}</div><div><br></div><div>Are you sure you want to layout your URLs that way, though? You'll *never* need other top level items that might conflict with user names? If you put all the users under /user (or something like that) then they're in their own namespace and you won't have problems with name conflicts.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>- john romkey</div><div><span class="Apple-tab-span" style="white-space:pre">        </span><a href="http://www.romkey.com/">http://www.romkey.com/</a><br></div><div><br></div></body></html>