[opencms-dev] Can't add folder even though logged in as Admin on OpenCMS 6.0

Jarrad Waterloo jwaterloo at dynamicquest.com
Wed Feb 27 18:21:09 CET 2008


There is an explorertype for folder! Is there any security or configuration
settings that could have a bearing on this.
Following is an excerpt from the file:

<explorertype name="folder" key="fileicon.folder" icon="folder.gif">
	<newresource uri="newresource_folder.jsp" order="5"
autosetnavigation="false" autosettitle="false"/>
	<editoptions>
		<defaultproperties enabled="true" shownavigation="true">
			<property name="Title"/>
		</defaultproperties>
		<contextmenu>
			<entry key="GUI_EXPLORER_CONTEXT_LOCK_0"
uri="commons/lock.jsp" rules="d d aaaa dddd dddd" order="10"/>
			<entry key="GUI_EXPLORER_CONTEXT_OVERRIDELOCK_0"
uri="commons/lockchange.jsp" rules="d d dddd dddd aaaa" order="20"/>
			<entry key="GUI_EXPLORER_CONTEXT_UNLOCK_0"
uri="commons/unlock.jsp" rules="d d dddd aaaa dddd" order="30"/>
			<separator order="40"/>
			<entry key="GUI_EXPLORER_CONTEXT_COPYTOPROJECT_0"
uri="commons/copytoproject.jsp" rules="d a dddd dddd dddd" order="50"/>
			<entry key="GUI_EXPLORER_CONTEXT_PUBLISH_0"
uri="commons/publishresource.jsp" rules="d d aaaa aaaa dddd" order="60"/>
			<separator order="70"/>
			<entry key="GUI_EXPLORER_CONTEXT_COPY_0"
uri="commons/copy.jsp" rules="d d iiii aaai dddd" order="150"/>
			<entry key="GUI_EXPLORER_CONTEXT_MOVE_0"
uri="commons/move.jsp" rules="d d iiii aaai dddd" order="170"/>
			<entry key="GUI_EXPLORER_CONTEXT_DELETE_0"
uri="commons/delete.jsp" rules="d d iiii aaai dddd" order="180"/>
			<entry key="GUI_EXPLORER_CONTEXT_TOUCH_0"
uri="commons/touch.jsp" rules="d d iiii aaai dddd" order="190"/>
			<entry key="GUI_EXPLORER_CONTEXT_AVAILABILITY_0"
uri="commons/availability.jsp" rules="d d iiii aaai dddd" order="200"/>
			<entry key="GUI_EXPLORER_CONTEXT_UNDOCHANGES_0"
uri="commons/undochanges.jsp" rules="d d iiid aaid dddd" order="210"/>
			<entry key="GUI_EXPLORER_CONTEXT_UNDELETE_0"
uri="commons/undelete.jsp" rules="d d ddda ddda dddd" order="220"/>
			<separator order="240"/>
			<entry key="GUI_EXPLORER_CONTEXT_ACCESS_0"
uri="commons/chacc.jsp" rules="a a iiii aaai dddd" order="300"/>
			<entry key="GUI_EXPLORER_CONTEXT_SECURE_0"
uri="commons/secure.jsp" rules="d d iiii aaai dddd" order="302"/>
			<entry key="GUI_EXPLORER_CONTEXT_TYPE_0"
uri="commons/chtype.jsp" rules="d d iiii aaai dddd" order="305"/>
			<entry key="GUI_EXPLORER_CONTEXT_CHNAV_0"
uri="commons/chnav.jsp" rules="d d iiii aaai dddd" order="310"/>
			<separator order="340"/>
			<entry key="GUI_EXPLORER_CONTEXT_PROPERTY_0"
uri="commons/property.jsp" rules="a a aaai aaai aaai" order="360"/>
		</contextmenu>
	</editoptions>
</explorertype>

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Bozidar Ilievski
Sent: Wednesday, February 27, 2008 2:40 AM
To: The OpenCms mailing list
Subject: Re: [opencms-dev] Can't add folder even though logged in as Admin
on OpenCMS 6.0

Hi.

Check also the WEB-INF/config/opencms-workplace.xml file.
Search for <explorertypes> element.
For every <resourcetypes> --> <type> element that is defined in 
WEB-INF/config/opencms-vfs.xml there should be corresponding 
<explorertype> element here.
The <explorertype> element defines the icon, short and long description 
that will appear in the New dialog for the corresponding resource type.

Maybe this file causes your problems.

Regards,
Bobi.

Jarrad Waterloo wrote:
> Folder is defined in WEB-INF/config/opencms-vfs.xml but it still doeasn't
> show up in add!
> 
> <resourcetypes>
> 	<type class="org.opencms.file.types.CmsResourceTypeFolder"
> name="folder" id="0"/>
> 	<type class="org.opencms.file.types.CmsResourceTypePlain"
> name="plain" id="1">
> 		<mappings>
> 			<mapping suffix=".txt" />
> 			<mapping suffix=".html" />
> 			<mapping suffix=".htm" />
> 		</mappings>
> 	</type>
> 	<type class="org.opencms.file.types.CmsResourceTypeBinary"
> name="binary" id="2">
> 		<mappings>
> 			<mapping suffix=".pdf" />
> 			<mapping suffix=".zip" />
> 			<mapping suffix=".class" />
> 			<mapping suffix=".ppt" />
> 			<mapping suffix=".doc" />
> 			<mapping suffix=".xls" />
> 		</mappings>
> 	</type>
> 	<type class="org.opencms.file.types.CmsResourceTypeImage"
> name="image" id="3">
> 		<mappings>
> 			<mapping suffix=".jpeg" />
> 			<mapping suffix=".jpg" />
> 			<mapping suffix=".gif" />
> 			<mapping suffix=".png" />
> 			<mapping suffix=".tif" />
> 			<mapping suffix=".tiff" />
> 		</mappings>
> 	</type>
> 	<type class="org.opencms.file.types.CmsResourceTypeJsp" name="jsp"
> id="4">
> 		<mappings>
> 			<mapping suffix=".jsp" />
> 		</mappings>
> 		<properties>
> 			<property>
> 				<name>export</name>
> 				<value
> type="shared"><![CDATA[false]]></value>
> 			</property>		
> 		</properties>
> 	</type>
> 	<type class="org.opencms.file.types.CmsResourceTypePointer"
> name="pointer" id="5"/>
> 	<type class="org.opencms.file.types.CmsResourceTypeXmlPage"
> name="xmlpage" id="6"/>
> 	<type class="org.opencms.file.types.CmsResourceTypeXmlContent"
> name="xmlcontent" id="7"/>
> 	<type class="org.opencms.file.types.CmsResourceTypeFolderExtended"
> name="imagegallery" id="8">
> 		<param
>
name="folder.class">org.opencms.workplace.galleries.CmsImageGallery</param>
> 		<param
> name="folder.class.params">w:120,h:90,c:dddddd,t:1,r:2</param>
> 	</type>
> 	<type class="org.opencms.file.types.CmsResourceTypeFolderExtended"
> name="downloadgallery" id="9">
> 		<param
>
name="folder.class">org.opencms.workplace.galleries.CmsDownloadGallery</para
> m>
> 	</type>	
> 	<type class="org.opencms.file.types.CmsResourceTypeFolderExtended"
> name="linkgallery" id="10">
> 		<param
> name="folder.class">org.opencms.workplace.galleries.CmsLinkGallery</param>
> 	</type>
> 	<type class="org.opencms.file.types.CmsResourceTypeFolderExtended"
> name="htmlgallery" id="11">
> 		<param
> name="folder.class">org.opencms.workplace.galleries.CmsHtmlGallery</param>
> 	</type>
> 	<type class="org.opencms.file.types.CmsResourceTypeFolderExtended"
> name="tablegallery" id="12">
> 		<param
>
name="folder.class">org.opencms.workplace.galleries.CmsTableGallery</param>
> 	</type>
> 	<type class="com.opencms.legacy.CmsResourceTypeXMLTemplate"
> name="XMLTemplate" id="99"/>					
> </resourcetypes>
> 
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Bozidar Ilievski
> Sent: Tuesday, February 26, 2008 9:12 AM
> To: The OpenCms mailing list
> Subject: Re: [opencms-dev] Can't add folder even though logged in as Admin
> on OpenCMS 6.0
> 
> I use OpenCms7, so i don't know if this is true for OpenCms6.
> 
> In OpenCms7 default resource types are defined in this file: 
> WEB-INF/config/opencms-vfs.xml. Search for <resourcetypes> tag in the
file.
> 
> Some of the modules you install (for example the TemplateOne module) can 
> define new resource types.
> Information about these resource types can be found in 
> WEB-INF/config/opencms-modules.xml file. Also search for <resourcetypes> 
> tags in this file.
> 
> If some of these files is broken (particularly opencms-vfs.xml), than 
> that may be the reason why can choose only two resource types.
> 
> Jarrad Waterloo wrote:
>> I can't add folder even though logged in as Admin on OpenCMS 6.0. My list
> of
>> resource types after clicking the 'New' button consist only of 'Pattern
>> page' and 'JSP'. What ever happened to the other half dozen options? How
> do
>> I get all my resource types back? What factors control what is listed in
> the
>> resource types?
>>
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please
visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
> 

-- 
Bozidar Ilievski | bozidar.ilievski at netcetera.com.mk
phone +389 -2- 30 64 532 | fax +389 -2- 30 79 495
Netcetera | 1000 Skopje | Macedonia | http://netcetera.com.mk

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list