Re: Re: re[2]: [ACFUG Discuss] Tagging example in CF

2006-09-14 Thread Howard Fore
Tags are simply metadata used to descibe some object. It's really just a Web 2.0 way of saying keywords. I't typically used in a site where the users are uploading content of some type. Like flickr for instance, when you upload a picture you can type in a few words that describe the picture. Not a long sentence but a word or two. 
Tag clouds (see http://flickr.com/photos/tags/ for an example) and dynamic URL paths are methods of accessing the content described by the tag.So you can implement tagging simply by adding a couple of tables to your database and some forms and SQL statements to insert the tags into the database. And then add the URL pathing or tag cloud to give your users a way to get to it. 
HowardOn 9/13/06, Teddy Payne [EMAIL PROTECTED] wrote:
Steve,Well, the dynamic routes can be achieved through IIS and Apache for now when using CF. So, it can be achieved with CF. CF on Wheels does it since Rob Cameron was trying to emulate a Rails implementation into CF.
TeddyOn 9/13/06, Steven Ross 
[EMAIL PROTECTED] wrote:
Rails has a term for this called dynamic routes... lets you define things as:http://www.somesite.com/controller/model/action
these get mapped dynamically to your applicaiton and if that
controller doesnt exist it calls the standard 404 page.Its pretty slick, you can also modify these so if you just want tohave one that you just made up like /bob point to some random index itdoes that as well.
I haven't checked out the CF on wheels thing (actually watching the demo now)Its as easy as doing:ActionController::Routing.draw do |map|map.connect '', :controller = 'blog', :action ="" 'recent'
map.connect ':controller/:action/:id'endI know enough about rails... just thought I'd chime in since I thinkCF needs something like the routes thing... it would be very helpful.On 9/13/06, Teddy Payne 
[EMAIL PROTECTED] wrote: Well from what I am interpreting here, the technique that could make this
 easier would be to use the URL rewriting feature of webservers.I know IIS
 and Apache both have a URL rewriting module that allows for query strings that look like 
www.someplace.com/fruit/apple and you can use CF to interpret
 these, you can process the fruit/apple aspect. One solution that I know that uses this technique is CF on Wheels.Now CF on Wheels is a framework that is trying to mature, but the technique from
 the CF perspective might be soemthing you can research from their code and then create your own solution based uponacommon idea. Teddy IIS and Apache both offer URL rewriting modules.
 On 9/13/06, Mischa Uppelschoten ext 10  [EMAIL PROTECTED]
 wrote:  I've done this. When the user types in a non existing url, two things can
 happen on IIS:  - standard IIS 404 page is loaded  - CF default error template is loaded (in case user tries to access a file with an extension that is mapped to CF and I believe IIS is set to not check
 for the existence of that file).   One of the CGI variables (although different ones between standard 404 and CF error page, if memory serves me well) tells you which url the user tried
 to access, parse out the relevant bit, feed it into your search engine (or whatever logic you want to apply to it) and then display a message, or redirect.   Hope this makes sense.
  Mischa. Good question. But for example:
www.somepage.com/computer - would display content in site regarding
 computers  www.somepage.com/johndoe - would display content in site regarding candidate john doe.
From what I can see, it looks like a simplified/glorified search
 technique, where instead of having a page for each topic, the user can type in whatever they want and the system/site responds. It is one of the hot things that some content/newspaper sites are latching onto.
Just wondering if anyone is familiar and has done anything in CF. Is it a url variable sent a query? Or, a static page/directory with index page (contrary to what I stated above), where the search is cached and content
 pre-formatted.Is any of this making sense?Here is an example:  
http://www.newsvine.com/
Then, type apple or hp after .com/ and the content reflects that topic.  _
  Derrick Peavy  Sales and Web Services  Universal Advertising  Phone: 404-786-5036  Fax: 404-370-0470  

http://www.universaladvertising.com  http://www.collegeadvertising.com  
http://www.collegeclassifieds.com
  ___On Sep 13, 2006, at 9:42 AM, Teddy Payne wrote:  What is your definition of tagging?   Teddy
On 9/13/06, Derrick Peavy [EMAIL PROTECTED]
  wrote:  So... Is there an example that anyone knows of, of tagging in a CF site?
 Is this done by a search ofthe tag word?  _  Derrick Peavy  Sales and Web Services  Universal Advertising
  Phone: 404-786-5036  Fax: 404-370-0470  http://www.universaladvertising.com
  
http://www.collegeadvertising.com  http://www.collegeclassifieds.com  ___
   
  --  cf_payne /   Blog: 

Re: Re: re[2]: [ACFUG Discuss] Tagging example in CF

2006-09-13 Thread Steven Ross

Rails has a term for this called dynamic routes... lets you define things as:

http://www.somesite.com/controller/model/action

these get mapped dynamically to your applicaiton and if that
controller doesnt exist it calls the standard 404 page.

Its pretty slick, you can also modify these so if you just want to
have one that you just made up like /bob point to some random index it
does that as well.

I haven't checked out the CF on wheels thing (actually watching the demo now)

Its as easy as doing:

ActionController::Routing.draw do |map|
 map.connect '', :controller = 'blog', :action = 'recent'
 map.connect ':controller/:action/:id'
end

I know enough about rails... just thought I'd chime in since I think
CF needs something like the routes thing... it would be very helpful.

On 9/13/06, Teddy Payne [EMAIL PROTECTED] wrote:

Well from what I am interpreting here, the technique that could make this
easier would be to use the URL rewriting feature of webservers.  I know IIS
and Apache both have a URL rewriting module that allows for query strings
that look like www.someplace.com/fruit/apple and you can use CF to interpret
these, you can process the fruit/apple aspect.

One solution that I know that uses this technique is CF on Wheels.  Now CF
on Wheels is a framework that is trying to mature, but the technique from
the CF perspective might be soemthing you can research from their code and
then create your own solution based upona  common idea.

Teddy

IIS and Apache both offer URL rewriting modules.


On 9/13/06, Mischa Uppelschoten ext 10 
[EMAIL PROTECTED] wrote:
 I've done this. When the user types in a non existing url, two things can
happen on IIS:
 - standard IIS 404 page is loaded
 - CF default error template is loaded (in case user tries to access a file
with an extension that is mapped to CF and I believe IIS is set to not check
for the existence of that file).

 One of the CGI variables (although different ones between standard 404 and
CF error page, if memory serves me well) tells you which url the user tried
to access, parse out the relevant bit, feed it into your search engine (or
whatever logic you want to apply to it) and then display a message, or
redirect.

 Hope this makes sense.
 Mischa.


  Good question. But for example:


 www.somepage.com/computer - would display content in site regarding
computers
 www.somepage.com/johndoe - would display content in site regarding
candidate john doe.


 From what I can see, it looks like a simplified/glorified search
technique, where instead of having a page for each topic, the user can type
in whatever they want and the system/site responds. It is one of the hot
things that some content/newspaper sites are latching onto.


 Just wondering if anyone is familiar and has done anything in CF. Is it a
url variable sent a query? Or, a static page/directory with index page
(contrary to what I stated above), where the search is cached and content
pre-formatted.


 Is any of this making sense?


 Here is an example:
 http://www.newsvine.com/


 Then, type apple or hp after .com/ and the content reflects that
topic.




 _
 Derrick Peavy
 Sales and Web Services
 Universal Advertising
 Phone: 404-786-5036
 Fax: 404-370-0470
 http://www.universaladvertising.com
 http://www.collegeadvertising.com
 http://www.collegeclassifieds.com
 ___


 On Sep 13, 2006, at 9:42 AM, Teddy Payne wrote:
 What is your definition of tagging?

 Teddy


 On 9/13/06, Derrick Peavy
[EMAIL PROTECTED]  wrote:
 So... Is there an example that anyone knows of, of tagging in a CF site?
Is this done by a search of  the tag word?




 _
 Derrick Peavy
 Sales and Web Services
 Universal Advertising
 Phone: 404-786-5036
 Fax: 404-370-0470
 http://www.universaladvertising.com
 http://www.collegeadvertising.com
 http://www.collegeclassifieds.com
 ___



 --
 cf_payne /

 Blog: http://cfpayne.wordpress.com/
 Atlanta CFUG: http://www.acfug.org

-
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?fa=login.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @
http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by FusionLink

-
 



 Mischa Uppelschoten
 The Banker's Exchange, Inc.
 2020 Hills Avenue NW
 Atlanta, GA  30318

 Phone:(404) 605-0100 ext. 10
 Fax:(404) 355-7930
 Web:www.BankersX.com
 Follow this link for Instant Web Chat:

http://www.bankersx.com/Contact/chat.cfm?Queue=MUPPELSCHOTEN




-
 To unsubscribe from this list, manage your profile @
 http://www.acfug.org?falogin.edituserform

 For more info, see http://www.acfug.org/mailinglists
 Archive @
http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by http://www.fusionlink.com