Suggestion for event-entrypaging

Creating and modifying plugins.
Post Reply
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Suggestion for event-entrypaging

Post 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.
Ciao, Stephan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Suggestion for event-entrypaging

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Re: Suggestion for event-entrypaging

Post 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.
Ciao, Stephan
Post Reply