Just as a side-note:
When you place <cms:adminOnly> around your mainbar,
the preview-swap button will not appear when preview
is enabled, since admin=false at that time.
Will work too:
<cms:adminOnly>
<div>
</cms:adminOnly>
<cms:mainBar />
<cms:adminOnly>
</div>
</cms:adminOnly>
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: woensdag 4 april 2007 15:05
To: [email protected]
Subject: Re: [magnolia-user] <cms:adminOnly> and mainBar
To make it even more silly try:
<cms:adminOnly>
<![CDATA[<div class="nem-mgnl-mainbar">]]>
</cms:adminOnly>
<cms:mainBar paragraph="np-www-page-properties" label="Page
Properties"
adminButtonVisible="true" />
<cms:adminOnly>
<![CDATA[</div>]]>
</cms:adminOnly>
Am Freitag, 30. März 2007 23:24 schrieb Amir Mistric:
> Actually the workaround I suggested will not work
>
> <cms:adminOnly><div class="nem-mgnl-mainbar"></cms:adminOnly>
> <cms:mainBar paragraph="np-www-page-properties" label="Page
> Properties" adminButtonVisible="true" />
> <cms:adminOnly></div></cms:adminOnly>
>
> It is telling me I need to close the div. So it errors out as soon as it
> finds open div has not closed.
>
>
>
> Thanks
>
> Amir
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 30, 2007 5:21 PM
> To: [email protected]
> Subject: [magnolia-user] <cms:adminOnly> and mainBar
>
> Hi
>
>
> Is there a reason why I cannot use <cms:adminOnly> with <cms:mainBar> ?
> If I do something like this and click on the preview button, the bar is
> lost (little square button with ">>")
>
> <cms:adminOnly>
> <cms:mainBar paragraph="np-www-page-properties" label="Page
> Properties" adminButtonVisible="true" /> </cms:adminOnly>
>
>
> Now if you are asking me why whould I want to wrap mainBar into admin
> tag...Here is why:
>
> <cms:adminOnly>
> <div class="custom">
> <cms:mainBar paragraph="np-www-page-properties"
> label="Page
> Properties" adminButtonVisible="true" /> </div>
> </cms:adminOnly>
>
>
> I don't won't the custom div to render in preview mode or in public
> instance...
>
>
> --- There is a workaround but a bit silly :)
> <cms:adminOnly>
> <div class="custom">
> </cms:adminOnly>
> <cms:mainBar paragraph="np-www-page-properties"
> label="Page
> Properties" adminButtonVisible="true" /> <cms:adminOnly> </div>
> </cms:adminOnly>
>
>
>
>
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia.info/en/developer.html
> ----------------------------------------------------------------
>
> ----------------------------------------------------------------
> for list details see
> http://www.magnolia.info/en/developer.html
> ----------------------------------------------------------------
--
Chris Miner * Developer * luxoom gmbh *
Chausseestraße 8 E * 10115 Berlin * Germany *
Fon +49 30 2 85 27 90 * Fax +49 30 2 85 27 939 * [EMAIL PROTECTED] *
www.luxoom.com
Geschäftsführer: Trolly Trojahn; Ulrich Sauerwein
Sitz der Gesellschaft: AG Berlin-Charlottenburg HRB 82969 B
USt.-Nr.: DE 217893254
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------