Many thanks!

Want ask more about "promo part", maybe you know, some CMS have a
[cut] tag, this tag form a "promo part"

Example:

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam
nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat
volutpat.
[cut]
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper
suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem
vel eum iriure dolor in hendrerit in vulputate velit esse molestie
consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et
accumsan et iusto odio dignissim qui blandit praesent luptatum zzril
delenit augue duis dolore te feugait nulla facilisi.


All text (pictures, etc.) over the [cut] tag stay in the "promo part"
and if you want to see rest of the post you must click on the "Read
more" link or something similar.


Is there any intentions to do something like this in a future
releases?

On 3 июн, 06:44, rick c <[email protected]> wrote:
> 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

Reply via email to