Hi Magnolians,
I would like to configure the defaultBaseUrl parameter during the
application bootstrap.
I found this way, but I don't like so much because I have to modified
the Magnolia framework code.
I create a new variable in the magnolia.properties ( in
${webProject}/WEB-INF/bootstrap/common/ , .../author/, .... ), like
this:
magnolia.server.defaultBaseUrl = http://www.address.com/
I put this new row in the
info.magnolia.setup.CoreModuleVersionHandler.java file:
new CheckOrCreatePropertyTask("defaultBaseUrl property", "Adds the new
defaultBaseUrl property with a default value.", "config", "/server",
"defaultBaseUrl",
SystemProperty.getProperty("magnolia.server.defaultBaseUrl")),
and I take off this one:
new ArrayDelegateTask("defaultBaseUrl property",
new NewPropertyTask("defaultBaseUrl property", "Adds the new
defaultBaseUrl property with a default value.", "config", "/server",
"defaultBaseUrl", "http://localhost:8080/magnolia/"),
new WarnTask("defaultBaseUrl property", "Please set the
config:/server/defaultBaseUrl property to a full URL to be used when
generating absolute URLs for external systems.")
),
Does exist a better way?
Thanks in advance,
Luca
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------