Modifica Login Page

Funzionalità di frontend per utenti e amministratori dei corsi: navigazione generale, materiali didattici, test, registro valutazioni, ecc.
Post Reply
User avatar
tonymask
FormaLms User
Posts: 30
Joined: Thu Nov 03, 2016 11:40 am
Version: forma.lms 1.4.1
Contact:

Modifica Login Page

Post by tonymask »

Salve, avrei bisogno di inserire un piccolo testo nello spazio indicato in foto.
Ho provato a modificare templates/standard/layout/home_login_news.php ma NON SUCCEDE NULLA

potete aiutarmi ?

PS: Uso Forma 2.2.1
Attachments
Cattura.PNG
Cattura.PNG (8.23 KiB) Viewed 1320 times

alfa24
Senior Boarder
Posts: 1006
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Modifica Login Page

Post by alfa24 »

Ciao, devi lavorare su templates/standard/layout/appCore/homepage/show.html.twig
I'm Jasmines, the One. If you need, you can contact me.

User avatar
tonymask
FormaLms User
Posts: 30
Joined: Thu Nov 03, 2016 11:40 am
Version: forma.lms 1.4.1
Contact:

Re: Modifica Login Page

Post by tonymask »

NIENTE DA FARE
Last edited by tonymask on Fri Jun 05, 2020 3:23 pm, edited 1 time in total.

User avatar
tonymask
FormaLms User
Posts: 30
Joined: Thu Nov 03, 2016 11:40 am
Version: forma.lms 1.4.1
Contact:

Re: Modifica Login Page

Post by tonymask »

<div class="homepage__row homepage__row--login homepage__row--gray no-padding">
PROVO A SCRIVERE QUALCOSA QUA <-------############ QUESTA RIGA NON COMPARE ########--------->
<div class="visible-xs">
{{ evalPhp('Layout::get_catalogue') }}
</div>
{% if not under_maintenence %}
{% if baseLogin is defined %}
<div class="col-xs-12 col-sm-6{% if socialLogin is not defined %} col-sm-offset-3{% endif %}">
{% if block_attempts == false %}
{% for login in baseLogin %}
{{ login.form|raw }}
{% endfor %}
{% if done != false %}
<div>
<b class="logout">{{ done }}</b>
</div>
{% endif %}
{% if msg != false %}
<div id="service_msg">
<b class="login_failed">{{ msg }}</b>
</div>
{% endif %}
{% else %}
<h3>{{ translate('_ACCESS_LOCK', 'login') }}</h3>
<p>{{ block_attempts }}</p>
{% endif %}
{% if socialLogin is not defined %}
<nav class="homepage__links">
{% if isSelfRegistrationActive != false %}
<a href="/{{ evalPhp('Get::rel_path', ['base']) }}/index.php?r={{ constant('_register_') }}">{{ translate('_REGISTER', 'login') }}</a>
{% endif %}
<a href="/{{ evalPhp('Get::rel_path', ['base']) }}/index.php?r={{ constant('_lostpwd_') }}">{{ translate('_LOG_LOSTPWD', 'login') }}</a>
</nav>
{% endif %}
</div>
{% endif %}
{% if socialLogin is defined %}
<div class="col-xs-12 col-sm-6">
<div class="social-login">
<p class="social-login__title">
<span>{{ translate('_SOCIAL_LOGIN','login') }}</span>
</p>
<div class="social-login__list">
{% for login in socialLogin %}
{{ login.form|raw }}
{% endfor %}
</div>
</div>
<nav class="homepage__links">
{% if isSelfRegistrationActive != false %}
<a href="/{{ evalPhp('Get::rel_path', ['base']) }}/index.php?r={{ constant('_register_') }}">{{ translate('_REGISTER', 'login') }}</a>
{% endif %}
<a href="/{{ evalPhp('Get::rel_path', ['base']) }}/index.php?r={{ constant('_lostpwd_') }}">{{ translate('_LOG_LOSTPWD', 'login') }}</a>
</nav>
</div>
{% endif %}
{% else %}
<div class="box">
<h3>{{ translate('_MAINTENANCE', 'configuration') }}</h3>
<div class="text">
{{ translate('_MAINTENANCE_TEXT', 'login') }}
</div>
</div>
{% endif %}
</div>
<div class="homepage__row">
<br/>
<h3>{{ intro_text_header|raw }}</h3>
</div>
<div class="homepage__row">
<br/>
<div class="collapse homepage__collapsed-text js-collapsed-text" id="description">
<p style="line-height: 26px;">{{ intro_text_body|raw }}</p>
</div>
<div class="collapse-wrapper" data-toggle="collapse" data-target="#description">
<a class="forma-button forma-button--orange is-hidden js-show-collapsed-text" href="https://docs.formalms.org/forums/7/13709.html?p=22874#">
{{ read_all|raw }}
</a>
<span class="glyphicon glyphicon-remove icon icon--close">{{ close|raw }}</span>
<br/><br/>
</div>
</div>
<div class="homepage__row homepage__row--footer">
<nav class="homepage__links">
{% if externalPages is defined %}
{% for externalPage in externalPages %}
<a href="/{{ externalPage.link }}">{{ externalPage.title }}</a>
{% endfor %}
{% endif %}
</nav>
</div>

<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>

alfa24
Senior Boarder
Posts: 1006
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Modifica Login Page

Post by alfa24 »

Hai cancellato la cache di twig?
I'm Jasmines, the One. If you need, you can contact me.

User avatar
max
FormaLms Guru
Posts: 2405
Joined: Thu Mar 01, 2012 10:41 am
Version: forma.lms 2.4
Contact:

Re: Modifica Login Page

Post by max »

Scusa, ma perché non usi la chiave di traduzione _INTRO_STD_TEXT nelle lingue? Non è nello spazio che dici tu, è 2 centimetri sotto, ma almeno è già nativamente modificabile da interfaccia
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
https://www.elearnit.net
https://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
Skype: m_ferrari_it

User avatar
tonymask
FormaLms User
Posts: 30
Joined: Thu Nov 03, 2016 11:40 am
Version: forma.lms 1.4.1
Contact:

Re: Modifica Login Page

Post by tonymask »

Ho provato a cancellare la CACHE ma non succedeva nulla, allora ho agito direttamente su uno dei file presenti in CACHE e allora funziona.

alfa24
Senior Boarder
Posts: 1006
Joined: Fri Nov 24, 2017 8:45 am
Version: forma.lms 1.4.2

Re: Modifica Login Page

Post by alfa24 »

Significa che la cache non è stata cancellata.
C'è un bug nella cancellazione della cache, mi pare di ricordare.
I'm Jasmines, the One. If you need, you can contact me.

User avatar
tonymask
FormaLms User
Posts: 30
Joined: Thu Nov 03, 2016 11:40 am
Version: forma.lms 1.4.1
Contact:

Re: Modifica Login Page

Post by tonymask »

Ma cancello tutta la cartella da FTP

Post Reply