Update Compound-field via Workflow Manager

24 views
Skip to first unread message

HippoNono

unread,
Aug 16, 2017, 1:51:41 PM8/16/17
to Hippo Community
Is it possible to update a compound field via the workflow manager and publish it directly?

Marijan Milicevic

unread,
Aug 16, 2017, 2:08:55 PM8/16/17
to hippo-c...@googlegroups.com
On Wed, Aug 16, 2017 at 7:44 PM, HippoNono <ronald...@ndcmediagroep.nl> wrote:
Is it possible to update a compound field via the workflow manager and publish it directly?


a compound is always part of the document, so, any publish action on document itself will publish  compound too,,
so, answer is yes and no... ;-)
cheers
marijan

 
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-community@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.

ronald...@ndcmediagroep.nl

unread,
Aug 18, 2017, 7:31:26 AM8/18/17
to Hippo Community
What is the best way to update the properties in a compound field? I created a bind method in both the compound class and the document class. The bind method in the compound class is updating the properties and in the bind method i'm trying to update the compound field, but this isn't working. Is there another way to change the properties of the compound field or assign a new compound-object to the field via the workflow manager?

Op woensdag 16 augustus 2017 20:08:55 UTC+2 schreef marijan milicevic:
On Wed, Aug 16, 2017 at 7:44 PM, HippoNono <ronald...@ndcmediagroep.nl> wrote:
Is it possible to update a compound field via the workflow manager and publish it directly?


a compound is always part of the document, so, any publish action on document itself will publish  compound too,,
so, answer is yes and no... ;-)
cheers
marijan

 
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-c...@googlegroups.com

RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.

Marijan Milicevic

unread,
Aug 18, 2017, 8:09:32 AM8/18/17
to hippo-c...@googlegroups.com
On Fri, Aug 18, 2017 at 1:06 PM, <ronald...@ndcmediagroep.nl> wrote:
What is the best way to update the properties in a compound field? I created a bind method in both the compound class and the document class. The bind method in the compound class is updating the properties and in the bind method i'm trying to update the compound field, but this isn't working. Is there another way to change the properties of the compound field or assign a new compound-object to the field via the workflow manager?


can you be more precise about what actually doesn't work? (e.g getting errors or is stuff not updated?)
here is an example of changing compound [1], relevant part is:

if(node.hasNode("demosite:commentlink")) {
                commentLink = node.getNode("demosite:commentlink");
            } else {
                commentLink = node.addNode("demosite:commentlink",
                                           "demosite:commentlink");
            }
 commentLink.setProperty("hippo:docbase", commentToUuidOfHandle);


etc..
HTH, cheers
marijan








Op woensdag 16 augustus 2017 20:08:55 UTC+2 schreef marijan milicevic:
On Wed, Aug 16, 2017 at 7:44 PM, HippoNono <ronald...@ndcmediagroep.nl> wrote:
Is it possible to update a compound field via the workflow manager and publish it directly?


a compound is always part of the document, so, any publish action on document itself will publish  compound too,,
so, answer is yes and no... ;-)
cheers
marijan

 
--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-c...@googlegroups.com
RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-communi...@googlegroups.com.
Visit this group at https://groups.google.com/group/hippo-community.
For more options, visit https://groups.google.com/d/optout.

--
Hippo Community Group: The place for all discussions and announcements about Hippo CMS (and HST, repository etc. etc.)
 
To post to this group, send email to hippo-community@googlegroups.com

RSS: https://groups.google.com/group/hippo-community/feed/rss_v2_0_msgs.xml?num=50
---
You received this message because you are subscribed to the Google Groups "Hippo Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hippo-community+unsubscribe@googlegroups.com.

ronald...@ndcmediagroep.nl

unread,
Aug 18, 2017, 7:26:30 PM8/18/17
to Hippo Community
Thanks, it works with that code snippet.

Op vrijdag 18 augustus 2017 14:09:32 UTC+2 schreef marijan milicevic:
Reply all
Reply to author
Forward
0 new messages