AW: [opencms-dev] I need scroll bar on an editable page

Kai Schliemann k.schliemann at comundus.com
Thu Jul 20 09:41:23 CEST 2006


Hi Vikas,

do I understand you right, that you have a page with two (or more) sections;
One is the right_text section which should be scrollable; or meaning that
you want it to be of a certain size and if the content overflows the size a
scrollbar should occur?
If so then you can do this with an iframe but the problem is, that OpenCms
treads content loaded into an iframe as external content and therefore it is
not possible to access your content properly.

What you could use instead of an iframe is a css-container with the
attribute overflow: scroll or overflow: auto.

Hope this helps.

Regards

Kai

  -----Ursprungliche Nachricht-----
  Von: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org]Im Auftrag von Vikas Jain
  Gesendet: Donnerstag, 20. Juli 2006 09:18
  An: 'The OpenCms mailing list'
  Betreff: RE: [opencms-dev] I need scroll bar on an editable page







----------------------------------------------------------------------------
--

  From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Vikas Jain
  Sent: Thursday, July 20, 2006 12:39 PM
  To: opencms-dev at opencms.org
  Subject: [opencms-dev] I need scroll bar on an editable page



  Hi List,

  I want to use a simple editable page on which I can use scroll bar.For
that I can not use tepmplate because as I think we can not make a template
editable by using include tag.As I know we can include a file and make that
editable.

  For this i create a jsp page (rightText.jsp) on which I am using
<cms:include file="right_text" element="body" editable="true"/>

  This right.text is a simple html page.And I am using this jsp page on my
index page like <iframe src="rightText" name="myiframe2" style="width:542px;
height:390px; position:static;"  scrolling="yes"  frameborder="0"></iframe>

  I am using iframe for using scrolling, which is my need.

  But when I run index.jsp and click on editable then the editable window is
opened but when I click on save and exit button then it will not come back
on my index page,it comes on the rightText.jsp page while I need to come
back it on my index page.

  If I am using

  <iframe name="myiframe2" style="width:542px; height:390px;
position:static;"  scrolling="yes"  frameborder="0"></iframe>

  <cms:include file="right_text" element="body" editable="true"/>

  On my index.jsp then it will create some space problem and also not gives
the scroller.



  Is it possible that while  using <cms:include property="template"
element="head"  /> we can make this head template element editable?

  If yes then how?



  Any help would be highly appreciated.





  Regards,

  Vikas


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060720/81740aa9/attachment.htm>


More information about the opencms-dev mailing list