The custom button works fine - up to the point when the object is approved; then when I click my button it is like I have clicked edit and it goes to the approved page with options of creating editable draft...
And wouldn't you believe it, I only want to operate on approved items.
On 7/13/06, Andrew Mercer <[EMAIL PROTECTED]
> wrote:
I got it working with the widgets tag - typeadminbutton, so converted the cfscript to tags and it is all sweat now.On 7/13/06, Andrew Mercer < [EMAIL PROTECTED]> wrote:Thanks Blair.
I went with cfscript method as the online docs had a list of all the default buttons ready to go
- is there a why to just add a button to the existing set?
This is my struct:
stBut=structNew();
stBut.type="submit";
stBut.name="Send";
stBut.value="Send";
stBut.class="f-submit";
stBut.> stBut.permission= "#attributes.permissionset#Approve";
stBut.buttontype="Send";
stBut.methon="Send";
arrayAppend(aDefaultButtons,stBut);On 7/13/06, Blair McKenzie < [EMAIL PROTECTED] > wrote:If you're adding buttons with an array, put method=display in the attached wddx struct for the button. It's easier if you're using the tags: just set the method attribute to the method name in the tag.
When the button is clicked, the type's component is instantiated and that method is called with the objectid of each checked item.
BlairOn 7/13/06, Andrew Mercer < [EMAIL PROTECTED]> wrote:Does any one know how to handle custom buttons?
I have added a button to the default set off Bottons ok.
I want it to fire off a method in the cfc for the admin section I am in.
Like when you click view - it fires off display()On 7/13/06, Geoff Bowers < [EMAIL PROTECTED]> wrote:
Andrew Mercer wrote:
> In the online doco for typeadmincolumn
> < http://docs.farcrycms.org:8080/confluence/display/FCDEV30/typeadmincolumn >
> it shows the tag implemented as a custom tag.
>
> <cf_typeadmincolumn
> columntype="_expression_/evaluate/value"
> title="Heading"
> value="some value" />
> This did dont work for me
If you are going to use this format for a custom tag then you need to
make sure that the tag library is in the global CF custom tag path.
Otherwise you have to import the library and use it that way.
-- geoff
http://www.daemon.com.au/
--
Message protected by MailGuard: e-mail anti-virus, anti-spam and content filtering.
http://www.mailguard.com.au/mg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-dev" group.
To post to this group, send email to farcry-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/farcry-dev
-~----------~----~----~----~------~----~------~--~---