Re: Opening a menu link in a new window

Jake Churchill <[email protected]> Tue, 13 May 2008 16:27:01 -0500
Newsgroups gmane.comp.cms.farcry.user
Message-ID <[email protected]>
Yes, you can add that but you'll still want to extend dmNavigation so 
you can flag which links go outside and which ones don't. 

Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE  68154
http://www.cfwebtools.com
402-408-3733 x103



Selfprodigy wrote:
> Okay i just wanted to thank for all your help. This is still beyond me
> at this point. However, i was wondering if there was a simple way to
> add target="blank" for all external links.  See this is a corporate
> site, and anything outside of it can be opened in a new window. I'de
> even like to stay away from a javascript popup at this point because
> of pop up blockers etc...
>
> Can i add a line in the generic nav file to add this attribute to the
> link?
>
> On May 13, 3:32 pm, Jake Churchill <[email protected]> wrote:
>   
>> Javascript would go in the file that is looping over your site tree to
>> create your menu.  The default is in FC 4 is in
>> /farcry/core/tags/webskin/genericNav.cfm but you can always create your
>> own and stick it in /webskin/includes or somewhere else that seems
>> appropriate.
>>
>> Jake Churchill
>> CF Webtools
>> 11204 Davenport, Ste. 100
>> Omaha, NE  68154http://www.cfwebtools.com
>> 402-408-3733 x103
>>
>> Selfprodigy wrote:
>>     
>>> Okay so i can use a formtool wizard to create the forms... then i just
>>> need to add the javascript the navigation.cfc file?
>>>       
>>> On May 13, 3:13 pm, Jake Churchill <[email protected]> wrote:
>>>       
>>>> Formtools is a coldfusion library.  The wiki has some great examples of
>>>> its use:  http://docs.farcrycms.org/display/FCDEV40/Formtools+Technology
>>>>         
>>>> Jake Churchill
>>>> CF Webtools
>>>> 11204 Davenport, Ste. 100
>>>> Omaha, NE  68154http://www.cfwebtools.com
>>>> 402-408-3733 x103
>>>>         
>>>> Selfprodigy wrote:
>>>>         
>>>>> I am so confused right now I can't even begin to explain. Formtools is
>>>>> a library that you call in right?  So all i have to do is add the
>>>>> javascript to...?
>>>>>           
>>>>> Or is there way i can just extend an option for link to use the
>>>>> target="blank" attribute?
>>>>>           
>>>>> Im sorry im so lost...
>>>>>           
>>>>> On May 13, 2:45 pm, Jake Churchill <[email protected]> wrote:
>>>>>           
>>>>>> Well, you'd want to use formtools instead of creating all the form
>>>>>> logic.  Other than that the creation of the links will be the same.
>>>>>>             
>>>>>> Jake Churchill
>>>>>> CF Webtools
>>>>>> 11204 Davenport, Ste. 100
>>>>>> Omaha, NE  68154http://www.cfwebtools.com
>>>>>> 402-408-3733 x103
>>>>>>             
>>>>>> Selfprodigy wrote:
>>>>>>             
>>>>>>> You Rock..
>>>>>>>               
>>>>>>> Just one more question.. Will this fix on your blog be hard to apply
>>>>>>> to 4.0.9 or is it relatively the same? Your skill far outweigh my own
>>>>>>> so this is going to take some serious time. I just wanted to make sure
>>>>>>> i'm not going to get stuck on something that was a changeover on the
>>>>>>> new version.
>>>>>>>               
>>>>>>> On May 13, 1:57 pm, Jake Churchill <[email protected]> wrote:
>>>>>>>               
>>>>>>>> Extend dmNavigation to allow a "new window" attribute and then modify
>>>>>>>> your genericNav or whatever loops over and creates your links.  I did
>>>>>>>> this quite a while ago in FC 3.  Here's a blog post on how:  http://jakeold.cfwebtools.com/index.cfm/2006/12/12/Farcry-navigation-...
>>>>>>>>                 
>>>>>>>> Jake Churchill
>>>>>>>> CF Webtools
>>>>>>>> 11204 Davenport, Ste. 100
>>>>>>>> Omaha, NE  68154http://www.cfwebtools.com
>>>>>>>> 402-408-3733 x103
>>>>>>>>                 
>>>>>>>> Selfprodigy wrote:
>>>>>>>>                 
>>>>>>>>> I know it's not the best practice. However, i have a need for opening
>>>>>>>>> a new window off an external link on my menu. I can do it anywhere
>>>>>>>>> else on the site but, not off the main menu... Any ideas?
>>>>>>>>>                   
> >
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-user" group.
To post to this group, send email to farcry-user-/[email protected]
To unsubscribe from this group, send email to farcry-user-unsubscribe-/[email protected]
For more options, visit this group at http://groups.google.com/group/farcry-user?hl=en
-~----------~----~----~----~------~----~------~--~---