I am not a Farcry expert but here is what I did.
If you are using PLP in your custom object edit the start.cfm file,
otherwise edit the edit.cfm file and add to the right place the
following code (if your variables)
<!--- update fu --->
<cfif application.config.plugins.fu>
<cfoutput><span class="frameMenuBullet">»</span> Updating
Friendly URLs...<p></p></cfoutput>
<!--- Current Custom type Section --->
<cfset thisSection = 'News'>
<!--- get current fu --->
<cfset fuUrl =
application.factory.oFU.getFU(objectid=Output.objectid)>
<!--- check for suffix --->
<cfif listLen(application.config.fusettings.suffix,"/") gt 0
and not
listContains(fuUrl,"objectid")>
<cfset fuLen = listLen(fuURL,"/") -
listLen(application.config.fusettings.suffix,"/")>
<cfelse>
<cfset fuLen = listLen(fuURL,"/")>
</cfif>
<!--- check if new object --->
<cfif listContains(fuUrl,"objectid")>
<!--- append new title --->
<cfset breadCrumb =
listAppend(thisSection,form.title,"/")>
<!--- set new fu --->
<cfset fuUrl =
application.config.fusettings.urlpattern&breadcrumb&application.config.fusettings.suffix>
<!--- set fu --->
<cfset
application.factory.oFU.setFU(objectid=Output.objectid,alias=lcase(fuUrl))>
<cfelse><!--- not a new object. remove and updatee --->
<!--- delete current fu --->
<cfset application.factory.oFU.deleteFu(fuUrl)>
<!--- work out new fu for actual object--->
<!--- <cfset newfu =
listSetAt(fuUrl,fuLen,form.title,"/")> --->
<cfset newfu = listAppend(thisSection,form.title,"/")>
<cfset fuUrl =
application.config.fusettings.urlpattern&newfu&application.config.fusettings.suffix>
<!--- set fu for actual object --->
<cfset
application.factory.oFU.setFU(objectid=Output.objectid,alias=lcase(fuUrl))>
</cfif>
</cfif><!--- end update FU --->
</cfif>
HTH
On Wed, 23 Mar 2005 03:37:11 +1100, Matthew Williams
<[EMAIL PROTECTED]> wrote:
> A question for ya'll. When I turn on Spike's FU plugin, I'd love to be able
> to get it to recognize my custom News and Forms content types. What's the
> best way to go about making this modification? Or, where's the best place to
> start?
>
> Matthew Williams
> ---
> You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
>
--
=+=+=+=+=+=+=+=+=+=+=+=+
Emanuel Costa
site: http://www.emanuelcosta.com
msn: [EMAIL PROTECTED]
ICQ: 8013683
Orkut: Emanuel Costa
Skype: Emanweb
=+=+=+=+=+=+=+=+=+=+=+=+
"Education is a progressive discovery of our own ignorance."
- Will Durant
---
You are currently subscribed to farcry-dev as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/