FarCry CMS question

2012-05-09 Thread fun and learning

I hope someone with knowledge of farcry CMS sees this question

I am new to farcry and looking at some existing code. I have a
question on friendly URL. At what time of the application do the
actual URL gets parsed to friendly URL.

Suppose I have a href link as

a href=www.example.com?objectid=123askjhdakjshdkasjhdGo to new
page/a

When I click the above link, the new page URL is a friendly URL. I
checked in onApplicationStart, but the URL is constructed even before
that. Can you let me know at what time is the URL parsed, and which
function does it? Is it fixURL function in utils.cfc? 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351085
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: FarCry CMS question

2012-05-09 Thread Jake Churchill

Check out the farcry developers group:
http://groups.google.com/group/farcry-dev?pli=1

The URL's are parsed to friendly when the page/nav is created.  In the
admin there's a way to reprocess all friendly URLs but the exact location
depends on your version of farcry.

You have to be running either apache's re-write mod or ISAPI Rewrite for
IIS to get this to work.  Everything friendly should filter through the
go.cfm file in your root.  Look in farcry's wiki, there are rules for how
to set up the parsing of friendly urls for apache and ISAPI.

Hope that gets you going in the right direction.

-Jake

On Wed, May 9, 2012 at 12:30 PM, fun and learning
funandlrnn...@gmail.comwrote:


 I hope someone with knowledge of farcry CMS sees this question

 I am new to farcry and looking at some existing code. I have a
 question on friendly URL. At what time of the application do the
 actual URL gets parsed to friendly URL.

 Suppose I have a href link as

 a href=www.example.com?objectid=123askjhdakjshdkasjhdGo to new
 page/a

 When I click the above link, the new page URL is a friendly URL. I
 checked in onApplicationStart, but the URL is constructed even before
 that. Can you let me know at what time is the URL parsed, and which
 function does it? Is it fixURL function in utils.cfc?

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351086
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: FarCry CMS question

2012-05-09 Thread fun and learning

Jake, Thanks for answering. I already posted in the facry google groups 4 hours 
back, and the moderators still did not approve my question, so thought I'd take 
a chance here

I already set the apache mod_Rewrite conditions. My question was more when the 
objectid is parsed to friendly URL. The friendly url converts the objectid into 
its respective marketing name. I want to check the query it is using to get the 
marketing name. I am guessing a query like below:

select * from table1 where objectid = '#URL.objectid#'


Check out the farcry developers group:
http://groups.google.com/group/farcry-dev?pli=1

The URL's are parsed to friendly when the page/nav is created.  In the
admin there's a way to reprocess all friendly URLs but the exact location
depends on your version of farcry.

You have to be running either apache's re-write mod or ISAPI Rewrite for
IIS to get this to work.  Everything friendly should filter through the
go.cfm file in your root.  Look in farcry's wiki, there are rules for how
to set up the parsing of friendly urls for apache and ISAPI.

Hope that gets you going in the right direction.

-Jake

On Wed, May 9, 2012 at 12:30 PM, fun and learning
funandlrnn...@gmail.comwrote:

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351087
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: FarCry CMS question

2012-05-09 Thread Jake Churchill

I think the table is farFU.  I know there's a CFC with that name so it
should have been scaffolded or whatever by default.

Each object can have multiple friendly URLs (see the SEO tab for pretty
much anything in the Site tab in the admin).

It's been a while since I messed with this stuff.  There used to be a
fu.cfc but I don't think that's there anymore and go.cfm might be
deprecated as well.

In looking at the documentation, it looks like as of version 5, it uses
furl instead of path in the URL which looks to be parsed in the core
Application.cfc around line 581 for me which makes use of the parseURL
method in farFU.cfc.

Hope that helps.

-Jake

On Wed, May 9, 2012 at 12:41 PM, fun and learning
funandlrnn...@gmail.comwrote:


 Jake, Thanks for answering. I already posted in the facry google groups 4
 hours back, and the moderators still did not approve my question, so
 thought I'd take a chance here

 I already set the apache mod_Rewrite conditions. My question was more when
 the objectid is parsed to friendly URL. The friendly url converts the
 objectid into its respective marketing name. I want to check the query it
 is using to get the marketing name. I am guessing a query like below:

 select * from table1 where objectid = '#URL.objectid#'


 Check out the farcry developers group:
 http://groups.google.com/group/farcry-dev?pli=1
 
 The URL's are parsed to friendly when the page/nav is created.  In the
 admin there's a way to reprocess all friendly URLs but the exact location
 depends on your version of farcry.
 
 You have to be running either apache's re-write mod or ISAPI Rewrite for
 IIS to get this to work.  Everything friendly should filter through the
 go.cfm file in your root.  Look in farcry's wiki, there are rules for how
 to set up the parsing of friendly urls for apache and ISAPI.
 
 Hope that gets you going in the right direction.
 
 -Jake
 
 On Wed, May 9, 2012 at 12:30 PM, fun and learning
 funandlrnn...@gmail.comwrote:
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351089
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: FarCry CMS question

2012-05-09 Thread funand learning

Yes you are right. go.cfm is using URL.path where as farcry 6 is using furl
variable. I am using farcry 6. I have read through the docs, and its not
mentioned clearly anywhere about the friendlyURL. Can you tell me if my
understanding is correct below:

1) User requests a page with url like
www.example.com?objectid=2129873akjlsdlasjdl

2) Farcry checks if the friendly url variable is turned on, and then parses
the above URL to a friendly URL

3) Once the friendlyURL is constructed, the page redirects to friendlyURL?

Thanks.

On Wed, May 9, 2012 at 1:13 PM, Jake Churchill reyna...@gmail.com wrote:


 I think the table is farFU.  I know there's a CFC with that name so it
 should have been scaffolded or whatever by default.

 Each object can have multiple friendly URLs (see the SEO tab for pretty
 much anything in the Site tab in the admin).

 It's been a while since I messed with this stuff.  There used to be a
 fu.cfc but I don't think that's there anymore and go.cfm might be
 deprecated as well.

 In looking at the documentation, it looks like as of version 5, it uses
 furl instead of path in the URL which looks to be parsed in the core
 Application.cfc around line 581 for me which makes use of the parseURL
 method in farFU.cfc.

 Hope that helps.

 -Jake

 On Wed, May 9, 2012 at 12:41 PM, fun and learning
 funandlrnn...@gmail.comwrote:

 
  Jake, Thanks for answering. I already posted in the facry google groups 4
  hours back, and the moderators still did not approve my question, so
  thought I'd take a chance here
 
  I already set the apache mod_Rewrite conditions. My question was more
 when
  the objectid is parsed to friendly URL. The friendly url converts the
  objectid into its respective marketing name. I want to check the query it
  is using to get the marketing name. I am guessing a query like below:
 
  select * from table1 where objectid = '#URL.objectid#'
 
 
  Check out the farcry developers group:
  http://groups.google.com/group/farcry-dev?pli=1
  
  The URL's are parsed to friendly when the page/nav is created.  In the
  admin there's a way to reprocess all friendly URLs but the exact
 location
  depends on your version of farcry.
  
  You have to be running either apache's re-write mod or ISAPI Rewrite for
  IIS to get this to work.  Everything friendly should filter through the
  go.cfm file in your root.  Look in farcry's wiki, there are rules for
 how
  to set up the parsing of friendly urls for apache and ISAPI.
  
  Hope that gets you going in the right direction.
  
  -Jake
  
  On Wed, May 9, 2012 at 12:30 PM, fun and learning
  funandlrnn...@gmail.comwrote:
  
  
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:351091
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm