Impossible to use icon in menu

Post Reply
Clement
Newbie
Newbie
Posts: 6
Joined: Sun Jan 07, 2018 8:16 pm
Station model: Davis Vantage Pro II

Impossible to use icon in menu

Post by Clement » Wed Jan 31, 2018 10:31 am

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

User avatar
iatros
Language Admin
Language Admin
Posts: 146
Joined: Mon Aug 21, 2017 5:56 am
Location: Flims Waldhaus Switzerland
Station model: Davis Pro 2 6163
Software: Meteobridge
Contact:

Re: Impossible to use icon in menu

Post by iatros » Wed Jan 31, 2018 1:28 pm

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 7802 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 7802 times
good luck!

Martin
Image

Language Admin für Deutsch

Clement
Newbie
Newbie
Posts: 6
Joined: Sun Jan 07, 2018 8:16 pm
Station model: Davis Vantage Pro II

Re: Impossible to use icon in menu

Post by Clement » Wed Jan 31, 2018 4:06 pm

Big thanks Martin.
Any idea how to keep the link in the current tab?

User avatar
iatros
Language Admin
Language Admin
Posts: 146
Joined: Mon Aug 21, 2017 5:56 am
Location: Flims Waldhaus Switzerland
Station model: Davis Pro 2 6163
Software: Meteobridge
Contact:

Re: Impossible to use icon in menu

Post by iatros » Wed Jan 31, 2018 4:17 pm

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à ?
Image

Language Admin für Deutsch

Clement
Newbie
Newbie
Posts: 6
Joined: Sun Jan 07, 2018 8:16 pm
Station model: Davis Vantage Pro II

Re: Impossible to use icon in menu

Post by Clement » Thu Feb 01, 2018 8:08 am

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

User avatar
iatros
Language Admin
Language Admin
Posts: 146
Joined: Mon Aug 21, 2017 5:56 am
Location: Flims Waldhaus Switzerland
Station model: Davis Pro 2 6163
Software: Meteobridge
Contact:

Re: Impossible to use icon in menu

Post by iatros » Thu Feb 01, 2018 9:25 am

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
Image

Language Admin für Deutsch

User avatar
Reinhard
Advisor
Advisor
Posts: 84
Joined: Fri Aug 25, 2017 9:42 am
Location: Prägraten am Großvenediger
Station model: Davis VP2 Pro wireless
Software: WeatherCat
Contact:

Re: Impossible to use icon in menu

Post by Reinhard » Thu Feb 01, 2018 10:00 am

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

Clement
Newbie
Newbie
Posts: 6
Joined: Sun Jan 07, 2018 8:16 pm
Station model: Davis Vantage Pro II

Re: Impossible to use icon in menu

Post by Clement » Thu Feb 01, 2018 7:01 pm

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

Post Reply