Page 1 of 1

Suggestion for event-entrypaging

Posted: Mon Jul 17, 2006 9:47 pm
by stm999999999
I see at Carl's site a piece of code to display a title for an articel without a title. It takes the first 200 characters of the body text:

Code: Select all

<a href="{$entry.link}">
{$entry.title|@default:$entry.body|
truncate:200:" ..."}</a>
To truncate very long titles in the head of the site I change it for my blog:

Code: Select all

{$head_title|@default:$blogTitle|truncate:60:' ...'}
here it is in action:

http://blog.stephan.manske-net.de/archi ... nd-so.html

Can these (important for me is the truncate of long titles) add to the the event-entrypaging-plugin? It seems very ugly to me, if very long titles are in the next/prev-section:

http://blog.stephan.manske-net.de/archi ... stand.html

It would be the best to change the length in the plugin-config: "0" for no truncation and "x" for x>0 the wanted lenght.

Re: Suggestion for event-entrypaging

Posted: Tue Jul 18, 2006 11:17 am
by garvinhicking
Hi!

Then the best thing for you is to use the smarty placement option of the entrypaging thing, and put the smarty variables into your entries.tpl on your own.

Adding a config option for this thing is IMHO a tad overkill...

Best regards,
Garvin

Re: Suggestion for event-entrypaging

Posted: Fri Jul 21, 2006 12:10 am
by stm999999999
Then the best thing for you is to use the smarty placement option of the entrypaging thing, and put the smarty variables into your entries.tpl on your own.

Adding a config option for this thing is IMHO a tad overkill...
OK, that is a way for me. I only thougt, it could be nice to the common user.