WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
<?php <?php displayNewsItems($group_id, $max_news_items, $max_news_length, $display_mode, $header_text, $readmore_text, $no_news_text, $strip_tags, $allowed_tags, $show_publish_date, $date_time_format, $sort_by, $sort_order, $not_older_than); ?>?>
<?php displayNewsItems($group_id, $max_news_items, $max_news_length, $display_mode, $lang_id, $strip_tags, $allowed_tags, $show_publish_date, $sort_by, $sort_order, $not_older_than); ?>
{ARG_HEADER_TEXT} --> {TXT_HEADER} {ARG_READMORE_TEXT} --> {TXT_READMORE}{ARG_NO_NEWS_TEXT} --> {TXT_NO_NEWS}
I've done this by using 2 news groups. Dutch / EnglishI didn't set the language in the pages, but used a /pages/en/ or /pages/nl/ page structure.Code: [Select]<?php$url = $_SERVER['REQUEST_URI'];if (function_exists('display_news_items')) { if (strrpos($url,"/en/")) { display_news_items(1,3,-1,1,"Latest news","read more","No news available",false); } else { display_news_items(2,3,-1,1,"Laatste nieuws","verder lezen","geen nieuws beschikbaar",false); }} ?>Ruud
<?php$url = $_SERVER['REQUEST_URI'];if (function_exists('display_news_items')) { if (strrpos($url,"/en/")) { display_news_items(1,3,-1,1,"Latest news","read more","No news available",false); } else { display_news_items(2,3,-1,1,"Laatste nieuws","verder lezen","geen nieuws beschikbaar",false); }} ?>
If you have created a new Anynews language file, please add it as XX.txt file to this thread and I will add it with a next release of Anynews.Regards Christian
... but can i modify it somehow to display only news from that language what i choose???
Is it possible to get the title truncated to a certain amount?
Is it possible to show the latest events from Event Calendar
Is there any way to grab the latest 4 events with AnyNews?
Hi,...Regards Christian
You can add all English news to its own group and all Estonian news to another group. Than you can set the first parameter of Anynews to show one of the groups depending on your page / section.Regards Christian
Hi,@eazybaker:Thanks for the language file. By the way. Does a Estonia language file exists for the WebsiteBaker backend? Guess it should be EE.php but I haven´t found one yet.
Yes Estonia language file exists for the WebsiteBaker backend and its EE not EST,so i made mistake,sry abot that
In order to truncated the titles of anyNews, i shall check this out. I'm not sure about my mysql and database skills, but maybe the the include.php page explains enough for me. I'm certainly give it a try.
Also, are you still in the need of a Dutch translation?
... Nice module, but for a beginner... a pain in the ass...
Hi,@eazybaker:Quote from: eazybakerYes Estonia language file exists for the WebsiteBaker backend and its EE not EST,so i made mistake,sry abot thatStrange, I found no EE.php in the WB /language folder. But anyway, thanks for your contribution Regards Christian
<?php include_once(WB_PATH . '/modules/anynews/coda-slider.inc.php'); ?>
The latest version includes a new display options ($display_option = 3) which uses jQuery and some JQuery-Plugins developed by Ariel Flesler to display news with the Coda Slider Effect.
$custom_placeholder:= array('IMG_LINK' => '%img%', 'MY_VAR' => '#(test)#i')
LONG_IMG_LINK_1, LONG_IMG_LINK_2SHORT_MY_VAR_1, LONG_MY_VAR_1