Page setting for new sites

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
9/15/2010 8:24:14 AM
Gravatar
Total Posts 5

Page setting for new sites

Hi All,

I am currently working on creating new sites. I want the same pages, features and menus for my new site from my existing site.

Is any configuration there like that?

Please lemme know ASAP. Its very urgent for me..

 

Thanks in advance,

Merlin.

9/15/2010 3:03:50 PM
Gravatar
Total Posts 18439

Re: Page setting for new sites

http://www.mojoportal.com/configuring-initial-content.aspx

Hope it helps,

Joe

9/17/2010 5:30:35 AM
Gravatar
Total Posts 5

Re: Page setting for new sites

Dear Joe,

Thanks for your quick reply.

I follow your link and it was working fine. But still I have a problem.

The parentGuid is not saving properly, so I could not able to generate the parent child menus using that config file.

It is showing me all menus as parent menu, because of the parentGuid . The parentGuid  is always saving as "00000000-0000-0000-0000-000000000000"

Below I give my sample config file...

 

<?xml version="1.0" encoding="utf-8" ?>
<siteContent>
    <pages>
        <page     pageGuid="6ee971cd-9956-4dc3-8162-a488413e7f58"
      resourceFile="Resource"
            name="DefaultHomePageName"
            title=""
            url="~/home.aspx"
            menuImage="house.png"
            parentGuid="00000000-0000-0000-0000-000000000000"
            pageOrder="1"
            requireSSL="false"
            visibleToRoles="All Users;"
            editRoles="Content Publishers;"
            createChildPageRoles="Content Publishers;"
            pageMetaKeyWords=""
            pageMetaDescription=""
            >
            <contentFeature
                featureGuid="881e4e00-93e4-444c-b7b0-6672fb55de10"
                contentTitle="DefaultContentHtmlTitle"
                contentTemplate="InitialSiteHomeContent.config"
                location="center"
                sortOrder="1"
                cacheTimeInSeconds="360"
            />
        </page>
   
    <page pageGuid="7CF34A25-26AA-4AB6-933B-06A6F2D21DA5"
      resourceFile=""
            name="CLIENTS"
            title=""
            url="~/clients.aspx"
            menuImage="blank.gif"
            parentGuid="00000000-0000-0000-0000-000000000000"
            pageOrder="3"
            requireSSL="false"
            visibleToRoles="Authenticated Users;"
            editRoles=""
            createChildPageRoles=""
            pageMetaKeyWords=""
            pageMetaDescription=""
            >
    </page>

    <page     pageGuid="DE30FF54-9120-4C88-9006-5F01F55C1902"
      resourceFile=""
            name="Manage Clients"
            title=""
            url="~/manage-clients.aspx"
            menuImage="blank.gif"
            parentGuid="7CF34A25-26AA-4AB6-933B-06A6F2D21DA5"
            pageOrder="1"
            requireSSL="false"
            visibleToRoles="Authenticated Users;"
            editRoles=""
            createChildPageRoles=""
            pageMetaKeyWords=""
            pageMetaDescription=""
            >
      <contentFeature
                featureGuid="BB670CFA-8868-44DF-88A1-63325FEF61D7"
                contentTitle=""
                contentTemplate=""
                location="center"
                sortOrder="1"
                cacheTimeInSeconds="0"
            />
    </page>
    </pages>
</siteContent>
 

 

Please help me , if I did any mistake with the code

Thanks in advance,

Merlin.C.M.

9/17/2010 8:02:26 AM
Gravatar
Total Posts 18439

Re: Page setting for new sites

you need to generate unique guids for each page you define, if they are not unique, ie there already exists a page with this guid, mojoportal will generate one because they have to be unique and it won't match. for root pages use the empty guid 0000-0000-0000-000000000000 for the parentGuid and on child pages make sure you use the unique guid that you generated as the pageGuid for the parent page when you define a child page. Might be best to lower case the guids.

9/17/2010 11:00:53 PM
Gravatar
Total Posts 5

Re: Page setting for new sites

Dear Joe,

Thanks for your quick reply.

 

Ok. I understand that the PageGuid should be unique. But, If we are creating 2 or 3 new sites and for those I want the same menu setting. In this case

I need to change the config file each and every time..right? This will be very tough job. I hope.

Is any other way there for setting??

 

Thanks,

Merlin. CM

9/18/2010 7:47:17 AM
Gravatar
Total Posts 18439

Re: Page setting for new sites

you're right unfortunately it doesn't work well for child sites because page guids must be unique per installation. The system was really designed for initial installation of a single site with some default content. I will create a wish list item for this in my project tracker to figure out a better way to wire up initial content in child sites.

it works ok now if you don't use child pages and only have a few root level pages because then it does not matter if the page guids get changed.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.