[opencms-dev] Module Export Points
Raúl Lorenzo
raul.lorenzo at altia.es
Tue Feb 27 11:43:44 CET 2007
Hello Jonathan,
I got this by other way. I will explain to you.
I have a module, a put into resources folder all the icons per example.
I add and export point from /system/modules/mymodule/resources to
resources/filetypes/system/modules/mymodule/resources/
and the in opencms-modules.xml <explorertype....> you write,
<explorertype ..... icon="system/modules/mymodule/resources/myicon.gif ... >
... signifies that is the same as you have.
icon= is a relative path to
"http://your_opencms_server:your_port/opencms/resources/filetypes/" see
below.
If you see the properties of the icon with right button mouse you will
see an URL like
"http://your_opencms_server:your_port/opencms/resources/filetypes/system/modules/mymodules/resources/myicon.gif"
This configuration lets you have separated your icons to the opencms
resources in workplace. I didn´t get have stored this icon in other
directory instead {Tomcat-Dir}/webapps/opencms/resources/filetypes/....
Jonathan Woods escribió:
> Raul -
>
>>From memory, I once tried to specify an absolute path for the icon
> attribute, and OpenCms ignored it. That was a while back, but this is
> probably still the case.
>
> The only solution I've found is to upload xmlcontent icon images to the VFS
> folder /system/workplace/resources/filetypes. You can of course either do
> this manually (probably only needs to be done once per instance of an
> OpenCms installation) or automatically (if you are somehow synchronising
> your development assets with your OpenCms installation). In any case,
> you'll then refer to your xmlcontent icon thus:
>
> icon="threat.gif"
>
> rather than by using an absolute path.
>
> Jon
>
> -----Original Message-----
> From: sfdbfoui at host2.scintillance.com
> [mailto:sfdbfoui at host2.scintillance.com] On Behalf Of Raúl Lorenzo
> Sent: 26 February 2007 12:02
> To: The OpenCms mailing list
> Subject: Re: [opencms-dev] Module Export Points
>
> Sorry I forgot this extract from opencms-modules.xml
>
> I need some to load the icon image from a location o my module.
>
> <explorertypes>
> <explorertype name="tipo_prueba_contenido"
> key="fileicon.tipo_prueba_contenido"
> icon="system/modules/es.as/es.altia.TestingCMS/resources/threat.gif"
> reference="xmlcontent">
>
> Raúl Lorenzo escribió:
>> Hello,
>>
>> I am creating a module with new type structured contents, I want
>> include some icons to use in workplace when I need to use a structure
> content type.
>> I think to use export points in my resources module directory, but the
>> images doesn´t export to
>> opencms/resources/filetypes/system/modules/mymodule/resources
>>
>> how do I do this?
>>
>> Thanks in advance
>>
>> _______________________________________________
>> 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
>>
>
> _______________________________________________
> 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
>
>
>
> _______________________________________________
> 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