Andrew Mercer spoke the following wise words on 18/04/2004 5:39 PM EST:
Tim suggested that I mod a core file, but as I am reluctant to do that,
I ended up just substringing the html link that comes from the site tree
when selecting 'insert'. Is it possible to added items to the case
statement from within my application, rather than making changes to the
core file (overview.cfm).

When I said 'redefine' I meant you have to redefine the menuOption_Insert function object from your admin page.


You can do this like such:

menuOption_Insert=function()
{
  // new function definition here
};

Hope this is helpful for other people. Please let me know if there is a
better/easier way of doing this. I have spent like 4-5 hours working on
this to save the client 40 seconds a week of cut and paste time!!

Thanks for sharing the code. =) If you read my above comment and previous posts you should be able to avoid using the substr method which may break if you use a different editor or the core behaviour changes. But hey, if you got it working then it's all good ;)


-- tim

www.toolmantim.com

---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to