how to add link in heading (overview) & remove admidio from heading (Admidio overview)

If you aren't speaking german, you can ask for support or post your request here.
Antworten
Benutzeravatar
amitabhmca
Beiträge: 104
Registriert: 18. Apr 2018, 02:44
Wohnort: Singapore

how to add link in heading (overview) & remove admidio from heading (Admidio overview)

Beitrag von amitabhmca »

Please refer below screenshot and let me know

1) how can i remove Admidio from heading (circled)
2) how can i add links as similar to registration
admidio overview and link.PNG
admidio overview and link.PNG (15.88 KiB) 4774 mal betrachtet
Many thanks in advance..

thanks,
Amitabh
XimeX
Developer
Beiträge: 1148
Registriert: 12. Jul 2015, 13:21
Wohnort: Austria

Re: how to add link in heading (overview) & remove admidio from heading (Admidio overview)

Beitrag von XimeX »

To 1)
https://github.com/Admidio/admidio/blob ... ex.php#L21
change to:

Code: Alles auswählen

$headline = $gL10n->get('SYS_OVERVIEW');
XimeX
Developer
Beiträge: 1148
Registriert: 12. Jul 2015, 13:21
Wohnort: Austria

Re: how to add link in heading (overview) & remove admidio from heading (Admidio overview)

Beitrag von XimeX »

To 2)
Look at this code:
https://github.com/Admidio/admidio/blob ... hp#L32-L61
The first section is for the links that are shown if you are logged in. the other section for logged out
Benutzeravatar
amitabhmca
Beiträge: 104
Registriert: 18. Apr 2018, 02:44
Wohnort: Singapore

Re: how to add link in heading (overview) & remove admidio from heading (Admidio overview)

Beitrag von amitabhmca »

Hello XimeX,

Thanks for your reply..

can you suggest where exactly i should add the code forto show the link? I tried adding but getting error 500.

and the code should be as this?

Code: Alles auswählen

$page->addHtml('
    <div id="Website_home_page">
        <small><a href="http://www.test.com/"><img src="http://test.com/adm_themes/modern/icons/home.png" alt="HomePage" /> Website Home Page </a></small>
    </div>'
>>>> code from https://github.com/Admidio/admidio/blob ... ex.php#L21

Code: Alles auswählen

else
{
    // show login link
    $mainMenu->addItem('adm_menu_item_login', ADMIDIO_URL . '/adm_program/system/login.php',
                       $gL10n->get('SYS_LOGIN'), 'key.png');

    if($gPreferences['registration_mode'] > 0)
    {
        // show registration link
        $mainMenu->addItem('adm_menu_item_registration',
                           ADMIDIO_URL . FOLDER_MODULES . '/registration/registration.php',
                           $gL10n->get('SYS_REGISTRATION'), 'new_registrations.png');
    }
}

Thanks,
Amitabh
Antworten