Hello Cwsoft, thank you for your help, I was finally able to get it to work with the getNewsItems thing instead of the previous one!
Do you have a download link for getNewsItems?
<?php if (function_exists('getNewsItems')) { echo getNewsItems(); $config = array( 'group_id' => 0, '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, 'group_id_type' => 'group_id', 'lang_filter' => false, ); } ?>
Is this call right?
// customized cwsoft-anynews function call$config = array( 'group_id' => 8, 'group_id_type' => 'section_id', 'display_mode' => 4,);echo getNewsItems($config);
$config = array( 'display_mode' => 3,);echo getNewsItems($config);
<?php/** * Code snippet: cwsoft-anynews * * This code snippets grabs news entries from the WebsiteBaker news * module and displays them on any page you want by invoking the function * displayNewsItems() via a page of type code or the index.php * file of the template. * * This file contains the English language output. * * LICENSE: GNU General Public License 3.0 * * @platform CMS WebsiteBaker 2.8.x * @package cwsoft-anynews * @author cwsoft (http://cwsoft.de) * @copyright cwsoft * @license http://www.gnu.org/licenses/gpl-3.0.html*/// English module description$module_description = 'This kodestump cwsoft-anynews gør det muligt at vise nyheder poster fra WebsiteBaker news modul på ethvert sted, du ønsker. Kalder funktionen fra en kode sektion eller din skabelon index.php fil. For nærmere oplysninger se <a href="https://github.com/cwsoft/wb-cwsoft-anynews#readme" target="_blank">GitHub</a>.';// initialize global $LANG variable as array if neededglobal $LANG;if (! isset($LANG) || (isset($LANG) && ! is_array($LANG))) { $LANG = array();}$LANG['ANYNEWS'][0] = array( // text outputs for the frontend 'TXT_HEADER' => 'Seneste nyheder', 'TXT_READMORE' => 'Læs mere', 'TXT_NO_NEWS' => 'Ingen nyheder.', 'TXT_NEWS' => 'Nyheder', 'TXT_NUMBER_OF_COMMENTS' => 'Antal kommentar', // date/time format: (21:12 12/31/2012) 'DATE_FORMAT' => 'G:i, d/m/Y');
Here's the Danish language file
require_once(WB_PATH . '/modules/cwsoft-anynews/code/anynews_functions.php');getGroupIdTypes($sort_column = "post_id", $sort_order = "ASC", $output = true);
'DATE_FORMAT' => 'H:i, d.m.Y'
'DATE_FORMAT' => 'j M'