[Hippo-cms7-user] Folder restriction by documenttype

Ard Schrijvers a.schrijvers at onehippo.com
Tue Nov 24 23:14:57 CET 2009

On Tue, Nov 24, 2009 at 6:58 PM, Gerrit Berkouwer
<gerritberkouwer at gmail.com> wrote:
> Would be nice if you can configure this for the 'Top' folder so that all
> underlying folders also use this configuration, eg for all folders under
> News/year/month/day...

I suppose you realize that you can do the following: Beside to
configuring which documents can be added below some folder, you can
also configure which kind of folders can be added below some folder.

So, suppose I have a /news folder. You are able to say: you can only
add folders below this folder, that can add news items only. So, in
the cms interface, you would have something like:

'add News Folder'
'add News Item'

When you already have a lot of folders, you might best have some jcr
node visitor that sets all the folders the way they would have been
the way I described above

Regards Ard

> In that case you will have less folders to configure...
> This goes for both your questions, 'Documenttype' and 'default value for a
> property (or more properties)'.
> Roberto van der Linden wrote:
>> Hello,
>> I want to restrict my folders so that the user can only add 1 documenttype
>> in that folder. Now I have done this before by creating an xml with a
>> query that resticts the documenttype and then configure this query with
>> the specific folder.
>> - Is this the correct way? Or are there easier ways to do this, as I have
>> a lot of folders :)
>> I also want to give a property in the documenttype a default value. I know
>> that this can be done by the prototype, but this only works if 1
>> documenttype matches 1 default value.
>> But I have 1 documenttype that is used for different purposes and they all
>> needs to have a diffent default value in a property. The value of this
>> property is based on the folder.
>> - Is there an way that I can configure this? So I have multiple folders,
>> that all have 1 documenttype with per folder a different default value for
>> a property.
>> Cheers,
>> Roberto
> -----
> --
> Greetz, Gerrit
> --
> View this message in context: http://n2.nabble.com/Folder-restriction-by-documenttype-tp4056625p4059571.html
> Sent from the Hippo CMS 7 mailing list archive at Nabble.com.
> _______________________________________________
> Hippo-cms7-user mailing list and forums
> http://www.onehippo.org/cms7/support/community.html

More information about the Hippo-cms7-user mailing list