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
$output = NULL;if (function_exists('displayNewsItems')) { ob_start(); displayNewsItems( $group_id = 2, $max_news_items = 10, $max_news_length = -1, $display_mode = 1, $lang_id = 'auto', $strip_tags = true, $allowed_tags = '<p><a><img>', $custom_placeholder = false, $sort_by = 1, $sort_order = 1, $not_older_than = 0 ); $output = ob_get_clean();}return $output;
Maybe i overlooked it, but when i use displayanynews with displaymode=2(only the newstitle as link) and having newsitems with only shorttext the resulting page displays the longtext wich is empty, so only the header and the footer are displayed.Am i doing something wrong or is this the way the snippet should work?(only with long text)
I have more pages (and sections) with the module News. But I use not Groups by News module.How can I use Anynews to display newsitems from certain pages or section?How can I change the code?More thanks!
<?php displayNewsItems( $group_id = 0, $max_news_items = 10, $max_news_lenght = -1, $display_mode = 1, $lang_id = 'auto', $strip_tags = true, $allowed_tags = '<p><a><img>', $custom_placeholder = false, $sort_by = 1, $sort_order = 1, $not_older_than = 0 ); ?>
<?php$this_group_id = 0;if ( PAGE_ID == 55 ) { $this_group_id = 5;}displayNewsItems( $group_id = $this_group_id, $max_news_items = 3, $max_news_lenght = -1, $display_mode = 1, $lang_id = 'auto', $strip_tags = true, $allowed_tags = '<p><a><img>', $custom_placeholder = false, $sort_by = 4, $sort_order = 1, $not_older_than = 0 ); ?>
<?php$map_page_to_group = array( 55 => 5, 66 => 6,);$this_group_id = isset( $map_page_to_group[PAGE_ID] ) ? $map_page_to_group[PAGE_ID] : 0;displayNewsItems( $group_id = $this_group_id, $max_news_items = 3, $max_news_lenght = -1, $display_mode = 1, $lang_id = 'auto', $strip_tags = true, $allowed_tags = '<p><a><img>', $custom_placeholder = false, $sort_by = 4, $sort_order = 1, $not_older_than = 0 ); ?>
I really appreciate your time and knowledge.
After the Add-On File editor, the next suspension.
a "standalone" tool (PHP 5.3) with more flexibility
I have more pages (and sections) with the module News. But I use not Groups by News module.How can I use Anynews to display newsitems from certain pages or section?How can I change the code?