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

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?


answered 22.01.2016 at 09:01

Christian%20Strebel's gravatar image

Christian St... ♦
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\\$.*")) {
//"content object from override");

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

Cheers Andreas


answered 22.01.2016 at 09:47

Andreas's gravatar image

accept rate: 0%

edited 29.03.2016 at 09:07

Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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



Asked: 21.01.2016 at 13:32

Seen: 2,298 times

Last updated: 29.03.2016 at 09:07