test
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • ctopping1 Friend
    #181201

    Seems that on the featured Articles Wall, the amount of words and characters is less than on a category blog layout page. Is there a way to customize the amount of characters that appear below the Title and Image on the Wall? Thanks.

    arucardx Friend
    #469199

    I just looked at the block of code that’s generating the introtext for category blog and featured and they are the same? At 50 characters for introtext assuming I didn’t read wrongly.

    [PHP]// build intro content
    // get some first paragraph in introtext, trip tags (keep a, strong, br, b…)
    $introtext = $this->item->introtext;
    // get first paragraph
    $regex = ‘#<p[^>]*>(.*)</p>#i’;
    if (preg_match_all ($regex, $introtext, $matches)) {
    $p = array();
    $c = 0;
    foreach ($matches[1] as $match) {
    $t = trim(strip_tags ($match, ‘<a><b><strong><br>’));
    if ($t) $p[] = $t;
    $c += strlen($t);
    if ($c > 50) break;
    }
    $introtext = implode (‘<br />’, $p);
    } else {
    $introtext = trim(strip_tags ($introtext, ‘<a><b><strong><br>’));
    }[/PHP]

    ctopping1 Friend
    #469234

    Can you tell me which file this code can be located? Thanks

    HeR0 Friend
    #469390

    HI Ctopping1
    You can find it in templates/ja_wall/html/com_content/featured/default_item.php
    Thank @arucardx

    Regards,

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 3 voices, and was last updated by  HeR0 12 years, 1 month ago.

We moved to new unified forum. Please post all new support queries in our New Forum