Viewing 1 post (of 1 total)
  • Author
    Posts
  • coderchuck Friend
    #157098

    Some of my articles contain plugin code, like I want to drop a module inline of my article. Since Joomla! supports this out of the box, I thought it would be a good idea to share my quick hack with the community. Mind you this will remove any and all intro text from the displayed article. But it works like a charm for my small display. The code below is as follows:

    in the Content Slider module folder, in default.php around line 148


    $contn->introtext = $contn->text;

    // Check to see if content contains a bracket { which indicates plugin code. We dont want that displayed.

    if (preg_match('/{load/', $contn->introtext)) {

    $contn->introtext = "";

    }

Viewing 1 post (of 1 total)

This topic contains 1 reply, has 1 voice, and was last updated by  coderchuck 13 years, 10 months ago.

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