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!

3/3/2011 1:19:38 PM
Gravatar
Total Posts 18439

Re: initial site content

fyi, I've just committed changes to the source code repository to better support nesting of pages. If you get the latest code, you no longer need to specify pageGuid nor parentGuid. You just need to nest the child pages within a <childPages> element inside the <page> element in the configuration file(s).

I've updated the documentation with an example showing the nesting of pages.

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

Best,

Joe

3/3/2011 5:33:35 PM
Gravatar
Total Posts 46

Re: initial site content

brillant joe, makes life much easier not having to change id's! 

regarding checking out from svn is 2.3.6.2 the lastest version i need?

3/7/2011 4:31:34 AM
Gravatar
Total Posts 46

Re: initial site content

bump. the documentation says  mojoPortal 2.3.6.3 or later but i can only see 2.3.6.2 in the update?

3/7/2011 10:36:58 AM
Gravatar
Total Posts 18439

Re: initial site content

It is not yet released. The only way to get this functionality today is to get the code from the repository

http://www.mojoportal.com/getting-the-code-with-tortoisehg.aspx

Best,

Joe

3/7/2011 10:45:11 AM
Gravatar
Total Posts 46

Re: initial site content

hi joe, thats what i mean, which version do i get? the default? version? im choose upgrade on my existing svn source.

3/7/2011 10:56:22 AM
Gravatar
Total Posts 1203
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: initial site content

Yes, get the Default branch.

3/7/2011 10:57:56 AM
Gravatar
Total Posts 46

Re: initial site content

thanks :)

3/7/2011 10:58:41 AM
Gravatar
Total Posts 18439

Re: initial site content

default branch is the default branch which means you will not get a different branch unless you explicitly update to a different branch using TortoiseHG > Update

So you don't have to do anything special to get the default branch.

Hope it helps,

Joe

3/28/2011 8:46:01 PM
Gravatar
Total Posts 46

Re: initial site content

brillant, got it all sorted now, upgraded and the inital site content is working perfectly.

one more note, is it possible to set wether a module is included in the menu in the inital site content system?

and one last one is it possible to set edit permissions on modules?

3/30/2011 4:02:20 AM
Gravatar
Total Posts 46

Re: initial site content

bump

3/30/2011 10:48:42 AM
Gravatar
Total Posts 18439

Re: initial site content

I've just updated these documents to reflect changes in the new 2.3.6.4 release.

Configuring Initial Content

Populating Feature Content

modules are not shown in the menu pages are shown in the menu and modules are hosted in pages. It is not currently possible to set the include in menu setting for pages, but I will implement that for the next release. It is possible currently to set page view and edit permissions but not module view and edit permissions, I will also implement that for the next release.

Best,

Joe

 

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