|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Again: Questions on the events-PluginHi
I once posted this already but didn't get any answer, so I try it again... I've got three questions: #1 | How to get old events out of the overview? This question I already asked once in an older post but afaik I didn't get any answer. Anyway, how can I make old Events disappear on the Events-Overview? (I mean, i just want to have there the upcoming events, but not the old...) #2 | How can I use special characters in the Events-Title (as an example)? I use the plugin on a german site and wanted to write "März" (it's the month "march"...). But unfortunately the ä didn't appear correctly... (It showed up as "Mäz") What to do? ... and last but not least... #3 | could the Events-Plugin be made multilingual? I mean, that one could enter the title, the location and the description in differents languages (the ones, that are suported due to the site-options)? Should that be possible? adrian ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ xpure | adrian nussbaum | linsentalstrasse 5 | ch-8482 sennhof mobile: + 41 764 283 913 | a.n@... | http://www.xpure.ch | http://blogomanie.xpure.ch ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- bitflux-cms mailing list bitflux-cms@... http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms |
|
|
Re: Again: Questions on the events-PluginMonday, 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 bitflux-cms@... http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms |
| Free Forum Powered by Nabble | Forum Help |