The theme.php file for the theme you are using should contain the following lines of code in order to use this feature:
// Truncate content excerpt at "more" or 56 characters... Format::apply_with_hook_params( 'more', 'post_content_excerpt', '',56, 1 ); The 56 here stands for the maximum number of words, the 1 for the maximum number of paragraphs If you include the <!--more--> tag in the post, these two parameters are ignored. Then, wherever you wish to display only excerpt, rather than $post->content_out, your template should contain $post->content_excerpt. Alternatively, you should be able to do the following in your theme.php file: // Apply Format::autop() to post content... Format::apply( 'autop', 'post_content_out' ); Format::apply_with_hook_params( 'more', 'post_content_out' ); In this case, you always use $post->content_out. If the <!--more--> tag is included in the post, it will display only the portion up to the tag. Using this, you never have to use $post->content_excerpt. Rick On Sep 2, 8:04 am, dh <[EMAIL PROTECTED]> wrote: > Hello guys, > > is there a way in habari to have something like the wordpress <--more--> > tag inside a post? > > I don't want to tease every post, just the long ones or posts with video > objects inside, so that the blog loads faster and doesn't wait for > youtube... > > Thanks in advance, > dh --~--~---------~--~----~------------~-------~--~----~ 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-users -~----------~----~----~----~------~----~------~--~---
