WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 06.10.2019 14:34:21

gawi
Mitglied

NIA - max_news_lenght

Hi

I add following NIA configuration to my template for WBCE 1.4

<?php
    if (function_exists('getImageNewsItems')) {
       $config = array(
    'group_id_type' => 'section_id',
    'group_id' => 3,
        'max_news_items' => 6,
        'max_news_length' => 150,
    'display_mode' => 1
        );
    echo getImageNewsItems();
    }
      ?>

All values declared in the config array are working despite  'max_news_length'  value. NIA Module does not see this value and full short post is displayed. When I change this value in the default settings in NIA include.php file, it is working and NIA output has 150 letters.

What can I do to correct it?

Best Regards
Gawi

Offline

#2 06.10.2019 19:59:27

florian
Administrator

Re: NIA - max_news_lenght

The configuration has to be applied to the call, e.g. change

    echo getImageNewsItems();

to

    echo getImageNewsItems($config);

Code allein macht nicht glücklich. Jetzt spenden!

Offline

#3 06.10.2019 21:18:34

gawi
Mitglied

Re: NIA - max_news_lenght

Thank you. It works. smile

Best regards
Gawi

Offline

Fußzeile des Forums

up