[opencms-dev] How to save OpenCMS content to external locations? (Paul Inge-Farstad)

Michael Emmerich m.emmerich at alkacon.com
Wed Apr 19 14:47:01 CEST 2017


Clement,

if you know the content element that you edited (e.g. the content 
section, link sequence, ...), you can use the content relation engine to 
find out on which container pages this element is used.

If the content element is used on multiple container pages, you would 
get multiple results of course.  The method "getRelationsForResource" in 
the CmsObject will give you a list of CmsRelations which gives you the 
info where this element is used.

Kind regards,

Michael


Am 19.04.2017 um 11:57 schrieb Clement Wee:
> Hi Paul,
>
> Thanks again!
>
> I don't get any other emails except the digests, so I reply to the 
> digests I find.
>
> I reasoned up to the point you mentioned. But the resource modified in 
> my case would be the piece of content in the page, not necessarily the 
> page itself.
>
> Thus, I need an additional step to get the url of the page the content 
> is on, so I can save to the database. Or else I need some way to set 
> the default save folder of the content to match the sitemap structure?
>
> Regards,
> Clement
>
> On Tue, Apr 18, 2017 at 6:00 PM, <opencms-dev-request at opencms.org 
> <mailto:opencms-dev-request at opencms.org>> wrote:
>
>     Send opencms-dev mailing list submissions to
>     opencms-dev at opencms.org <mailto:opencms-dev at opencms.org>
>
>     To subscribe or unsubscribe via the World Wide Web, visit
>     http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>     <http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev>
>     or, via email, send a message with subject or body 'help' to
>     opencms-dev-request at opencms.org
>     <mailto:opencms-dev-request at opencms.org>
>
>     You can reach the person managing the list at
>     opencms-dev-owner at opencms.org <mailto:opencms-dev-owner at opencms.org>
>
>     When replying, please edit your Subject line so it is more specific
>     than "Re: Contents of opencms-dev digest..."
>
>
>     Today's Topics:
>
>        1. Adding Function to ADE-Edit-Bar (Patric Dosch)
>
>
>     ----------------------------------------------------------------------
>
>     Message: 1
>     Date: Tue, 18 Apr 2017 01:56:08 -0700 (MST)
>     From: Patric Dosch <patric.dosch at virtual-identity.com
>     <mailto:patric.dosch at virtual-identity.com>>
>     To: opencms-dev at opencms.org <mailto:opencms-dev at opencms.org>
>     Subject: [opencms-dev] Adding Function to ADE-Edit-Bar
>     Message-ID: <1492505768774-26826.post at n3.nabble.com
>     <mailto:1492505768774-26826.post at n3.nabble.com>>
>     Content-Type: text/plain; charset=us-ascii
>
>     Hey list, I need to add a new Icon - with functionality :) - to the
>     ADE-Edit-Bar.
>     <http://opencms.996256.n3.nabble.com/file/n26826/ade-edit-bar.png
>     <http://opencms.996256.n3.nabble.com/file/n26826/ade-edit-bar.png>>
>
>
>     Is this possible via an extension like  adding context menu items
>     <http://documentation.opencms.org/opencms-documentation/extending-opencms/adding-context-menu-items-in-the-explorer/
>     <http://documentation.opencms.org/opencms-documentation/extending-opencms/adding-context-menu-items-in-the-explorer/>>
>     ?
>
>     Probably the appropriate place must be patched.
>     Has anyone ever done and knows where I can insert my functionality.
>
>     Regards, Patric
>
>
>
>     --
>     View this message in context:
>     http://opencms.996256.n3.nabble.com/Adding-Function-to-ADE-Edit-Bar-tp26826.html
>     <http://opencms.996256.n3.nabble.com/Adding-Function-to-ADE-Edit-Bar-tp26826.html>
>     Sent from the OpenCMS mailing list archive at Nabble.com.
>
>
>     ------------------------------
>
>     _______________________________________________
>     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/cgi-bin/mailman/listinfo/opencms-dev
>     <http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev>
>
>     End of opencms-dev Digest, Vol 285, Issue 1
>     *******************************************
>
>
>
>
> _______________________________________________
> 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/cgi-bin/mailman/listinfo/opencms-dev
>
>
>

-- 
Alkacon Software GmbH & Co. KG - The OpenCms Experts
Michael

  
http://www.alkacon.com
http://www.opencms.org


Geschäftsführer: Alexander Kandzior, Amtsgericht Köln, HRB 54613

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170419/739d96fe/attachment.htm>


More information about the opencms-dev mailing list