Hi Warrel,
warrell harries wrote:
Still stuck I'm afraid. Can you post what the dashboardusers and
dashboardpermissions component.xml should look like?
perspectives/dashboard/views/dashboardusers/component.xml:
<?xml version="1.0"?>
<view
id="dashboardusers"
label="cms.dashboard.submenu.tab.users"
className="UsersView"
appUrl="/slide/admin/views/users"
editUserUrl="/slide/admin/views/editUser"
icon="users"
bootParam=""
style="usersview"
/>
perspective/dashboard/views/dashboardpermissions/component.xml:
<?xml version="1.0"?>
<view
id="dashboardpermissions"
label="cms.dashboard.submenu.tab.permissions"
className="PermissionsView"
appUrl="/slide/admin/views/permissions"
icon="permissions"
bootParam="/"
style="permissionsview"
/>
perspectives/dashboard/component.xml (only the relevant part):
<view
src="cocoon://workbench/repository-configuration/perspectives/dashboard/views/dashboardusers"/>
<!--<view
id="dashboardusers"
label="cms.dashboard.submenu.tab.users"
className="UsersView"
appUrl="/slide/admin/views/users"
editUserUrl="/slide/admin/views/editUser"
icon="users"
bootParam=""
style="usersview"
/>-->
<view
src="cocoon://workbench/repository-configuration/perspectives/dashboard/views/dashboardpermissions"/>
<!--<view
id="dashboardpermissions"
label="cms.dashboard.submenu.tab.permissions"
className="PermissionsView"
appUrl="/slide/admin/views/permissions"
icon="permissions"
bootParam="/"
style="permissionsview"
/>-->
So the trick is that in perspectives/dashboard/component.xml (which'
content you can initially copy from the default in
editor/src/site/workbench/standard-configuration/perspectives/dashboard/component.xml
in the Hippo CMS sources) you replace the two relevant view
configurations (commented out in the examples above) with references to
the component.xml files in the repository. You then set permissions on
those in the repository.
It looks like I may have to abandon this particular task which is a shame.
It must be a typo or something as this should be pretty straightforward.
Try to browse the "configuration" directory in the repository with a
webbrowser and look at the URLs. If you see "NewFolder" or something in
the URL then delete everything and start over. Renaming is confusing in
most WebDAV clients as there is the URL and the displayname and renaming
in different clients can mean changing either one or both.
If you still can't get it working, zip and send your "slide" directory
(from file system) and I'll have a look.
Kind regards
Niels
********************************************
Hippocms-dev: Hippo CMS development public mailinglist