Re: Again: Questions on the events-Plugin
qMax <[email protected]> Wed, 22 Mar 2006 15:26:29 +0600
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
Monday, March 20, 2006, 8:33:20 PM, Adrian Nussbaum wrote: AN> #1 | How to get old events out of the overview? AN> This question I already asked once in an older post but afaik I AN> didn't get any answer. Anyway, how can I make old Events disappear on AN> the Events-Overview? AN> (I mean, i just want to have there the upcoming events, but not the AN> old...) Events plugin is enough raw, it does not support paging, like blog. You should hack bx_plugins_events::getContentById, Replace line: $query="select * from ".$prefix."events order by von asc"; With $query="select * from ".$prefix."events order by von asc limit 10"; (to show only last 10 events) Or, you may implement paging, as in blog: $maxposts_param = $this->getParameter($path,'maxposts'); $maxPosts = ($maxposts_param) ? $maxposts_param : 10; $startEntry = isset($_GET['start']) ? $_GET['start'] : 0; $query="select * from ".$prefix."events order by von asc limit $startEntry, $maxPosts" An add links (in xslt probably, but i dunno how to pass startentry and maxposts there): <a href="./?start='.($startEntry - $maxPosts).$searchAdd.'">Prev page</a> <a href="./?start='.($startEntry + $maxPosts).$searchAdd.'">Next page</a> AN> #2 | How can I use special characters in the Events-Title (as an AN> example)? AN> I use the plugin on a german site and wanted to write "März" (it's AN> the month "march"...). But unfortunately the ä didn't appear AN> correctly... (It showed up as "Mäz") AN> What to do? And how do you enter events ? It works fine in 1.3, if you enter events using mysql tools (phpmysqladmin) :) I cannot find bcsmc plugin for editing events... AN> #3 For multilingual support you have to redesign table layout and patch events.php some more. If you know php and SQL, the idea is: in sql TABLE bxcms_events leave only fields: id, link, von, bis, uri. create new table bxcms_events_properties sith fields: event_id, language, property, value This way you can have several properties in various languages, as well as add custom properties, missed in original plugin. I hope this will help. -- qMax -- bitflux-cms mailing list [email protected] http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms