Forums / Developer / How to create an action button?

How to create an action button?

Author Message

Rodrigo Costa

Wednesday 16 July 2008 1:33:15 pm

I´m need to create an action button, that checks if already exist a same post in database.

Anyone could help me?

Tnks!!

Piotrek Karaś

Wednesday 16 July 2008 11:47:45 pm

Hi,

The same by what means? I guess you will have to explain the logic in greater detail.

Buttons are created statically in most cases, you simply place a submit-type input in the form, whose action points a view that the action is part of. But I'm not sure there is anything like you described.

Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Rodrigo Costa

Thursday 17 July 2008 12:52:56 pm

Hi Piotrek!

I need to change the submit´s action button. I must check in database if already exists a tupla with the same keyword that I want to insert.
Understand?

Piotrek Karaś

Thursday 17 July 2008 2:27:03 pm

There are a number of ways or approaches in which you can deal with similar problems, for example:
1) You could create your own datatype that would extend the type you're interested in and override its object validation so that in involves checking for older values.
2) You could look for some prepublish hooks/triggers of content views (I believe there may be something like that, although I don't know any for sure).
3) You could create your own module/view that would include such check and otherwise be similar to content/edit.
Probably more approaches exists. All depends on how far you're with eZ, usually requires some expertise.

I don't know any easy way for that, though.

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Frédéric DAVID

Friday 18 July 2008 12:35:48 am

You can have more information there

http://serwatka.net/index.php/en/blog/do_you_need_action

This post explains how create a new action and new custom action button.

Blog : http://www.frefred.fr/blog/ez-publish
feZ Meta Data : http://projects.ez.no/fezmetadata

Rodrigo Costa

Wednesday 30 July 2008 11:42:00 am

hi!!

I did it!! Thanks!!

I just create a module!