So I assume the js page you've mentioned isn't decorated (or you'd
have realized something was wrong). Maybe check the neighbor thread
("safari 4"), where Joshua mentions a few js files that are apparently
not served with the proper mime-type; maybe Sitemesh decorates those,
causing a whole lot of trouble.
Depending on your decorator/configuration, it might also be that
Sitemesh tries to reorganize the script tags, for instance. If I
remember correctly from when I used it before, it's sort of its
default behaviour, because you'll usually want to insert stuff in the
<head> tags. Can you disable that? Or bypass it altogether for the
whole /.magnolia and /.resources, for instance ? I'm not sure you've
explained why you wanted to decorate the adminCentral in the first
place (although I'd be curious to make this work, it might be
interesting the know the use case too;))
-g
On Jun 16, 2009, at 11:03 PM, Gavin Donald wrote:
I am sorry, I just realised that I did not fully reply to your
questions. I have now managed to disable the compression in Magnolia.
The /.magnolia/pages/configuration.html does get decorated as does
/.magnolia/trees/website.html but website.html does not display any of
the web pages. It is as if the JavaScript is not running but I can
access it at:
/.magnolia/pages/javascript.js
.resources/admin-js/dialogs/dialogs.js
clicking a button such as 'New page' gives the error in the JavaScript
console:
Error: mgnlFunctionBar is undefined
Source file: javascript:mgnlFunctionBar.clicked%20('new')
Line: 1
This is the only time a JavaScript error is thrown.
Grégory Joseph wrote:
Is your sitemesh filter before or after Magnolia's? This might be
due to
how requests that end up in the admincentral servlets treat the
filter
chain - can you try to see if /.magnolia/trees/website.html gets
decorated, for example ? Or a simpler page such as
/.magnolia/pages/configuration.html ?
The fact that the login form does not get decorated might be due to
the
fact that sitemesh treats pages differently depending on the http
response code ? (i really don't know if it does, just wild guessing)
-g
On Jun 16, 2009, at 12:39 PM, Gavin Donald wrote:
Thanks for taking the time to reply.
I am trying to get AdminCentral decorated with SiteMesh. Currently
AdminCentral is not decorated at all. I took a look at the source
and
see that past the login screen a single iframe is used. However, the
login screen does not seem to use frames and it still is not
decorated.
I added the following to my sitemesh.xml file:
<mapper
class
="com.opensymphony.module.sitemesh.mapper.FrameSetDecoratorMapper">
<param name="decorator" value="prosoc-cms-admin" />
</mapper>
Where 'prosoc-cms-admin' is the name of the decorator in the
decorator.xml file. My web.xml uses:
<filter>
<filter-name>sitemesh</filter-name>
<filter-class>com.opensymphony.sitemesh.webapp.SiteMeshFilter</
filter-class>
</filter>
<filter-mapping>
<filter-name>sitemesh</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
I am not sure why AdminCentral does not get decorated. Any
suggestions
are certainly welcome.
Grégory Joseph wrote:
Hi Gavin,
Any specifics on what the problem(s) is/are ? What are you trying
to
achieve specifically ? I suppose you've noticed the admincentral is
built with frames.. and I seem to remember Sitemesh had frame-
specific
features/configuration, did you check that ?
-g
On Jun 14, 2009, at 4:56 PM, Gavin Donald wrote:
I have added magnolia onto an existing web app so that it can
control a
part of the site. The site contains other applications as well
(blog,
forum etc) and so Sitemesh is used for decoration. I have added
SiteMesh
to the Magnolia instances and it works perfectly for the
'create' pages
in AdminCentral and also for the public instance. I have not been
successful in getting SiteMesh to decorate the actual AdminCentral
itself though (either public or author) and can't think of any
reason
why. The SiteMesh decorator is simply:
<decorator name="prosoc-cms" page="decorator-prosoc-cms.jsp">
<pattern>/*</pattern>
</decorator>
Does anyone have any suggestions or has can say they have
successfully
managed to decorate AdminCentral?
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-
cms.com>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------