You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sa...@women-at-work.org on 2005/03/04 10:25:55 UTC

url dependent friendly urls

Hm...might be working but would be a bit messy as then you needed to
remember which page name you want to link to.

Something like this would be cool:

<page 
name="/category/food" 
url="es.domain.com
specification-path="Food.page" 
/>

<page 
name="/kategorie/essen" 
url="www.domain.de
specification-path="Food.page" 
/>


Which code do I need to touch in order to accomodation for this?
Would probably just be another additional condition.....within the link
component.

> Tapestry already lets you map 2 different page names to the same .page 
> file.  Isn't that what you're looking for?
> e.g.
>     <page name="home" specification-path="Home.page"/>
>     <page name="index" specification-path="Home.page"/>
> 
> The same concept should apply to page names that contained "/"s.
> 
> Paul
> 
> sarah.simbad@women-at-work.org wrote:
> 
> >Friendly URLs again....
> >
> >Just wanted to ask again ;-)
> >
> >
> >Is there any chance the friendly urls patch will also support multiple
> >alias links?
> >
> >This way even the virtual link directories could support several
> languages
> >and u could have alias links to the same page. e.g.
> >
> >vegetables/carrots pointing to the same page as
> >gemuese/karotten
> >
> >What do you think?
> >
> >
> >  
> >
> >>Spindle does not suppor the Friendly Url patch. By the time I get
> >>Spindle up to supporting Tapestry 3.1 then that will no longer be the
> >>case.
> >>
> >>Geoff
> >>
> >>On Wed, 2 Mar 2005 16:58:12 +0000 (UTC), bobby rullo
> >><br...@alexanderinteractive.com> wrote:
> >>    
> >>
> >>>Hi there,
> >>>
> >>>I'm using Tapestry 3.0 with the famous FriendlyUrl patches which works
> >>>      
> >>>
> >>great,
> >>    
> >>
> >>>and I'm also using Spindle which works great too....except for the fact
> >>>      
> >>>
> >>that it
> >>    
> >>
> >>>doesn't like page names like "sysadmin/MyPage", which is a valid page
> >>>      
> >>>
> >>when using
> >>    
> >>
> >>>FriendlyUrls.
> >>>
> >>>Not really a big deal, it's just annoying to see all these errors that
> >>>      
> >>>
> >>are not
> >>    
> >>
> >>>errors in Eclipse. Does anyone have any ways around this? A Spindle
> >>>      
> >>>
> >>patch
> >>    
> >>
> >>>perhaps?  Do any of the Spindle 3.1 versions support it?
> >>>
> >>>Thanks all,
> >>>
> >>>Bobby
> >>>
> >>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >>>
> >>>
> >>>      
> >>>
> >>---------------------------------------------------------------------
> >>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >>
> >>    
> >>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >  
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: url dependent friendly urls

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
Sarah,

I feel like I'm speaking to an empty room here, but I'll say once again  
that servlet filters are where you want to be with all the custom URL  
stuff you're asking for.  Putting the domain name (virtual hosting  
kinda stuff) into the .application is not appropriate in my opinion and  
is best handled above Tapestry.

	Erik


On Mar 4, 2005, at 4:25 AM, sarah.simbad@women-at-work.org wrote:

> Hm...might be working but would be a bit messy as then you needed to
> remember which page name you want to link to.
>
> Something like this would be cool:
>
> <page
> name="/category/food"
> url="es.domain.com
> specification-path="Food.page"
> />
>
> <page
> name="/kategorie/essen"
> url="www.domain.de
> specification-path="Food.page"
> />
>
>
> Which code do I need to touch in order to accomodation for this?
> Would probably just be another additional condition.....within the link
> component.
>
>> Tapestry already lets you map 2 different page names to the same .page
>> file.  Isn't that what you're looking for?
>> e.g.
>>     <page name="home" specification-path="Home.page"/>
>>     <page name="index" specification-path="Home.page"/>
>>
>> The same concept should apply to page names that contained "/"s.
>>
>> Paul
>>
>> sarah.simbad@women-at-work.org wrote:
>>
>>> Friendly URLs again....
>>>
>>> Just wanted to ask again ;-)
>>>
>>>
>>> Is there any chance the friendly urls patch will also support  
>>> multiple
>>> alias links?
>>>
>>> This way even the virtual link directories could support several
>> languages
>>> and u could have alias links to the same page. e.g.
>>>
>>> vegetables/carrots pointing to the same page as
>>> gemuese/karotten
>>>
>>> What do you think?
>>>
>>>
>>>
>>>
>>>> Spindle does not suppor the Friendly Url patch. By the time I get
>>>> Spindle up to supporting Tapestry 3.1 then that will no longer be  
>>>> the
>>>> case.
>>>>
>>>> Geoff
>>>>
>>>> On Wed, 2 Mar 2005 16:58:12 +0000 (UTC), bobby rullo
>>>> <br...@alexanderinteractive.com> wrote:
>>>>
>>>>
>>>>> Hi there,
>>>>>
>>>>> I'm using Tapestry 3.0 with the famous FriendlyUrl patches which  
>>>>> works
>>>>>
>>>>>
>>>> great,
>>>>
>>>>
>>>>> and I'm also using Spindle which works great too....except for the  
>>>>> fact
>>>>>
>>>>>
>>>> that it
>>>>
>>>>
>>>>> doesn't like page names like "sysadmin/MyPage", which is a valid  
>>>>> page
>>>>>
>>>>>
>>>> when using
>>>>
>>>>
>>>>> FriendlyUrls.
>>>>>
>>>>> Not really a big deal, it's just annoying to see all these errors  
>>>>> that
>>>>>
>>>>>
>>>> are not
>>>>
>>>>
>>>>> errors in Eclipse. Does anyone have any ways around this? A Spindle
>>>>>
>>>>>
>>>> patch
>>>>
>>>>
>>>>> perhaps?  Do any of the Spindle 3.1 versions support it?
>>>>>
>>>>> Thanks all,
>>>>>
>>>>> Bobby
>>>>>
>>>>> ------------------------------------------------------------------- 
>>>>> --
>>>>> To unsubscribe, e-mail:  
>>>>> tapestry-user-unsubscribe@jakarta.apache.org
>>>>> For additional commands, e-mail:  
>>>>> tapestry-user-help@jakarta.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>> -------------------------------------------------------------------- 
>>>> -
>>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>>> For additional commands, e-mail:  
>>>> tapestry-user-help@jakarta.apache.org
>>>>
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail:  
>>> tapestry-user-help@jakarta.apache.org
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org