House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

building navigation using ColdFusion custom tags

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
mike pop
05/19/2009 04:53 AM

i've never used many custom tags before but I am currently tasked to take a dreamweaver HTML site using 4 navigation links and convert this into a site using a cold fusion custom tag for the navigation and content. the 4 navigation links go to different subdirectories and different files (right now they are HTML files). I've seen a few tutorials on using custom tags with the thistag.executionmode but I am very confused as to how to convert this dreamweaver navigation with 4 links into a cold fusion custom tag navigation system. I can't seem to find any examples or tutorials on this specific task.  The user clicks a link and is redirected to a page. I just dont understand how to use a custom tag to complete this objective. Please help me.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
James Holmes
05/19/2009 05:19 AM

You could just use a cfinclude if a custom tag is too confusing. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
John Drake
05/19/2009 10:46 AM

I agree with James - CF Includes are probably a better option. Create header, footer, and navigation templates from the existing html, and then do CFincludes on each web page to bring them in.

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Gerald Guido
05/19/2009 12:15 PM

>>Create header, footer, and navigation templates from the existing html, and then do CFincludes on each web page to bring them in. Correct. G! On Tue, May 19, 2009 at 10:40 AM, John Drake <thedangerman007@yahoo.com>wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Gerald Guido
05/19/2009 12:27 PM

I have a custom tag for creating a menu items if you are interested in looking the code. This is the code for the tag (save as MenuItem.cfm) http://coz.pastebin.com/f17f1392a And this is how to use it. http://coz.pastebin.com/f17f1392a The beauty of custom tags is that you can create one piece of code for all of your menu items and if you ever need to make a global change you only have to change it in one place (Much like an include file). G! On Tue, May 19, 2009 at 10:40 AM, John Drake <thedangerman007@yahoo.com>wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Gerald Guido
05/19/2009 12:28 PM

Opps... wrong url for how to use it And this is how to use it. http://coz.pastebin.com/f1e851a0 G! On Tue, May 19, 2009 at 12:26 PM, Gerald Guido <gerald.guido@gmail.com>wrote: ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference