Try our conversational search powered by Generative AI!

PageLink page property

Vote:
 

Hi,

Is it possible to limit which pages a user can select within the page tree when setting a pagelink?

As an example, I want the user to only be able to link within a certain section of the site they're creating. I'd like the news home page to have a "featured article" link that is set by the user in the CMS, but when setting it only children of the news home page are shown available for selection.

Hope the above makes sense!

#20858
Jun 16, 2008 12:20
Vote:
 

Hi Adam!

No, the only limitation on what pages will be selectable for the user is their access permissions - if theyre allowed to *see* the page, they can also *select* it in the link tool.

You would have to develop a new custom property (inheriting from PropertyPageReference) and in it (and its coupled PropertyDataControl) enfore such restrictions yourself.

Regards,
Johan Olofsson

#20861
Jun 16, 2008 15:54
Vote:
 

Ah, cheers for the reply. I think I'm halfway there.

I've already created a custom property that inherits from PropertyPageReference. In the SetupEditControls method I'm creating a new instance of InputPageReference - do I need to hook into the databind method of this to stop rendering of all unwanted nodes in the page tree? 

#20864
Jun 16, 2008 16:30
Vote:
 

Hi!

 Well, its a little trickier than that because the InputPageReference just opens a "dialog" with the /UI/Edit/PageBrowser.aspx url, and you would probably want to adjust *that* code rather than the InputPageReference.

As this is not easily done, I think you are better off writing your own implementation of PageBrowser that sets the RootPage according to your logics and insert scrit to call that page in your propertycontrols override CreateChildControls().

/johan

 

#20865
Jun 16, 2008 17:03
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.