Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Content picker in custom MVC report?

Vote:
 

Hi!

Henrik made a nice example here how to add a MVC report in the Reports section, nice.

https://world.episerver.com/blogs/Henrik-Fransas/Dates/2016/3/create-custom-report-in-mvc-with-excel-export/

But how do I add a content picker into my report? Looks like the reports are "dojo free" and the other standard reports in Epi are old .aspx files.

Thanks!

#246173
Edited, Dec 29, 2020 14:21
Vote:
 

Are you willing to pick a content item dynamically or will it work if you pass that from config settings?

Can you also give a highlevel idea of what you want to acheive, so there may be other implementation approach that you can try?

#246409
Jan 05, 2021 12:31
Vote:
 

Preferrable is of course that you can pick it dynamicly like a normal content selector.

What I want to do is to search for specific products and variants but I waat the user to be able to select a specific category to search within. 
I have solved it by rendering the catalog tree in a dropdown, it does the job but of course a regular content picker would have been better.

#246411
Jan 05, 2021 12:36
Vote:
 

In that case, following link may help in rendering the content picker

https://blog.mathiaskunto.com/2012/07/14/how-to-open-those-episerver-edit-mode-selector-browser-popups-in-your-custom-properties/

This will help :)

#246413
Jan 05, 2021 12:53
Vote:
 

Yes, that helped and was really useful. But there was no way to get a dialog containing the catalog tree, just the page tree.
Dates worked just fine so I guess I will just use that.

The dialog I'm looking for is the one shown when adding a category to a catalog content in the Commerce GUI or adding the catalog in the asset pane.
I also tried to add the catalog as an Id to the dialog:

/episerver/CMS/edit/pagebrowser.aspx?id=-2147483629__CatalogContent

But that threw an exception.

#246416
Jan 05, 2021 13:52
Vote:
 

For that I will need to do little RnD. 

Did you tried passing ID with this url? (below)

/secure/ui/CMS/edit/pagebrowser.aspx

#246418
Jan 05, 2021 14:15
Vote:
 

Both: 

/secure/ui/CMS/edit/pagebrowser.aspx

and 

/episerver/secure/ui/CMS/edit/pagebrowser.aspx

Gives me a 404

#246420
Jan 05, 2021 14:29
Praful Jangid - Jan 05, 2021 14:39
OK, then I will do some hit and trails to get some solution.
Thanks
* 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.