It seems as the WYSIWYG editor causes this. When you enable center alignment,
it adds a div, below showed, which is never closed. 

<div style="text-align: center">


Dicheva, Darina wrote:
> 
> Hande,
> 
>  
> 
> You got the code validated, right? Perhaps you could also send the
> report from the validator ...
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[email protected]] On Behalf
> Of Hande Aksac
> Sent: Monday, October 29, 2007 2:24 PM
> To: XWiki Users
> Subject: Re: [xwiki-users] Navigation Panel Displays in Different
> Locationof the Page
> 
>  
> 
>  
> 
> Thank you for your reply. However, even though I used a validation tool,
> I still could not spot where the problem might be.  I was wondering if
> you could help me with the code below so that the navigation panel will
> not display in different locations on the Blog WebHome page? Thank you. 
> 
>  
> 
> Hande
> 
>  
> 
> This is the code behind Blog.Macros:
> 
>  
> 
> #macro(blog $category $nbitems $nbstart)
> #if(!$maxchars)
> #set($maxchars = 400)
> #end
> <div class="hfeed">
> #if($category=='')
> #set ($sql = ", BaseObject as obj where obj.name=doc.fullName and
> obj.className='XWiki.ArticleClass' and
> obj.name<>'XWiki.ArticleClassTemplate' order by doc.creationDate desc")
> #else
> #set ($sql = ", BaseObject as obj, DBStringListProperty as prop join
> prop.list list where obj.name=doc.fullName and
> obj.className='XWiki.ArticleClass' and
> obj.name<>'XWiki.ArticleClassTemplate' and obj.id=prop.id.id and
> prop.id.name='category '  and list='${category}' order by
> doc.creationDate desc")
> ## TODO: feed category
> #end
> #set($cdate = "")
> #set($inbitems = $xwiki.parseInt($nbitems))
> #set($inbstart = $xwiki.parseInt($nbstart)) 
> #foreach ($item in $xwiki.searchDocuments($sql, $inbitems, $inbstart))
> #set($bentrydoc = $xwiki.getDocument($item))
> #if($bentrydoc.fullName == $item)
> #set($bentryobj = $bentrydoc.getObject("XWiki.ArticleClass "))
> #set($creationDate = $xwiki.formatDate($bentrydoc.creationDate, "MMMM
> dd, yyyy"))
> #if($cdate!=$creationDate)
> <div class="article_date">$creationDate</div>
> #set ($cdate = $creationDate) 
> #end
> <div class="hentry">
> <h4 class="heading-1-1-1 entry-title">$bentrydoc.display("title","view",
> $bentryobj)</h4>
> <div class="article_content entry-summary"> 
> 
> #set($content = $bentrydoc.display("extract", "view", $bentryobj))
> #if($content=="")
> #set($content = $bentrydoc.display("content", "view", $bentryobj))
> #if($content.length()>400) 
> #set($i = $content.lastIndexOf(" ", $maxchars))
> #set($i = $i + 1)
> #set($content = "${content.substring(0,$i)}
> [...>${bentrydoc.fullName}]")
> #end
> #else
> #set($content = "${content} [...>${ bentrydoc.fullName}]")
> #end
> 
> 
> #set($Author = $bentrydoc.display("extract", "view", $bentryobj))
> #if($Author=="")
> #set($Author = $bentrydoc.display("AuthorName", "view", $bentryobj))
> #if($content.length()>400) 
> #set($i = $Author.lastIndexOf(" ", $maxchars))
> #set($i = $i + 1)
> #set($Author = "${Author.substring(0,$i)} [...>${bentrydoc.fullName}]")
> #end
> #else
> #set($Author = "${Author} [...>${ bentrydoc.fullName}]")
> #end
> 
> 
> #set($Year = $bentrydoc.display("extract", "view", $bentryobj))
> #if($Year=="")
> #set($Year = $bentrydoc.display("YearInfo", "view", $bentryobj))
> #if($Year.length()>400) 
> #set($i = $Year.lastIndexOf(" ", $maxchars))
> #set($i = $i + 1)
> #set($Year = "${Year.substring(0,$i)} [...>${bentrydoc.fullName}]")
> #end
> #else
> #set($Year = "${Year} [...>${ bentrydoc.fullName}]")
> #end
> 
> 
> #set($References = $bentrydoc.display("extract", "view", $bentryobj))
> #if($References=="")
> #set($References = $bentrydoc.display("ReferencesInfo", "view",
> $bentryobj)) 
> #if($References.length()>400)
> #set($i = $References.lastIndexOf(" ", $maxchars))
> #set($i = $i + 1)
> #set($References = "${References.substring(0,$i)}
> [...>${bentrydoc.fullName}]")
> #end
> #else
> #set($References = "${References} [...>${bentrydoc.fullName}]")
> #end
> 
> 
> #set($URL = $bentrydoc.display("extract", "view", $bentryobj))
> #if($URL=="")
> #set($URL = $bentrydoc.display("URLInfo", "view", $bentryobj))
> #if($URL.length()>400) 
> #set($i = $URL.lastIndexOf(" ", $maxchars))
> #set($i = $i + 1)
> #set($URL = "${URL.substring(0,$i)} [...>${bentrydoc.fullName}]")
> #end
> #else
> #set($URL = "${URL} [...>${bentrydoc.fullName }]")
> #end
> 
> ##Make the content visible or invisible 10-16-07 by Hande
> 
> #if(($Author !="") && ($Year !="") || ($References !="") && ($URL !=""))
> Author:&nbsp;$bentrydoc.display("AuthorName","view",
> $bentryobj)<br> 
> Year:&nbsp;$bentrydoc.display("YearInfo","view", $bentryobj)<br>
> Reference:&nbsp;$bentrydoc.display("ReferencesInfo","view",
> $bentryobj)<br> 
> URL:&nbsp;$bentrydoc.display("URLInfo","view", $bentryobj)<br>
> #else
> ##set($content = $bentrydoc.display("content", "view", $bentryobj))
> $bentrydoc.getRenderedContent($content) 
> #end
> 
> 
> </div> ## entry-content
> <div class="article_footer">
> #set($bcategories = $bentryobj.getProperty("category").value)
> Posted by <address class="author
> vcard">#userfn($bentrydoc.creator)</address> at <abbr class="published"
> title="#formatdateISO($bentrydoc.creationDate)">$xwiki.formatDate($bentr
> ydoc.creationDate, "MMM dd, yyyy HH:mm")</abbr>#if($bcategories.size() >
> 0) in #foreach($bcategory in $bcategories) $xwiki.getURL( $bcategory 
> #end#end #if($bentrydoc.date !=
> $bentrydoc.creationDate) | Modified by <address class="author
> vcard">#userfn($bentrydoc.author)</address> at <abbr class="updated"
> title="#formatdateISO($bentrydoc.date)">$xwiki.formatDate($bentrydoc.dat
> e, "MMM dd, yyyy HH:mm")</abbr> #end | [$bentrydoc.comments.size()
> Comment(s)>${ bentrydoc.fullName}?xpage=comments] |  $bentrydoc.getURL(
> Permalink 
> </div> ## article_footer
> </div> ## hentry
> #end
> #end
> ## prev/next links
> #if(($inbstart != 0) || ($velocityCount==$inbitems))
> <div class="pagingLinks">
> #if ($inbstart!=0)
> #set($iprev = $inbstart - $inbitems)
> [Previous>$doc.name?nbstart=${iprev}] 
> #end
> #if($velocityCount==$inbitems)
> #set($inext = $inbstart + $inbitems)
> [Next>$doc.name?nbstart=${inext}]
> #end
>  
> </div> ## pagingLinks
> #end
> </div> ## hfeed
> #end
> #blog($category $nbitems $nbstart)
> 
> 
> 
>  
> 
> On 10/27/07, Sergiu Dumitriu <[email protected]> wrote: 
> 
> Hi,
> 
> This is caused by a mistake in the html code of the affected pages,
> most probably a missing or an extra </div>. Use a tool for validating 
> the page, and it will tell you where the problem is.
> 
> 
> On 10/27/07, Hande Aksac <[email protected]> wrote:
>>
>>
>>
>> Hello,
>>
>> I am experiencing some layout issues. I am using the right navigation
> panel. 
>> In the Blog WebHome Page, the right navigation panel is properly
> visible for
>> some pages.
>> However, for some pages, the right navigation panel either appears at
> the
>> bottom or at the upper left corner of the page. I am having this
> problem 
>> only on the Blog WebHome page.
>> How can I solve this issue?
>>
>> Thank you very much for your time and help!
>>
>> Hande
> 
> Sergiu
> --
> http://purl.org/net/sergiu 
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users 
> 
>  
> 
> 
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Navigation-Panel-Displays-in-Different-Location-of-the-Page-tp506784p2277934.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to