OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | exoplatform List | April 2007 Index

<--  Date Index  --> <--  Thread Index  -->

Re: [exoplatform] [exo-ecm] documents view


Pham Xuan Hoa wrote:

jeremie garcia wrote:


hi community,

I would like to know what should I modify or define in order to change
the way a document is dysplayed with the content browser.
for example I just would like to see the document content and skip the
remaining parts: rate, vote, etc..

thanks



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


--
You receive this message as a subscriber of the exoplatform@xxxxxxxxxxxxx mailing list.
To unsubscribe: mailto:exoplatform-unsubscribe@xxxxxxxxxxxxx
For general help: mailto:sympa@xxxxxxxxxxxxx?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

Please look on your document view template. By default, the document
view template have vote & comment info, you can remove it for template.
Example, this is the code exo:article view1's template
.....
<div style="clear: both;"><span></span></div>
<div style="overflow:hidden;width:99.5%">
<div style="float:right; width:220px; margin-top:
10px ">
/_* #parse("jcr:/jcr:system/exo:ecm/templates/mix:votable/views/view1") *_/
</div>
</div>
</div>
</div>
</div> <div class="BottomLeftCornerDecorator">
<div class="BottomRightCornerDecorator">
<div class="BottomCenterDecorator"><span></span></div>
</div>
</div> <div style="margin:5px">
*/_#parse("jcr:/jcr:system/exo:ecm/templates/mix:commentable/views/view1")


  _      /*
   </div>
</div>

please remove these line. See more in ECMAdmin portlet/Manage
Tempalte/exo:article



thanks for the information, this is what I was looking for.
but theire is still content that I didn't succed to remove: my template contains only this:


<style>
  .UIArticle {
      background-color: white;
  }   </style>

#set($node = $uicomponent.getNode())
#set($relations = $uicomponent.getRelations())
#set($attachments = $uicomponent.getAttachments())

<div class="UIArticle">

#if($uicomponent.hasPropertyContent($node, "exo:summary"))
<div class="EventFrame" style="float: left; width: 100%"> <div class="FrameContent">
$node.getProperty("exo:summary").getString()
</div>
</div>
#end <div style="clear: both;"><span></span></div>
#if($uicomponent.hasPropertyContent($node, "exo:text"))
<div class="EventFrame" style="float: left; width: 100%">
<div class="FrameContent">
$node.getProperty("exo:text").getString()
</div> </div> #end
<div style="clear: both;"><span></span></div>


</div>
and theire is still two frames element.style that define a border , etc.. I don't know from which file or css they come from.


maybe it comes from the content browser css, isn't it?

thanks a lot









<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.