[Building Sakai] Problems creating a new site type in Sakai 10

Diego del Blanco Orobitg diego.delblanco.sakai at gmail.com
Thu Jul 17 03:24:39 PDT 2014


mmmm, seems that Sakai 10.x code is not the good one... same lines in same
file...

/site-manage-tool/tool/src/webapp/vm/sitesetup/chef_site-type.vm

In SAKAI 10.x code:

#foreach ($type in $siteTypes)
 #set($courseTypeWithPerm    = ((($courseSiteTypeStrings.contains($type)
  && $type == "course")     || $type == "course")    && $canAddCourse ))
 #set($portfolioTypeWithPerm = ((($portfolioSiteTypeStrings.contains($type)
&& $type == "portfolio")  || $type == "portfolio") && $canAddPortfolio ))
 #set($projectTypeWithPerm   = ((($projectSiteTypeStrings.contains($type)
&& $type == "project")    || $type == "project")   && $canAddProject ))
 #if (($courseTypeWithPerm) || ($portfolioTypeWithPerm) ||
($projectTypeWithPerm))



In TRUNK (and in 2.9.x) code:

 #foreach ($type in $siteTypes)

 #if (($type == $courseSiteType && $canAddCourse) || ($type ==
$portfolioSiteType && $canAddPortfolio) || ($type == $projectSiteType
&& $canAddProject) || ($type != $courseSiteType && $type !=
$portfolioSiteType && $type != $projectSiteType))






2014-07-17 12:09 GMT+02:00 Diego del Blanco Orobitg <
diego.delblanco.sakai at gmail.com>:

> Hi:
>
> I'm trying to create a new site type in Sakai 10. I've updated
> the sakai.sitesetup.xml file and .... and I can't view my new site type
> when I try to create a site (only project and course)
>
> This is what I changed in that file:
>
>
> *<configuration name="siteTypes" value="course,project,investigacion" />*
>
> and
>
> *<configuration name="publicChangeableSiteTypes"
> value="project,investigacion" />*
>
>
> To test if I was touching the wrong file, I've updated the same file and
> added the portfolio type too:
>
> <configuration name="siteTypes"
> value="course,project,portfolio,investigacion" />
>
> and now I can view project, course and portfolio, but not my new type.
>
> So... file is the right one, this is sure becuase the portfolio change has
> worked...  why not with "investigation" new type????
>
>
> Maybe It's something related in this JIRA,
> https://jira.sakaiproject.org/browse/SAK-22994 but this is supposedly
> solved for Sakai 2.9... and I'm trying in Sakai 10.
>
> Maybe a regression? Maybe I'm doing something wrong or forgotten another
> step?
>
> I've not added this filetype in the different tools.xml files, but I think
> this is not necessary to show the new file type when creation a new site.
>
> Thanks!
> --
> ***************************************
>  *Diego del Blanco Orobitg*
> Spain & LATAM Regional Manager (*ANI Sakai*)
> Apereo LATAM Representative (*Apereo Foundation*)
>
> P: (+34) 653 683 489
> E: ddelblanco at anisakai.com
> Sk: ddelblanco.ani
> ***************************************
>



-- 
***************************************
*Diego del Blanco Orobitg*
Spain & LATAM Regional Manager (*ANI Sakai*)
Apereo LATAM Representative (*Apereo Foundation*)

P: (+34) 653 683 489
E: ddelblanco at anisakai.com
Sk: ddelblanco.ani
***************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20140717/e26d02fe/attachment.html 


More information about the sakai-dev mailing list