initial site content

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
2/28/2011 9:01:05 AM
Gravatar
Total Posts 46

initial site content

Hi,

does the inital site content support the two alternative panels? eg in the inital pages i can see it supports left center right, but if i true and use "altpanel1" or "alternative panel 1" neither seems to work?

2/28/2011 9:07:03 AM
Gravatar
Total Posts 18439

Re: initial site content

You would need to put altcontent1 or altcontent2, it should work as long as the skin has those panes. 

Hope it helps,

Joe

2/28/2011 10:07:41 AM
Gravatar
Total Posts 46

Re: initial site content

Hi Joe,

here is the script, when creating a site in site settings, it isnt created with the theme with my alt panels, maybe thats it?

<?xml version="1.0" encoding="utf-8" ?>
<siteContent>
<pages>
  <page  pageGuid="49887303-dc43-4246-bb42-6a96bd2108ea"
         resourceFile="Resource"
   name="DefaultHomePageName"
   title=""
   url="~/home.aspx"
   menuImage=""
   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=""
    contentTemplate="InitialSitealt1HomeContent.config"
    location="altcontent1"
    sortOrder="1"
    cacheTimeInSeconds="360"
   />
   <contentFeature
    featureGuid="881e4e00-93e4-444c-b7b0-6672fb55de10"
    contentTitle="Welcome"
    contentTemplate="InitialSiteHomeContent.config"
    location="center"
    sortOrder="1"
    cacheTimeInSeconds="360"
   />
   <contentFeature
    featureGuid="881e4e00-93e4-444c-b7b0-6672fb55de10"
    contentTitle=""
    contentTemplate="InitialSiteHomeLeftContent.config"
    location="left"
    sortOrder="1"
    cacheTimeInSeconds="360"
   />

   <contentFeature
    featureGuid="38cdb196-d485-422b-a6cf-198d583f2d49"
    contentTitle=""
    location="right"
    sortOrder="1"
    cacheTimeInSeconds="360"
   />      
  </page>
</pages>
</siteContent>
 

2/28/2011 10:10:58 AM
Gravatar
Total Posts 46

Re: initial site content

just tried creating it with the right theme, it puts the altcontent1 module into the top of center. bit confusing!

2/28/2011 10:28:08 AM
Gravatar
Total Posts 18439

Re: initial site content

Valid options for location are:

  • leftpane
  • rightpane
  • contentpane
  • altcontent1
  • altcontent2

altcontent1 is the top pane and altcontent2 is the bottom

I don't recommend setting the cache to 360 unless you have a real good reason, make it 0. Cache uses server memory and that is usually the most scarce resource in shared hosting. I see you copied that from the default content file, I will remove that from the default content template, I had forgotten it was there and it led you to do the same.

I noticed our default also had center as the location, that is also a mistake but it works because if anything entered there is an unknown value it will put it in the center. 

After reviewing the code for the initial content creation, I see it has never been updated to support the altcontent1 and altcontent2 panes so I will fix that for the next release, that is why it is not working for you.

Hope it helps,

Joe

 

2/28/2011 10:52:16 AM
Gravatar
Total Posts 46

Re: initial site content

cheers joe! when using new guid's for pages, i have to use this script to create around 400 sites, if the guid exsists when it generates a new one, will any child pages have access to this new guid or will it loose the struture?

2/28/2011 11:07:15 AM
Gravatar
Total Posts 18439

Re: initial site content

I believe that currently it will lose the structure. It is something I hope to improve on at some point but its a little ways down the list in terms of priorities.

Best,

Joe

2/28/2011 11:10:39 AM
Gravatar
Total Posts 46

Re: initial site content

no problem ill just use a script to refresh the guid's each time i run the create script.

one final thing, is it possible to set the edit permissions for each module with this script too?

3/3/2011 5:42:26 AM
Gravatar
Total Posts 46

Re: initial site content

Hi Joe,  

the fact that the altcontent areas arnt supported is a big stumbling block for me, ive created 20 or so pages, and each one uses the altcontent1 as a header image bar, so i cant roll out the sites (400ish!) without it! any way you can commit the changes to initial site setup, or get the files to me so i can proceed? or is there a release soon? 

3/3/2011 5:47:27 AM
Gravatar
Total Posts 18439

Re: initial site content

If you are able to build and deploy from source code it is in the repository now.

I'm also going to take a look at what will be needed to support child pages correctly in the near future but that isn't done yet.

Best,

Joe

3/3/2011 5:48:44 AM
Gravatar
Total Posts 46

Re: initial site content

legendary as always joe! thanks!

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