Topic-icon Intro text in module? [SOLVED]

Active Subscriptions:

None
1 year 10 months ago - 1 year 10 months ago #68092 by romagromov
Hello.
The module has a setting Intro text.
When we set some text it displays on the top of module.

 

But this position is no any sense.
We need to place text above of social buttons.
Ok, I found, that module template has such positions for intro and post texts - in file /modules/mod_sclogin/tmpl
code 
if ($loginButtons != '')
{
    $introText = Text::_('MOD_SCLOGIN_SOCIAL_INTRO_TEXT_LABEL');
    $postText = Text::_('MOD_SCLOGIN_SOCIAL_POST_TEXT_LABEL');

    echo '<div class="sclogin-social-login '.$socialSpan . ' ' . $layout . ' ' . $orientation.'">';
    if($introText)
        echo '<span class="sclogin-social-intro '.$socialSpan.'">'.$introText.'</span>';
    echo $loginButtons;
    if($postText)
        echo '<span class="sclogin-social-post-text '.$socialSpan.'">'.$postText.'</span>';
    echo '</div>';
}

But there are no settings for that in the module configuration.

So? Do we need to edit the template file to make the module look fine?
Attachments:
Last edit: 1 year 10 months ago by romagromov.
The topic has been locked.
Support Specialist
1 year 10 months ago #68101 by alzander
Replied by alzander on topic Intro text in module?
The introText and postText strings you mention are language strings. You can use the Joomla Administrator "Extensions -> Languages -> Overrides" section to add content for those strings as needed.

You're correct that we could add them as a parameter to the module, but currently, the language manager is the way to do it. We generally try not to add every parameter possible to the module as there are already a lot of settings, so it's a matter of trying not to add too much complexity.

I hope that helps,
Alex
The topic has been locked.