News lister?
|
25 posts
|
Is there a way to list articles and add a "read more" link that links the reader to the rest of the article? It would be handy. |
|
541 posts
|
<?php $last_articles = $this->children(array('limit'=>10, 'order'=>'created_on desc')); ?> <?php foreach ($last_articles as $article): ?> <?php $article->link($article->title); ?><?php $article->content(); ?> |
|
541 posts
|
|
|
541 posts
|
this is really crappy for printing code I will have to check this ;) |
|
541 posts
|
this code have to be place in the articles page |
|
25 posts
|
Thanks. One more thing. How can make a short story? So they read the short story then they click "read more" to view the rest of the article. Right now it shows the entire article on the article page. |
|
541 posts
|
add a new part (tab) after the body (the little green +), call it 'short' then instead of including the $this->content() include $this->content('short') |
|
25 posts
|
When I click read more, it dosn't show the title. What do I add to show the content title? |
|
541 posts
|
in the layout you have to write |