Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Path selector - Change sites as widget View modes: 
User avatar
Member
Member
lukek - 7/23/2013 8:51:38 PM
   
Path selector - Change sites as widget
Question regarding the path selector form control when used in a widget. I've noticed that there is no way to use the site selector when selecting the path. Is this possible to enable via a setting somewhere in the CMS that I am missing? It's possible as a webpart.

Anyway I looked through the code for the form control and found this code (starts at line 44)
if (ControlsHelper.CheckControlContext(this, ControlContext.WIDGET_PROPERTIES) && (!siteNameIsAll))
{
// If used in a widget, site selection is provided by a site selector form control (using HasDependingField/DependsOnAnotherField principle)
// therefore the site selector drop-down list in the SelectPath dialog contains only a single site - preselected by the site selector form control
mConfig.ContentSites = (String.IsNullOrEmpty(selectedSiteName)) ? AvailableSitesEnum.OnlyCurrentSite : AvailableSitesEnum.OnlySingleSite;
}

Anyway in mean time I just made a clone of the control and took that code out but was wondering if there was a setting somewhere I could override this functionality.

It would be great if this could be enabled in the UI settings.

User avatar
Member
Member
lukek - 7/23/2013 8:57:29 PM
   
RE:Path selector - Change sites as widget
Never mind I found an alternative (though it's not very obvious).

Well I'll post answer here in case anyone comes looking.

To allow multi site selection in a path selector applied to a widget you need to tick 'Depends on another field'