Share » Forums » Setup & design » Custom view and remove objects

Custom view and remove objects

Custom view and remove objects

Tuesday 02 October 2007 5:22:56 am - 4 replies

Author Message

André R.

Tuesday 02 October 2007 6:29:03 am

have you tested 'ViewMode'?
action.php:

else if ( $http->hasPostVariable( 'RemoveButton' ) )
{
    if ( $http->hasPostVariable( 'ViewMode' ) )
    {
        $viewMode = $http->postVariable( 'ViewMode' );
    }
....

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

laurent le cadet

Tuesday 02 October 2007 6:36:05 am

André,

How/where can I test that?
In the removeobject.tpl form?

Laurent

André R.

Tuesday 02 October 2007 7:17:10 am

No, the template calling content/action.

<input type="hidden" name="ViewMode" value="my_custom_view" />

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

laurent le cadet

Tuesday 02 October 2007 7:32:53 am

Perfect (Très très bien).

Laurent

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu