Hi Sergiu,
On Sep 9, 2009, at 8:28 AM, sdumitriu (SVN) wrote:
Author: sdumitriu
Date: 2009-09-09 08:28:17 +0200 (Wed, 09 Sep 2009)
New Revision: 23368
Modified:
platform/skins/trunk/colibri/src/main/resources/colibri/
contentview.vm
Log:
XSCOLIBRI-68: Duplicate titles on some pages
Fixed on most pages.
Modified: platform/skins/trunk/colibri/src/main/resources/colibri/
contentview.vm
===================================================================
--- platform/skins/trunk/colibri/src/main/resources/colibri/
contentview.vm 2009-09-09 06:07:41 UTC (rev 23367)
+++ platform/skins/trunk/colibri/src/main/resources/colibri/
contentview.vm 2009-09-09 06:28:17 UTC (rev 23368)
@@ -33,7 +33,6 @@
#set($content =
$content.trim().substring($content.trim().indexOf($util.newline)))
#end
#end
- ## #set($renderedContent =$cdoc.getRenderedContent())
#set($renderedContent = $cdoc.getRenderedContent($content,
$cdoc.syntaxId))
#end
<div
id="document-title"><h1>$tdoc.displayTitle</h1></div>
@@ -42,7 +41,7 @@
##
## Display the rendered content
##
-$renderedContent
+$renderedContent.replaceFirst('^[ \n\r\t]*+<h1.*?</h1>', '')
I'm not sure I understand the algorithm.
Also you mention "most pages". Does it mean there are cases where this
is not working?
Thanks
-Vincent
PS: We're also missing the config flag.