You can pass URL params into customadmin already. Or am I misunderstanding your requirement.
I was about to say "nuh uh!", but then I tried & and wallah! I had tried %3F before, and & (forgetting it was an XML file).
So to recap, if you want to pass URL vars to custom admin pages you need to do:
<link>/farcry/admin/customadmin.cfm?module=_bosLink/list_test.cfm&test=test</link>
Well thats great... time to go clean up some code =)
-
If it is fair to say that no two admin tabs can have the same name, then I think defining a custom admin tab in customadmin.xml that has the same name as a core tab should override the definition of the core tab.
-
The problem I specified of linking to subtabs and subtab links is non-existant, as you can just pass in "subtabindex" and "defaultpage" in the admin url.
Also a few more things I found out about customadmin.xml:
1) The <parenttab> element takes a "defaultpage" attribute that specifies what page to load in the RHS when the tab is pressed.
2) The <subtabs> element takes a "href" attribute that specifies what page to load in the LHS column, under that subtab.
3) The link to the current admin page state is passed to a custom admin page as "url.approveURL" which you can use in genericAdmin for returning after object approval, deletion, creation etc.
I should write a howto and fully document custom admin tabs.
One thing that is lacking though as a nice way to find out the 'parenttabindex' and 'subtabindex' of given nodes of the customadmin.xml. I shipped a module that needed to generate a link to an admin page of the module using parenttabindex, but of course you don't know the tab index because the user most probably has their own customadmin.xml.
There is also the problem of how to refer to the custom admin tab from your module. Do you just do a string comparison (how I currently do it) such as customAdmin.getParentIndex("name of parent tab") and customAdmin.getSubtabIndex("name of parent tab", "name of sub tab") or do you specify an ID attribute in the XML file, and use the ID to retrieve the index?
-
And in regards to the option of specifying the whole admin tab structure interface in XML, you'd still want a hook just after the loading of the XML file so you can programatically modify the menu structures.
The use of an XML file for the whole admin structure would also clean up the admin/index.cfm a helluva lot.
-- tim lucas
http://www.toolmantim.com
"Farcry is sweet." - GB
--- 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
