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
BTW: The snippet has vanished from the "official" code snippet page...
Is it possible to add it to a page? Like if I go pages > add page?If no, is it possible to just show it on only one page?
Quote from: Maarten8 on January 13, 2009, 10:14:44 AMIs it possible to add it to a page? Like if I go pages > add page?If no, is it possible to just show it on only one page?Sure, make a code section and put the snippet in there. I recommend using the code2 module: http://www.websitebakers.com/pages/admin/core-replacements/code-2.php. It's more versatile than the default code module.
if (function_exists('display_news_items')) { display_news_items(0,10,50, 2,'<a href="/pages/nouvelles/derniere-realisations.php">Dernières mise-a-jour</a>', 'Voir...', 'oups, aucunes mise a jour');}
if (function_exists('display_news_items')) { display_news_items($max_news_length);}
$group_id = 0, $max_news_items = 10, $max_news_length = -0, $display_mode = 1, $header_text = 'Aktuel', $readmore_text = 'weiter lesen', $no_news_text = 'no news available yet...', $strip_tags = true, $allowed_tags = '<a>', $display_publish_date = false, $date_time_format = ' (g:i A, m/d/Y)', $sort_by = 1, $sort_order = 1)
Hello,yes, simply add a WYSIWYG section and a code section to a page. Then call the Anynews function from the code section. This way you do not need to touch your template. Details about section can be found on the WB help site:http://help.WebsiteBaker.org/pages/en/basic-docu/working-with-wb/page-administration/manage-sections.phpRegards Christian
if (function_exists('display_news_items')) {display_news_items(0, 1, 230, 1, 'Latest News', 'show full news text', 'uups, no news available', true, '<a><img>', true, ' (Y-m-d)', 2, 1);display_news_items(0, 5, 0, 2, 'More News', 'show full news text', 'uups, no news available', true, '<a><img>', true, ' (Y-m-d)', 2, 1);}
hi,try it with two sections .....first section take the "latest news" - modul from here....http://www.websitebakers.com/pages/modules/listings/section-pages/latest-news.phpit shows the last news-post full...second section take the anynews for the links to the rest of the news....
display_mode... 1:=details (default); 2:=unsorted list; 3-99 (custom template: /htt/custom_output_display_mode_X.htt)