Trouble Getting PageId form ImageSelector dialog

Posted by Community Admin on 04-Aug-2018 20:31

Trouble Getting PageId form ImageSelector dialog

All Replies

Posted by Community Admin on 24-May-2012 00:00

I made MediaContentSelectorView.aspx use my external template so that I could
do some filtering of the image libraries based on current page.

Trouble is... from the OnPageLoad inside the popup dialog control, I can't seem to get the pageid of the page that popped it up.

For a control directly on the page, I use  SiteMapNode currentNode = SiteMap.CurrentNode;  and get the ID from there.  In the dialog, currentNode returns  NULL.

How do I get the CurrentPageId from within the Image selector dialog ?

thanks,
Tim

This thread is closed