Paul,
Shards uses version of the thePrestige theme that is in habari-extras
( http://habariproject.org/dist/themes/thePrestige/ ).
If you look in the theme's theme.php file you'll find the following
lines in the action_init_theme() method:
// Creates an excerpt option. echo $post->content_excerpt;
Format::apply( 'autop', 'post_content_excerpt');
Format::apply_with_hook_params( 'more', 'post_content_excerpt', '<span
class="more">Read more</span>', 150, 1 );
// Excerpt for lead article
Format::apply( 'autop', 'post_content_lead');
Format::apply_with_hook_params( 'more', 'post_content_lead', '<span
class="more">Read more</span>', 400, 1 );
These lines hook into the formatting filters to create the excerpts.
The first number( the 150 and 400) tell the maximum number of words to
use. The second number (the 1 ) tells the maximum number of paragraphs
to use.
Then, in the theme's home.php file, instead of:
<?php echo $post->content_out; ?>
putting
<?php if( $post == $posts[0] ) {
echo $post->content_lead;
}
else {
echo $post->content_excerpt;
}
?>
should work.
I hope this helps.
Rick
On Jun 2, 8:49 pm, Paul <[email protected]> wrote:
> Hello again.
>
> I have seen a "Read more" feature on the Rick's blog -
> shardsofconsciousness.com . Is it possible easy add such option to
> show promo part at the main page, not a whole post as it now realised.
> Tried to search similar plugin but found nothing.
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at http://groups.google.com/group/habari-dev