Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • briannyc Friend
    #141631

    What do I edit to show more than the first paragraph in the front page body section? I would want to use the read-more bar instead of breaking on paragraphs. My articles have multiple paragraphs in the intro section.

    In html/com_content/frontpage/default_leading.php I see a line:

    <?php echo JA_Tools::getFirstP($this->item->text); ?>

    What can I do to show the article up to the read-more tag?

    briannyc Friend
    #306529

    I figured it out. In ja_templatetools_1.5.php I commented out the stripos.


    function getFirstP ($text, $tag = 'P') {
    $pos = stripos($text, '</p>');
    if ($pos === false)
    $content = $text;
    else
    $content = $text; //substr($text, 0, $pos+4);
    return $content;
    }

    theprofessor Friend
    #306533

    LOL, your like me. Post a question….and you end up figuringit out.

    Thanks for posting your solution. I wish more people would do that. 🙂

    I’m using Cooper for a project right now and was wondering how to do the same thing.

    briannyc Friend
    #306534

    Yeah, no problem. I do it all the time.

    I wish more people would do the same as well…how can you expect to get help when you don’t help anyone else out along the way.

    BTW – I had a post about the ‘Print Preview’ color, go figure I can’t seem to figure out how to change it from the stock Green text color?

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

This topic contains 4 replies, has 2 voices, and was last updated by  briannyc 14 years, 11 months ago.

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