ft:objectadmin toolbar buttons

7 views
Skip to first unread message

Szabolcs Nagy

unread,
Dec 3, 2010, 3:59:00 PM12/3/10
to farcr...@googlegroups.com
I am trying to add an extra button to the toolbar rendered by ft:objectadmin

I created an array for my button and passed it in as aButtons attribute.
It displayed my button, but the default buttons are disappeared.

I tired to list all the buttons in the lButtons parameter, but it didn't help.

Do I need to redefine the default buttons in the aButtons array?
If so, will farcry handle permissions for the default buttons?


Szabolcs

Blair McKenzie

unread,
Dec 3, 2010, 4:17:46 PM12/3/10
to farcr...@googlegroups.com
You have discovered the primary problem with overriding the objectadmin buttons. Yes, you will need to redefine all of them. I believe the defaults are defined in a component called /packages/farcry/objectadmin.cfc somewhere. That definition includes the default permissions.

Blair

--
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcr...@googlegroups.com
To unsubscribe, email: farcry-dev+...@googlegroups.com
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry

Szabolcs Nagy

unread,
Dec 6, 2010, 3:49:24 PM12/6/10
to farcr...@googlegroups.com
Thank you Blair. I managed to redefine them with the right permissions.
Most of them are working fine. The 'Send To Draft' button however doesn't open up the Administration dialog.

After I save the status change it goes back to the webtopOverview but nothing happens when I click Done  since there is no dialog to close.
I don't know if it is just on my system or it is a bug.

Currently I am using core 6.0.8. Is there a cms update corresponding to this core?

Szabolcs

Blair McKenzie

unread,
Dec 6, 2010, 5:45:09 PM12/6/10
to farcr...@googlegroups.com
It's always a good idea to keep the CMS plugin up to date, but I don't think there is anything criitical. All I can think of is that you may have missed something while redefining the buttons.

Blair

AJ Mercer

unread,
Dec 6, 2010, 9:07:06 PM12/6/10
to farcr...@googlegroups.com

Szabolcs Nagy

unread,
Dec 7, 2010, 10:23:39 AM12/7/10
to farcr...@googlegroups.com
At first I also thought it must be my mistake, but I tested the dmFacts which I didn't override and the same problem came up with the 'Send to Draft' button.
So I looked in to it and I think I found the problem in the core (FC6.0.8).

In the farcry/core/tags/formtools/objectadmin.cfm at line 486 is where 'Send to Draft' is processed.
It simply redirects with a cflocation as oppose to the 'approve' at line 472 which uses skin:onReady to open up a jQuery dialog.

Can it be corrected or there is a reason not to use the 'approve' pattern?

Szabolcs

Blair McKenzie

unread,
Dec 7, 2010, 5:34:32 PM12/7/10
to farcr...@googlegroups.com
No, that's something we can fix. Can you put what you've found in a ticket? I'll try to commit the fix soon.

Blair
Reply all
Reply to author
Forward
0 new messages