Page 1 of 1

Impossible to use icon in menu

Posted: Wed Jan 31, 2018 10:31 am
by Clement
Hello,

I followed the wiki about how to create the menu but I cannot create an item with an icon to link to a page.
Here is what happen:
Capture.PNG
Capture.PNG (83.22 KiB) Viewed 8775 times
How should I fix that?
Plus, how to link to that page in current tab and not in a blank one?

I could do that by hard coding but then, everything will be messed up when an update comes out.

Thanks.

Re: Impossible to use icon in menu

Posted: Wed Jan 31, 2018 1:28 pm
by iatros
salut Clement

mticon-contact is not a valid icon name. Use one out of the list!

In the menu setup page:

fill in the fields like this:

Clipboard-2.jpg
Clipboard-2.jpg (83.04 KiB) Viewed 8764 times
click "add", and you can see the new icon for "contact" as an envelope in this example:
Clipboard-3.jpg
Clipboard-3.jpg (48.77 KiB) Viewed 8764 times
good luck!

Martin

Re: Impossible to use icon in menu

Posted: Wed Jan 31, 2018 4:06 pm
by Clement
Big thanks Martin.
Any idea how to keep the link in the current tab?

Re: Impossible to use icon in menu

Posted: Wed Jan 31, 2018 4:17 pm
by iatros
Clement wrote: Wed Jan 31, 2018 4:06 pm keep the link in the current tab?
what do you mean?
Qu'est-ce que tu entends par là ?

Re: Impossible to use icon in menu

Posted: Thu Feb 01, 2018 8:08 am
by Clement
Well, currently when I click the envelope, https://www.meteomelin.be/template/indexDesktop.php the page is opened in a new tab.

Is is possible to open this link in the current tab?
If yes, how?

Again, this is to limit hard coding...

Re: Impossible to use icon in menu

Posted: Thu Feb 01, 2018 9:25 am
by iatros
In MENU - MAIN TABS
click on the gear wheel in the "Contact" line, then add:

>>>
>>Contact
#plugin(contact)

This is how it works for me (meteo.dubler.com), menu tab Info !

cheers, Martin

Re: Impossible to use icon in menu

Posted: Thu Feb 01, 2018 10:00 am
by Reinhard
Hi Clement,
look at this:

Code: Select all

<a href="https://www.meteomelin.be/template/plugins/contact/" target="_blank" class="digimeg-nav-item" style="padding-top:0.1em!important;padding-bottom:0.1em!important;padding-left:0.5em!important;padding-right:0.5em!important;font-size:2em">....
You should remove target="_blank" - then it does not open in a new tab or new window. Hope this helps.

Re: Impossible to use icon in menu

Posted: Thu Feb 01, 2018 7:01 pm
by Clement
Hello,

Yes I know this is due to the blank target.
How is it possible to fix that in meteotemplate configuration?

I ask that before hard coding this feature in the meteotemplate code which will make the update very difficult.
I have already modified some code in blocks so this makes scripts to update when an update comes out...