Display the tree list of CRM pages in a custom view?

Vote:
 

Hi,

I'm currently implementing a new block with a view. I would like to display the list of pages in the CRM on that new view so the user would be able to select some of these page for further processing.

Even better, if I could have a tree list of these crm pages and be able to drag and drop them into another object. To build a list of pages that needs to be processed.

Suggestions, tips?

Thanks

#204846
Jun 20, 2019 5:05
Vote:
 

Hi shinavn

Here is a link to related forum thread.

https://world.episerver.com/forum/developer-forum/-Episerver-75-CMS/Thread-Container/2019/3/howto-display-the-tree-list-of-crm-pages-in-a-custom-view/

See if that helps you. Drag and drop would not be possible with this but for multiselect you can try IList<ContentReference>.

Let me know if you need more info or help for that.

Thanks, and Regards

Praful

#204863
Jun 20, 2019 9:42
Vote:
 

Hi!

First, I just need to ask: what do you mean by "further processing"?

Depending on what you're ultimately trying to achieve, you probably want to use a ContentArea or (as Praful suggested) an IList<ContentReference>. These can both be restricted to only accept pages using the AllowedTypes attribute (see the documentation). In code, it'd look something like:

[AllowedTypes(typeof(PageData))]
public virtual ContentArea PageContentArea { get; set; }

Editors can then drag and drop pages from the page tree in the navigation pane into this content area.

I'd definitely avoid building a custom property for this use case, especially as it sounds like out-of-the-box functionality could potentially cover your requirements.

#204911
Edited, Jun 20, 2019 15:35
* 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.