In an Override Project, I need to know, if current Content Object is overridden or not. If so, customer can change the Value.

Something like that: ivy.cms.findContentObjectValue(String,java.util.Locale).isOverride()

Exists a way, how I can get this information?

Thank you very much in advance!

Cheers Andreas

asked 21.01.2016 at 13:32

Andreas's gravatar image

Andreas
(suspended)
accept rate: 0%

edited 21.01.2016 at 13:33


You could find out if it was form the cms you searched in or not:

ivy.cms.findContentObjectValue(String,java.util.Locale).getContentManagementSystem() == ivy.cms

But with this solution you do not find out if it was really overridden or not, but may be this is already enough?

link

answered 22.01.2016 at 09:01

Christian%20Strebel's gravatar image

Christian St... ♦
3.2k31338
accept rate: 88%

Hi Christian

Thank you for your answer.

String pmv = ivy.cms.findContentObjectValue(String,java.util.Locale).getProcessModelVersion().toString()

With this Information it is possible to determine, from which project the content comes from.

if(!pmv.matches(".*foo_bar\\$.*")) {
//ivy.log.info("content object from override");

In that case, the user can change the Value in his own cms.

Cheers Andreas

link

answered 22.01.2016 at 09:47

Andreas's gravatar image

Andreas
(suspended)
accept rate: 0%

edited 29.03.2016 at 09:07

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×37

Asked: 21.01.2016 at 13:32

Seen: 2,444 times

Last updated: 29.03.2016 at 09:07