Set StartNode when browsing in browse.ini

Set StartNode when browsing in browse.ini

Wednesday 23 August 2006 3:45:55 pm - 4 replies

Modified on Wednesday 23 August 2006 3:46:33 pm by Damien Pobel

Author Message

Kristof Coomans

Wednesday 23 August 2006 11:23:46 pm

Hi Daniel

The available override keys for adding new node assignments are classgroup and class (I looked that up in the code, kernel/content/action.php line 206, I don't know if there's an easier way to find out).

class is the class id
classgroup is a class group id

So you need to know your class id, let's say 12, and then the setting to use is:

StartNode_class[12] = 60

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Damien Pobel

Thursday 24 August 2006 1:28:02 am

Hi Kristof

Thank you very much for your answer (and for all your others interesting posts here) :)

It's easier to understand when you know that the "override key" is "class" or "classgroup" ... This "detail" should be in comments AND in the documentation of browse.ini !!

PS : my name is Damien not Daniel ;-)

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Kristof Coomans

Thursday 24 August 2006 7:28:08 am

PS : my name is Damien not Daniel ;-)

My apologies :-)

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Gwenal Le Bihan

Wednesday 29 November 2006 4:17:04 am

Hello,

it's a shame that it seems not possible to do it in editing mode when we're editing an object that have related object datatypes attributes.

I've looked in /kernel/classes/datatypes/ezobjectrelation/ezobjectrelationtype.php

in line 338 in the case "browse_object" when the call to the browse function is done, there are no "keys" parameters so back in /kernel/classes/ezcontentbrowse.php $parameters['keys'] is not defined hence we can only be directed in content or in media but not in one specified node even if I change the browse.ini like this for instance : StartNode_class[57]=201..

Is there some other way to do it in editing mode?

Thanks everyone

Gwenal

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.