Re: [Hypercontent-users] couple of points
Brought to you by:
alexvigdor
From: Alex V. <al...@bi...> - 2006-07-18 14:09:03
|
Hi Carl, > I did this by adding myself as an administrator in the bootstrap =20 > repository. Is this the way to do it? Yes, adding yourself to "group:admin" in the bootstrap gives you =20 universal superuser access. > Also, is there a way to get the =91projects=92 project listed in the = =20 > site list that is presented at http://localhost:8080/index.xml?=20 > mode=3Ddashboard-portlet > > > I would like to be able to login to uPortal and see that listed =20 > along with everything else so I can add sites from there. Projects is actually a directory in the bootstrap, not a separate =20 project, but you can fake it easily enough. The project list is =20 generated by the file /screens/project-list.vm, which currently looks =20= like this: <?xml version=3D"1.0" encoding=3D"UTF-8"?> <projects> #set ($projects =3D $project-factory.ProjectKeys) #foreach ($key in $projects) #if(!($key.equals('/')) && $session.hasPermission("read",$key)) <project href=3D"${abs-server-base}${key}"> <title>${xmlencoder.encode($project-factory.getProjectTitle($key))}</=20 title> <description>${xmlencoder.encode($project-=20 factory.getProjectDescription($key))}</description> </project> #end #end </projects> After the last #end and before the closing </projects>, you could add =20= this statement: #if($session.hasPermission("create","/projects/*")) <project href=3D"${abs-server-base}/projects/"> <title>Project Declarations</title> <description>add/remove projects from HyperContent</description> </project> #end Good luck going live! Cheers, Alex= |