Friendly url's voor 'normal' href

0 views
Skip to first unread message

Marco van den Oever

unread,
Jun 12, 2009, 6:07:58 AM6/12/09
to farcry-dev
I can't grasp the way you can use furls with 'normal' links, for
instance in the default mollio setup you have next and previous links
for navigation, if you click those links you don't see a furl.

How can you turn normal <a href urls into furls?

Thanks.

Matthew Williams

unread,
Jun 12, 2009, 7:34:37 AM6/12/09
to farcr...@googlegroups.com
The only way that I know of to have the system create FURLs for you is
to use the skin:buildlink tag.


Matthew Williams
Geodesic GraFX

Tomek Kott

unread,
Jun 12, 2009, 8:31:53 AM6/12/09
to farcr...@googlegroups.com
there's also application.fapi.getLink() function. As an argument you can put in an objectid or a navigational alias and it will give you the link as it sees fit. If you're talking about the automatic url listed during ft:pagination, then use the <ft:pagination actionURL="#application.fapi.getLink(request.navid)#" ....other options ...> I don't have the code in front of me, but I do something like that to get the furl nicely put. But I don't know which 'next' and 'previous' links you're talking about...

Tomek

Marco van den Oever

unread,
Jun 12, 2009, 9:29:01 AM6/12/09
to farcry-dev
Ok awesome thanks both, will go and try some stuff.

On Jun 12, 2:31 pm, Tomek Kott <tkott.s...@gmail.com> wrote:
> there's also application.fapi.getLink() function. As an argument you can put
> in an objectid or a navigational alias and it will give you the link as it
> sees fit. If you're talking about the automatic url listed during
> ft:pagination, then use the <ft:pagination
> actionURL="#application.fapi.getLink(request.navid)#" ....other options ...>
> I don't have the code in front of me, but I do something like that to get
> the furl nicely put. But I don't know which 'next' and 'previous' links
> you're talking about...
>
> Tomek
>
> On Fri, Jun 12, 2009 at 7:34 AM, Matthew Williams <
>

Marco van den Oever

unread,
Jun 12, 2009, 10:32:04 AM6/12/09
to farcry-dev
For example i am watching at the code on rule 375 in tags/webskin/
pagination.cfm:

<cfoutput><li><a href="#getPaginationLinkHREF(attributes.currentPage+1)
#" onclick="#getPaginationLinkOnClick(attributes.currentPage+1)
#;">#attributes.htmlNext#</a></li></cfoutput>

This results in a browser url like:

index.cfm?container=&BSHOWTRAY=true&bodyview=displayBody&furl=/
products&OBJECTID=700726D0-2A0A-11DE-9234000C7674A083&pageruleNews=2

So how would you change that?

On Jun 12, 3:29 pm, Marco van den Oever <marcovandenoe...@gmail.com>
wrote:

Tomek Kott

unread,
Jun 12, 2009, 10:49:43 AM6/12/09
to farcr...@googlegroups.com
I'm confused, because I don't think there is a line 375 in /tags/webskin/pagination.cfm. In any case, I use /tags/formtools/pagination. Whether I should or not is a different matter.

In 5.1.5: under that tag there should be a arguments.actionURL (http://fisheye.farcrycms.org/browse/core/tags/milestone-5-1-5/tags/formtools/pagination.cfm?r=3774#l57).

My tag for calling pagination, inside my execute.cfm of the appropriate rule (or displayTypeBody.cfm for that matter) is:

    <ft:pagination
        actionURL = "#application.fapi.getLink(objectid=request.navid)#"
        qRecordSet="#q#"
        typename="gsgMeetings"
        pageLinks="10"
        recordsPerPage="#stobj.numitems#"
        Top="true"
        Bottom="false"
        renderType="inline">
       
        <ft:paginateLoop r_stObject="stMeetingArchive" >
            <skin:view objectid="#stMeetingArchive.objectid#" typename="gsgMeetings" webskin="#stObj.displaymethod#" />
        </ft:paginateLoop>
        <cfoutput>    </table></cfoutput>
    </ft:pagination>

That might help,

Tomek

Marco van den Oever

unread,
Jun 12, 2009, 11:24:06 AM6/12/09
to farcry-dev
Awwww i made a mess of it, copied things in places where they where
not belonging etc...
Well it was that easy of indeed add the:

actionURL = "#application.fapi.getLink(objectid=request.navid)#"

attribute...

Thanks!

On Jun 12, 4:49 pm, Tomek Kott <tkott.s...@gmail.com> wrote:
> I'm confused, because I don't think there is a line 375 in
> /tags/webskin/pagination.cfm. In any case, I use /tags/formtools/pagination.
> Whether I should or not is a different matter.
>
> In 5.1.5: under that tag there should be a arguments.actionURL (http://fisheye.farcrycms.org/browse/core/tags/milestone-5-1-5/tags/fo...).
>
> My tag for calling pagination, inside my execute.cfm of the appropriate rule
> (or displayTypeBody.cfm for that matter) is:
>
>     <ft:pagination
>         actionURL = "#application.fapi.getLink(objectid=request.navid)#"
>         qRecordSet="#q#"
>         typename="gsgMeetings"
>         pageLinks="10"
>         recordsPerPage="#stobj.numitems#"
>         Top="true"
>         Bottom="false"
>         renderType="inline">
>
>         <ft:paginateLoop r_stObject="stMeetingArchive" >
>             <skin:view objectid="#stMeetingArchive.objectid#"
> typename="gsgMeetings" webskin="#stObj.displaymethod#" />
>         </ft:paginateLoop>
>         <cfoutput>    </table></cfoutput>
>     </ft:pagination>
>
> That might help,
>
> Tomek
>
> On Fri, Jun 12, 2009 at 10:32 AM, Marco van den Oever <
>
Reply all
Reply to author
Forward
0 new messages