Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > CMSDesk: Site Dropdown path error. View modes: 
User avatar
Member
Member
Leandro Brito - 10/28/2011 2:08:15 PM
   
CMSDesk: Site Dropdown path error.
Hello,

I have two sites in kentico.
The first site (SITE1) has the cmsdesk path: domain.com/news/cmsdesk
The second site (SITE2) has the cmsdesk path: domain.com/cmsdesk

When I'm inside cmsdesk of one of them and use the dropdown to choose the site, I got an error because of url, because the kentico try do this:
SITE1 - domain.com/cmsdesk (not exists)
SITE2 - domain.com/news/cmsdesk (not exists)

How to change the url of dropdown to fix this?
If I put a domain alias in SITE2 like domain.com/news, it'll should work? I didn't try because the site is in live domain.

Thanks

Leandro

User avatar
Member
Member
kentico_edwardh - 10/28/2011 7:48:23 PM
   
RE:CMSDesk: Site Dropdown path error.
Hello Leandro,

You can modify this site selector in CMSDesk\Header.aspx file. There is defined like this:

<%@ Register Src="~/CMSFormControls/Sites/SiteSelector.ascx" TagName="SiteSelector"
TagPrefix="cms" %>

<cms:SiteSelector ID="siteSelector" runat="server" IsLiveSite="false" />

You can define its properties in code-behind in file above.

You can also check \CMSFormControls\Sites\SiteSelector.ascx.cs directly, where other behavior of this selector can be change, and modify it according to your needs.

Best Regards,
Edward Hillard

User avatar
Member
Member
Leandro Brito - 10/31/2011 3:21:57 PM
   
RE:CMSDesk: Site Dropdown path error.
Hi,

Thanks for the answer.

Do you know why the sites are with differents paths and the dropdown doesn't get the valid url?

Thanks

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/6/2011 4:38:26 AM
   
RE:CMSDesk: Site Dropdown path error.
Hi,

Could you please describe us how these sites are setup in the IIS?

Best regards,
Juraj Ondrus

User avatar
Member
Member
Leandro Brito - 11/9/2011 10:07:03 AM
   
RE:CMSDesk: Site Dropdown path error.
Hi,

I don't have access to live server, but I implemented a code in header.aspx.cs and works fine.

Thanks!