Thanks.. that helps a lot.

Appreciate the quick responses.


On Jan 14, 5:02 pm, Blair McKenzie <[email protected]> wrote:
> A quick overview of custom friendly URL generation:
>
> Default
>
>    - dmNavigation (and tree leaf types) have /root/child/child/leaf
>    - everything else has /typefualias/cleaned-up-label
>    - if these 'ideal' urls already exist for another object, a number (e.g.
>    1) is added to make the new one unique
>    - this process is automatically done on every setData for types that have
>    the bFriendly="1" attribute on the component
>
> Changing the default FU for a type:
>
>    - create a displaySystemFU webskin for the type. This webskin should
>    output the ideal friendly URL for the object.
>    - this change simply replaces the initial 'ideal' URL generation step.
>    FarCry will will use the custom url in all automatic processes and make 
> sure
>    it is unique
>    - your custom URL can just be /jobs/jquery-developer if you're OK with
>    FarCry's "uniquenising" process, or
>    /jobs/jquery-developer/E34CA348-19B9-E543-C8F122D6597266AA if you prefer
>    your own
>
> If you can't or don't want to use setData, you can manually trigger the FU
> generation process using:
>
>    - application.fc.factory.farFU.setSystemFU(objectid=...,typename=...)
>
> Once this is done, you can create a link using these URLs using:
> <skin:buildLink objectid="..." linktext="..." />
>
> FarCry will use the FU it has in the database if friendly URLs are enabled,
> or the full /index.cfm?objectid=... link if it isn't.
>
> Hope this helps.
>
> Blair
>
> On Fri, Jan 15, 2010 at 6:25 AM, West <[email protected]> wrote:
> > Hi,
>
> > I am using this code in my page
>
> > <skin:buildlink objectid="#q.objectid#" linktext="#q.job_title#"
> > urlParameters="#q.objectId#" />
>
> > It works, but for some reason it appends the objectid twice so my URL
> > looks like:
>
> >http://www.abc.com/jobs/jquery-developer/A5C2DECB-C17A-3194-23B791ACB...
>
> > The reason I need to append the objectId to the end of the URL is
> > because if someone emails another person with the link to the job, and
> > the jobs have the same title, I don't think the system will know which
> > job to show.  Sometimes we have the same job titles in different
> > locations so the below doesn't suffice:
>
> >http://www.abc.com/jobs/jquery-developer/
>
> > Any help on getting the URL correct.
>
> > Thanks
>
> > --
> > You received this message cos you are subscribed to "farcry-dev" Google
> > group.
> > To post, email: [email protected]
> > To unsubscribe, email: 
> > [email protected]<farcry-dev%[email protected]>
> > For more options:http://groups.google.com/group/farcry-dev
> > --------------------------------
> > Follow us on Twitter:http://twitter.com/farcry
-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: [email protected]
To unsubscribe, email: [email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Reply via email to