Page 1 of 1

How to show articles from all categories at homepage

Posted: Sat 8. Jan 2005, 20:52
by TomBoy
Hi,
I have just installed phpwms. I have created several categories and articles in them. Article lists are generated allright in sublevel (category) index pages, but are not generated in the main index.php. What could be the problem?

Posted: Sat 8. Jan 2005, 21:44
by Pappnase
hello

i was try to follow you!


but i'll try to answer!

did you set them all to visible!?
did you add the {CONTENT} Tag in the main table.

Posted: Sat 8. Jan 2005, 22:16
by TomBoy
My main block is following:

Code: Select all

<table border="0" cellpadding="0" cellspacing="0"> 
<tr><td colspan="2"><img src="img/leer.gif" width="1" height="10"></td></tr> 
<tr> 
<td class="breadcrumb">{BREADCRUMB}</td> 
<td align="right" class="footer">{DATE_ARTICLE}</td> 
</tr> 
<tr><td colspan="2"><img src="img/leer.gif" width="1" height="5"></td></tr> 
<tr><td colspan="2"><img src="img/article/elements/content_line_499.gif" width="499" height="1"></td></tr> 
<tr><td colspan="2"><img src="img/leer.gif" width="1" height="15"></td></tr> 
</table><table width="630" border="0" cellpadding="0" cellspacing="0"> 
<tr><td>{CONTENT}</td></tr> 
<tr><td><img src="img/leer.gif" width="1" height="25"></td></tr> 
<tr><td>
    <p align="center">[BACK]<img src="img/article/back_link_0.gif" border="0">[/BACK]&nbsp;&nbsp;<a href="#" target="_top" title="goto top of the page"><img src="img/article/top_link_0.gif" border="0"></a>&nbsp;&nbsp;[PRINT]<img src="picture/symbols/print_icon.gif" width="44" height="9" border="0" title="open optimized page for printing">[/PRINT]</p>
  </td></tr> 
<tr><td height="100%"><img src="img/leer.gif" width="1" height="25"></td></tr> 
<tr><td><img src="img/article/elements/content_line_499.gif" width="499" height="1"></td></tr> 
<tr><td><img src="img/leer.gif" width="1" height="5"></td></tr> 
<tr><td class="footer">&nbsp;[RSS all]XML RSS[/RSS]</td></tr> 
</table>

Posted: Sat 8. Jan 2005, 22:48
by Pappnase
hello

did you set all articles o visible!?

Posted: Sat 8. Jan 2005, 23:20
by TomBoy
Yes, I did - all set to "visible" and "public".
I do not have articles at the first levels, only articles in the sub-levels or categories. The structure is like that:

Home
--> Category1
------ Article1.1
------ Article1.2
--> Category2
------ Article2.1
------ Article2.2

The list of articles is displayed in the category pages. What I would like to do is to have list of those articles from categories to be displayed at the front page as well. Is it possible?

Posted: Sat 8. Jan 2005, 23:23
by Pappnase
hello

at the moment i have no idea.
except that you add an redirection to the first article!

or maybe someone will code an reptag for read out articles in an sitestructure.