On Wed, Mar 25, 2009 at 9:37 AM, Linly <[email protected]> wrote:
>
>> Try this:
>>
>> [[#main]]![[{+p}|+]]
>> [[{+p1}]] [(time {info.wikiblog::{+p}} %Y/%m/%d)] by {+author}
>> <div class="subtt">Comments: {info.wikiblog::comment.{+p}}</div>
>> [(include page={+p} lines='1..5')] [ [[?{+p}|Read More ...]] ]
>>
>> [[#end]]
>
> Bad luck. Not working.
>
>> I'm not sure this will work, but it might. The other (easy) option is
>> to make sure every blog entry ends with two line breaks. Try editing a
>> blog entry or two and add two extra line returns at the end to see if
>> it fixes it.  (You can build this into the blog entry form so it
>> automatically adds it for you.)
>
> In the post page I DO have two extra lines for the paragraph purpose.
> Every paragraph are normal there, until it is included to the blog
> main page. :(

Oh, I see the problem.  You have lines=1..5. That will just give you
lines 1..5 not any linebreaks after that.

Not an easy solution.  I would suggest a custom function somehow that
will get you the teaser you want.

Something like [(teaser {p})] and then put this in your config file
(or a teaser plugin) something like this. Seems to work:

function BOLTFteaser($args, $zone='') {
        if (!isset($args['lines'])) $args['lines'] = '1..5';
        $out = BOLTescape(BOLTFsource($args), false) . "\n\n";
        return BOLTescape(BOLTdomarkup("$out\n\n"));
        }

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
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/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to