[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Configure Layout Editor to keep stable ids  XML
Forum Index -> Development
Author Message
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

(from mail conversation)

By default all components receive some unique id within the Layout Editor - starting with "g_". And by default this id is starting with "g_0" with the first component, "g_1" with the next component, etc.

Disadvantage: when changing the component structure (e.g. adding a component at the very beginning), then all of the components receive a new id. When checking in the layout definition to SVN/Git/... then you will see a lot of changed ids as consequence.

You may define the project parameter "keepgeneratedids" as "true" to avoid this. So edit you project connfiguration...

. in the Laoyut Editor: press "Configuration..." below the project combo box, then open "Project Setup"
. wihtout Layout Editor: edit ".ccproject" in the root directory of your project

...and update the file in the following way:
Code:
 <project 
     ...
     keepgeneratedids="true"
     ...>
 
     ...
     ...
 
 </project>


When having changed the .ccproject file directly, then reload the Layout Editor (F5).

Björn Müller, CaptainCasa GmbH
brandt

Power User
[Avatar]

Joined: 12/03/2008 16:37:34
Messages: 45
Location: Bern
Offline

Hi Captain,

which captain casa version is necessary to use this fantastic feature?

Regards
Joe
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Hi Joachim,

I checked in the versioning system back to Jan 2015 - and there it was already contained... ;-)

Regards, Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team