+++SPAM+++ AW: +++SPAM+++ Re: [opencms-dev] ver 6.0. -- Direct edit buttononhtml pages.

Christopher Ceska chris at usdataweb.net
Thu Sep 8 22:57:40 CEST 2005


Thanks for the response, this was helpful.

Changing from absolute positioning to Relative or Static also works.

-chris

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Kai Schliemann
Sent: Thursday, September 08, 2005 4:27 AM
To: The OpenCms mailing list
Subject: +++SPAM+++ AW: +++SPAM+++ Re: [opencms-dev] ver 6.0. -- Direct edit
buttononhtml pages.

Hi list,

we had the same issue. I found out, when you place your editable area right
after the <body>-Tag everything works fine. It has something to do with the
absolute positioning of the css class "ocms_de_bt".

I found a workaround for that issue, which is not a 100% solution.

This is what I did:
1. I comment out the following lines in
/system/workplace/editors/direct_edit.jsp
...
div.ocms_de_bt {
	visibility: hidden;
	position: absolute;
	z-index: 100;
}
...

2. I copied the css definition from above, inserted it into my templates css
file and modified it as follows
...
div.ocms_de_bt {
	visibility: hidden;
	position: absolute;
	margin-left: -210px;
	margin-top: -93px;
	z-index: 100;
}
...
I added margin-left and margin-top attributes to the definition. The values
equal the distance from the left/top corner of the browser window to the
beginning of the editable element.

I had to copy the css definition to my template's css file. I do not exactly
know why, but I guess the css style has to be defined before the
<body>-tag.

Unfortunately this solution is not 100% firefox compatible.

If someone finds a real solution for this problem I would be very
interested.

Regards

Kai Schliemann
IT-Consultant
____________________________________________

comundus IT-Beratung GmbH
Schüttelgrabenring 3, 71332 Waiblingen

Tel:    +49 (0) 71 51-5 00 28-0   Fax: -99

www.comundus.com  www.comundus-e-quality.com
____________________________________________




-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Christopher Ceska
Gesendet: Mittwoch, 7. September 2005 20:47
An: 'The OpenCms mailing list'
Betreff: RE: +++SPAM+++ Re: [opencms-dev] ver 6.0. -- Direct edit button
onhtml pages.


I am having the same issues - we have a xhtml transitional layout - with 3
direct edit areas.  The direct edit buttons show about 100 pixels to the
right of the editable content areas.

Does anyone have any ideas?  Everything worked fine in RC1.

-chris

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Wolfgang Winzer
Sent: Friday, August 12, 2005 9:21 AM
To: The OpenCms mailing list
Subject: +++SPAM+++ Re: [opencms-dev] ver 6.0. -- Direct edit button on html
pages.

Hi Alexander,

never noticed this behaviour myself, but I had other issues with those
buttons. You can't iterate xml-content over <tr> for example, since
editable=true wraps a <div> element around each, effectively breaking
the table. You can't help this I guess, at least not without changing
the java code that generates the html for editable elements.

In your case, I'd advise to check out the generated html source, maybe
the surrounding <div> breaks something in your page, too.

Good luck
Wolfgang


Alexander Wallace wrote:

>I'll piggy back my question here :)
>
>In a lot of my pages the direct edit button ends up in wierd places, a lot
of
>the times far from where the element they edit is...
>
>How can i move the direct edit button closer to it's element?
>
>Thanks!
>
>On Friday 12 August 2005 07:39 am, Xavier Ottolini wrote:
>
>
>>It works !
>>Thanks Wolfgang !
>>
>>Xavier
>>
>>Wolfgang Winzer a écrit :
>>
>>
>>
>>>Hi Xavier,
>>>
>>>there are (at least) three requirements:
>>>
>>>a) <cms:editable/> tag was placed in your jsp
>>>b) <cms:include ... editable=true/> attribute set for your include
>>>c) you are logged in with sufficient rights (not sure what exactly but
>>>surely more than guest)
>>>
>>>Hope that helps
>>>Wolfgang
>>>
>>>Xavier Ottolini wrote:
>>>
>>>
>>>
>>>>Hi all,
>>>>
>>>>I installed OpenCms 6.0 on a tomcat 4 server
>>>>
>>>>I created a simple web site with a JSP template and HTML pages.
>>>>
>>>>The direct edit button is not visible on my pages. But it is visible
>>>>on the OpenCms documentation included on the defauft site.
>>>>
>>>>Why ?
>>>>Is it necessary to add a parameter somewhere ?
>>>>
>>>>Regards,
>>>>
>>>>--
>>>>Xavier Ottolini
>>>>Développeur multimédia
>>>>
>>>>Adelis
>>>>37, rue d'Engwiller
>>>>67350 La Walck
>>>>France
>>>>Téléphone : +33 (0) 3 88 72 29 10
>>>>Télécopie : +33 (0) 3 88 72 29 19
>>>>http://www.adelis.com
>>>>
>>>>
>>>>
>>>>------------------------------------------------------------------------
>>>>
>>>>
>>>>
>>>>_______________________________________________
>>>>This mail is send to you from the opencms-dev mailing list
>>>>To change your list options, or to unsubscribe from the list, please
>>>>visit
>>>>http://mail.opencms.org/mailman/listinfo/opencms-dev
>>>>
>>>>
>>>>
>>_______________________________________________
>>This mail is send to you from the opencms-dev mailing list
>>To change your list options, or to unsubscribe from the list, please visit
>>http://mail.opencms.org/mailman/listinfo/opencms-dev
>>
>>
>>
>
>
>_______________________________________________
>This mail is send to you from the opencms-dev mailing list
>To change your list options, or to unsubscribe from the list, please visit
>http://mail.opencms.org/mailman/listinfo/opencms-dev
>
>
>



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list