WBCE Home | WBCE Hilfe | WBCE Addon Repository | Impressum | Datenschutz

WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

You are not logged in.

#1 06.10.2019 13:34:21

gawi
Member

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 18: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);

Offline

#3 06.10.2019 20:18:34

gawi
Member

Re: NIA - max_news_lenght

Thank you. It works. smile

Best regards
Gawi

Offline

Board footer

Powered by FluxBB

up