Page 1 of 1

Staticpage and Newsbox problem

Posted: Fri Apr 27, 2007 1:28 pm
by Night-Walker
Hi i'm trying to use s9y as a CMS.

I want to show the first 4 Entires from each Categorie sorted by categorie like this:

-Cat 1

--------Entire 1
--------Entire 2

-Cat 2

--------Entire 1
--------Entire 2

-Cat 3

--------Entire 1
--------Entire 2

So I've tried to use a static page as Frontpage and show Newsboxes for categorys like this:

Staticpage:

Newsbox1 - Cat1
--------Entire 1
--------Entire 2

Newsbox2 - Cat2
--------Entire 1
--------Entire 2


but i've a problem. I use 4 newsboxes but the last one shows the entries twice.

Newsbox4 - Cat4
--------Entire 1
--------Entire 2

emptylines

--------Entire 1
--------Entire 2



has anyone some ideas how to solve this problem?

at the sourcecode it looks like this:

Code: Select all

<!--newsbox-->

<div class="newsbox"><h3 class="newsbox_title"><a href="http://127.0.0.1/blog/index.php/categories/4">CAT 5</a></h3>
<!-- ENTRIES START -->
    

        <div class="serendipity_Entry_Date">
        
                	              <br/>
	                	        
            
        		<h2 class="serendipity_commentsTitle_frontpage"><a href="/blog/index.php?/archives/9-27-04-2007.html" >Entrie 1/a></h2>
		        
        
		<div class="serendipity_entry serendipity_entry_author_Admin serendipity_entry_author_self">
                        <span class="serendipity_entryIcon">
                                                    </span>
                     
            		
        </div>
		
        

        
        

        
            </div>
        <div class="serendipity_Entry_Date">
        
                	              <br/>
	                	        
            
        		<h2 class="serendipity_commentsTitle_frontpage"><a href="/blog/index.php?/archives/5-02-04-2007.html" >Entry 2</a></h2>
		        
        
		<div class="serendipity_entry serendipity_entry_author_Admin serendipity_entry_author_self">
                        <span class="serendipity_entryIcon">
                                                    </span>
                     
            		
        </div>
		
        

        
        

        
            </div>
    
  <div class='serendipity_pageFooter' style="text-align: center">
    
  		
	
		
    </div>
<!-- ENTRIES END -->
</div><!--newsbox-->


        <div class="serendipity_Entry_Date">
        
                	              <br/>
	                	        
            
        		<h2 class="serendipity_commentsTitle_frontpage"><a href="/blog/index.php?/archives/9-27-04-2007.html" >Entry 1</a></h2>
		        
        
		<div class="serendipity_entry serendipity_entry_author_Admin serendipity_entry_author_self">
                        <span class="serendipity_entryIcon">
                                                    </span>
                     
            		
        </div>
		
        

        
        

        
            </div>
        <div class="serendipity_Entry_Date">
        
                	              <br/>
	                	        
            
        		<h2 class="serendipity_commentsTitle_frontpage"><a href="/blog/index.php?/archives/5-02-04-2007.html" >Entry 2</a></h2>
		        
        
		<div class="serendipity_entry serendipity_entry_author_Admin serendipity_entry_author_self">
                        <span class="serendipity_entryIcon">
                                                    </span>
                     
            		
        </div>
		
        

        
        

        
            </div>
    
  <div class='serendipity_pageFooter' style="text-align: center">
    
  		
	
		
    </div>
<!-- ENTRIES END -->


<!-- CONTENT END -->
It dows not matter which newsbox is the last. All entries of it shows twice :(


I hope someone can help me :)
and sorry for my bad english

If noone has a idea, i've try to solve this problem with a last empty newsbox which shows a dummy categorie. Is there some way to hide a category in the sidebar?

Posted: Mon Apr 30, 2007 10:12 pm
by judebert
Hi! I wrote the newsbox plugin, so you'd think I'd be able to solve this.

I'd like to be able to see the problem directly. Can you provide the URL to your webpage exhibiting the problem?

I'm betting it's either a multiple-category problem or a float problem. Looking at the page would help me figure it out.

But I notice you're using 127.0.0.1. If that's your actual server, it wouldn't be accessible from the outside world. In that case, consider that entries in multiple categories can confuse newsboxes. They try to remove their categories from other queries, and so the category might not be displayed at all, or otherwise mess up. (I haven't done enough experimentation to find out.)

Also, consider that newsboxes use a float of 49% to get their double-column effect. If the problem changes in different browsers (FireFox or IE), the float is probably the problem. The plugin does check to see if you've defined your own CSS for newsboxes, and if so, it won't generate its own. You can modify your style.css to include newsbox styles to fix that problem.