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
----------------------------------------------------------------

Reply via email to