How to delete the button READ ALL ?

Questions about the backend functionalities: configuration, user management, course management, ...
Post Reply
gihel
FormaLms Expert
Posts: 76
Joined: Tue Jun 26, 2018 4:36 pm
Version: forma.lms 2.0

How to delete the button READ ALL ?

Post by gihel » Mon Sep 24, 2018 5:57 pm

Hi every body

I have no text to see with the READ ALL button on the login page.
I would like hide or delete the button

Anyone know the solution ?

Thank you

alfa24
FormaLms Master
Posts: 445
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: How to delete the button READ ALL ?

Post by alfa24 » Tue Sep 25, 2018 8:00 am

Hi,
you should search in:

/templates/standard/layout/appCore/homepage/show.html.twig

and get rid of those snippets:

Code: Select all

<div class="collapse-wrapper" data-toggle="collapse" data-target="#description">
        <a class="forma-button forma-button--orange is-hidden js-show-collapsed-text" href="#">
            {{ read_all|raw }}
        </a>
        <span class="glyphicon glyphicon-remove icon icon--close">{{ close|raw }}</span>
        <br/><br/>
    </div>
and further:

Code: Select all

<script>
    $(document).ready(function () {
        var $elem = $('.js-collapsed-text');
        var _textHeight = $elem.children('p').height();
        var _containerHeight = $elem.height();
        var $btn = $('.js-show-collapsed-text');

        if (_textHeight > _containerHeight) {
            $btn.removeClass('is-hidden');
        }
    });
</script>
I'm Jasmines, the One. If you need, you can contact me.

gihel
FormaLms Expert
Posts: 76
Joined: Tue Jun 26, 2018 4:36 pm
Version: forma.lms 2.0

Re: How to delete the button READ ALL ?

Post by gihel » Tue Sep 25, 2018 9:21 am

thank you alfa

Post Reply