How to get Document Scopes working?

Yehuda Lando asked on May 12, 2014 01:45

Hi,

I added a document scope that limits me to having only a few document types in a certain location. However, when I go to add documents in that location, I can still insert all document types.

What am I doing wrong?

Correct Answer

Vilém Jeniš answered on May 14, 2014 06:07

Dear Yehuda,

You've found a bug. Document type scopes don't apply on documents with unicode characters in their names. They are of course supposed to apply and I've submitted the bug to our team of developpers. You've earned yourself a tree. What's more important for you is that this issue will be fixed in the seventh hotfix for Kentico 8.

We're very sorry for any inconvenience it causes at the moment.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on May 12, 2014 09:49

Where are you setting the document scope? Are you sure that's not the template scope? To set what you see below specific document types, you have to go to the Child types under the document type you want to restrict/grant access there.

0 votesVote for this answer Mark as a Correct answer

Yehuda Lando answered on May 12, 2014 10:04

Yea, I went into Document Types application and added a scope. I attached an image showing how I've set it up. Image Text

(if it doesn't appear, you can see it here: https://www.dropbox.com/s/281q2tz16w6gecr/Capture.PNG)

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 12, 2014 14:26

I think you only did part of what you need to do. You still need to set the Child/Allowed types on the document type. Follow the instructions here.

0 votesVote for this answer Mark as a Correct answer

Yehuda Lando answered on May 12, 2014 15:08

Well, I have a document type that is used in my site instead of the usual CMS.MenuItem. It can appear in many places, but in one place I want only certain document types to available as children. But the same documents appear regardless of the scope I specified.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on May 13, 2014 07:32

Did you read the instructions link I posted previously? It has what you need to do in there. You have to set the Allowed types on the CMS.MenuItem doc type.

0 votesVote for this answer Mark as a Correct answer

Yehuda Lando answered on May 13, 2014 15:40

Yes, I read it before posting here, and I've also set the allowed types. That's not my problem. My problem is that I only want certain document types to be available under that tree node. That is the whole point of document scopes, no? Just like with template scopes.

0 votesVote for this answer Mark as a Correct answer

Yehuda Lando answered on May 14, 2014 11:45

Thanks Vilém

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.