9

In order to configure Experience Manager, you add a SiteEditURL to the parameters of the "Enable inline editing for Page" TBB. This refers to your content manager server in a specific environment. Obviously, you don't want your production site to be referencing your development system, and this is not something that by default the content porter would be expected to take care of.

What is the best way of managing this?

3 Answers 3

5

You don't have to specify the SiteEdit URL as a parameter on the TBB. You can simply have a common TBB push a value into the package with the same name, loaded from wherever you like - a config file, or more practical in scaled out scenarios, a environment specific configuration component.

The Get System Components TBB on Tridion World can be used to do this, just make sure you have a component with XML field name matching the SiteEdit TBB parameter name.

3

The best thing I've found to do is to wrap this TBB in a Compound TBB and use the latter in all your CTs instead of adding the former directly.

e.g. call this wrapper something like "Enable Inline Editing Config Wrapper". You would then set your SiteEditURL inside the wrapper and the setting would therefore persist across all templates that use the wrapper.

So when it comes to DTAP, you only have to maintain/change the SIteEditURL in one place after content porting.

2
  • 2
    I'd vote up, but can't separate the answer from the joke. ;-) Nov 11, 2015 at 14:01
  • edited the joke out. Nov 11, 2015 at 20:05
2

I like to have configuration files on my server - for a static publishing solution you could store the values in the contentmanager config files, or in a dd4t solution it could be in the extended classpath in a properties file.

1
  • I would also add that we could create machine specific variables that can be used in the CMS side, apart from using the Tridion CM config files.
    – Shiva
    Nov 11, 2015 at 16:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.