[opencms-dev] DownloadGalleryWidget: Change (selected) default gallery
Xabier.Legasa at panoptic.biz
Tue Feb 9 14:31:12 CET 2010
Thanks for the fast answer:) Im using OpenCMS 7.0 but its good to know this feature for if we upgrade.
Anyway, I will have to try to solve the problem in another way, since I need a startup gallery to be different depending on which page the user is. So I will need to specify in the directedit link I guess. Here my idea:
This is the generated code for the DIRECT EDIT button:
button_edit: 'Direct Edit',
editortitle: 'Editing (new resource)'
Maybe I could try this
instead of this
Or add a new variable, but the goal would be to let know editor.jsp about this path.
And then in this jsp: http://my-intranet/system/workplace/editors/editor.jsp
try to get that variable and send it to the gallery widget:
This is just an idea. Do you think it would work? Maybe its too complicated?
From: Rüdiger Kurz [mailto:r.kurz at alkacon.com]
Sent: 09 February 2010 14:06
To: The OpenCms mailing list
Cc: Legasa Xabier
Subject: Re: [opencms-dev] DownloadGalleryWidget: Change (selected) default gallery
Since Version 7.5.0 it is possible for all gallery-widgets to setup a
global start-gallery and a starting point.
Therefore you have to modify the the node <layout> in the xsd-schema
with an optional attribute.
The configuration for a download gallery could look like the following
<xsd:element name="Download" type="OpenCmsVfsFile" />
<layout element="Download" widget="DownloadGalleryWidget"
A configuration for e link gallery could look like:
<xsd:element name="Link" type="OpenCmsVfsFile" />
<layout element="Link" widget="LinkGalleryWidget"
While defining a category the first "/" has not to be at the beginning.
Am 09.02.2010 13:49, schrieb Legasa Xabier:
> Hi everybody !
> Does anybody know *how could I configure the default selected gallery*
> in a *DownloadGalleryWidget* dialog ? (used to upload a file into a
> download gallery)
> PRACTICAL EXAMPLE:
> User /John/ its allowed to upload stuff to gallery //gallery/A/ and
> //gallery/B/ . At this moment selected gallery at
> *DownloadGalleryWidget* dialog by default is always A. How can I make
> that from the page /documents.html/ the selected gallery is A and from a
> different page /news.html/ the default selected gallery in the widget is B ?
> In the direct-edit feature, I edit a lets say */personalDoc/* which
> layout is a DownloadGalleryWidget. But because the user is allowed to
> upload stuff to different galleries, I need to specify in the
> direct-edit button or somewhere, which is the default gallery for this
> resource. This is my */personalDoc.xsd /*file*/:/*
> <xsd:element name="Resource" type="OpenCmsVfsFile" minOccurs="1"
> <layout element="Resource" widget="*DownloadGalleryWidget*"/>
> Any idea there ?
> 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
Alkacon Software GmbH - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
More information about the opencms-dev