KC Fam
KC Fam

Reputation: 11

DNN How to get child portal url?

I manage to get the portal list from PortalController.GetPortals(). What is the next step for me to get the friendly URL from this list?

Upvotes: 1

Views: 1017

Answers (1)

Chris Hammond
Chris Hammond

Reputation: 8943

If you want to get the FriendlyURL For a page in DotNetNuke you want to use

DotNetNuke.Common.Globals.NavigateURL()

If you want to get the Portal Alias for a portal, you can get that from the PortalSettings controller in DNN, that or simply look at the PortalAlias table based on the PortalID

Upvotes: 1

Related Questions