Share » Forums » Setup & design » How to change a content object...

How to change a content object Section outside edit view

How to change a content object Section outside edit view

Monday 30 March 2009 4:14:33 pm - 4 replies

Author Message

Olivier Portier

Tuesday 28 April 2009 5:04:33 am

Hi Benjamin,

May be this could help :
http://ez.no/developer/contribs/hacks/section_edit

The action from your form should be section/assign/<section_id>.
May be this would work better.

Regards
Olivier

Benjamin Lorteau

Tuesday 28 April 2009 5:17:25 am

Hi Olivier and thanks for the reply.

Unfortunately, the contribution you mention in your post has already been integrated in eZ Publish public version. No need for a hack to change section in the admin object edit view.

My need is slightly different, I need a way to change section outside this edit view, in the admin full view, for example.

Nevertheless, I will try your guess in the form action.

eZ Publish personal project : http://www.aeriesguard.com [fr]

Olivier Portier

Tuesday 28 April 2009 6:48:53 am

I did try with this :

<form action={'section/assign/1'|ezurl} method="post">
 <input type="hidden" name="SelectedNodeIDArray[]" value="{$node.node_id}"/>
 <input name="BrowseActionName" value="AssignSection" type="hidden" />
 <input type="submit" name="SelectButton" value="Assign"/>
</form>

The redirect URL is section/list but it is working fine.

Regards
Olivier

Benjamin Lorteau

Tuesday 28 April 2009 7:11:47 am

Great, thanks a lot !

I can't try it out myself right now, but is there a hidden field for the redirection page after section assignation ?

Like RedirectAfterURL or something ?

eZ Publish personal project : http://www.aeriesguard.com [fr]

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

36 542 Users on board!

Forums menu