<div>
<div id="webhomeblogdisplay" style="float:left; width: 50%;">
<div style="padding-right:20px;">
<h2 class="heading-1-1-1"> Blog <a href="$xwiki.getURL("Main.BlogRss ", "view", "xpage=rdf")" style=""><img src="$xwiki.getSkinFile("icons/black-rss-mini.png")"></a></h2>
#set($nbstart = $request.nbstart)
#set($category = "")
#set($nbitems = "10")
#includeMacros("Blog.Macros")
</div>
</div>
<div id="webhomeNewsdisplay" style="float:left; width: 50%;">
<div style="padding-left: 20px;">
<h2 class="heading-1-1-1">Recent changes<a href="$xwiki.getURL(" Main.WebRss", "view", "xpage=rdf")")" style=""><img src="$xwiki.getSkinFile("icons/black-rss-mini.png")"></a></h2>
#set ($sql = "where 1=1 order by doc.date desc")
#set($showdata = 1)
#if(!$nb)
#set($nb = 10)
#end
#set($formatDate = "yyyy MMMM dd, HH:mm")
#set ($list = $xwiki.searchDocuments($sql , $nb , 0))
<ul>
#foreach ($item in $list)
#set($troubi ="non")
#if ($xwiki.hasAccessLevel("view", $context.user, "${context.database}:${item}"))
#set($bentrydoc = $xwiki.getDocument($item))
#set($cclass = $xwiki.getDocument("XWiki.XWikiComments").getxWikiClass())
#set($comment = $cclass.newObject())
#if($xwiki.getWebPreferenceAsInt("commentsorder",1)==0)
#set($comments = $bentrydoc.getComments())
#else
#set($comments = $bentrydoc.getComments(false))
#end
#set($createur = $xwiki.getUserName($bentrydoc.author) )
<li>
#if($comments.size()>0)
#set($i = 0)
#set($cobj = $comments.get($i))
#set($comment = $bentrydoc.display("comment", "view", $cobj))
#set($date = $cobj.getXWikiObject().get("date").value)
#if($date)
#set($date2 = $!xwiki.formatDate($date,"yyyy MM dd HH:mm:ss") )
#end
#if($bentrydoc)
#set($date1 = $!xwiki.formatDate($!bentrydoc.date,"yyyy MM dd HH:mm:ss") )
#end
#if($date1.equals($date2) )
[$bentrydoc.name>${bentrydoc.web}.$bentrydoc.name] <em>- 1 new comment</em>
#set($troubi ="oui")
#set($desc = $cobj.getXWikiObject().get("comment").value)
#else
[$bentrydoc.name in $bentrydoc.web>${bentrydoc.web}.$bentrydoc.name]
#end
#else
#set($comment = "")
[$bentrydoc.name in $bentrydoc.web>${bentrydoc.web}.$bentrydoc.name.replaceAll("@","%40")]
#end
$xwiki.formatDate($bentrydoc.date,"yyyy MMM dd") at $xwiki.formatDate($bentrydoc.date,"HH:mm")
#if($troubi =="oui")
#set($createur = $xwiki.getUserName($cobj.author) )
#end
#if ($createur == "XWikiGuest")
Guest
#else
$createur
#end
</li>
#end
#end
</ul>
</div>
</div>
<div style="clear:both; margin-bottom: 40px;"><!-- -->
</div>
</div>
Hi,
You should first have a look to your pages (view source) to try to find out WHERE there is a missing </div>... by looking at the difference between page that has a problem and the page that works. If it's inside one of your docs, then edit the doc, if it's inside some generated content, then come back, its a xwiki bug...
Regards, Gilles,
On 2 mars 07, at 15:14, Oskar E. Skeide wrote:
Yes, I found the document contents in xwiki.xwikiobjects.XWD_CONTENT, but this field seem to include only the content ( content DIV or something). I need to find out from where the rest of the code ( includes: top, side, bottom) is generated.
On 3/1/07, Ricardo Rodríguez - Your XEN ICT Team < webmaster@xen.net> wrote:Hi, Oskar,Completely new to xWiki I'm afraid I can't be of much help. But I think there is a clear thing: documents are in the database!
HTH,Ricardo--
Ricardo Rodríguez
Your XEN ICT TeamOK, I guess I just have to edit the document then, to ensure a proper formatting. But when I choose the "Edit" option it seems like it's only the content DIV I can edit. I guess I have to find the document in my filesystem and edit it from there. Problem is, I can't find that document. Where are the WXiki documents stored ? I cannot find them anywhere in [TOMCAT_HOME]/webapps/xwiki/
--
You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto: sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
if(!Coffee.Exists)
{
me.Dispose();
throw new NullCoffeeException();
}
--You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list.To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.orgFor general help: mailto:sympa@objectweb.org?subject=helpObjectWeb mailing lists service home page: http://www.objectweb.org/wws--Gilles SérassetGETA-CLIPS-IMAG (UJF, INPG & CNRS)BP 53 - F-38041 Grenoble Cedex 9Phone: +33 4 76 51 43 80Fax: +33 4 76 44 66 75
--
You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list.
To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto: sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws