Johani
(Joe)
16 Maggio 2018, 2:15pm
1
Install this theme component
Samples
Desktop
Mobile
Settings
You add links via comma delimited values in this order:
Text,URL,Location,Target
Text
is the name of the link that shows on the menu.
URL
is the path you want the link to have. You can use relative paths like
/tags/funny
or
/t/231
if you prefer.
Location
can have one of two values. Either the letter g or the letter f
Use “g” if you want the link to appear in the generalLinks section:
or use “f” if you want the link to appear in the footerLinks section:
Target (optional)
Use “blank” if you need the link to open in a new tab.
59 Mi Piace
Thats a nice addition, thanks for that. It’s already installed
Could you add a target option so that it is possible to open the link in a new tab/window (if no target is given just use “_self”)
Text,URL,Location,Target
10 Mi Piace
ngets
(ngets)
8 Luglio 2020, 2:41am
46
Please add an option to place the link at the very top of the dropdown panel
5 Mi Piace
nathank
(Nathan Kershaw)
28 Agosto 2020, 10:13pm
47
I might have a go at this myself at some stage (have to learn a wee bit first), but I’m putting my thoughts down here for now:
Feature Requests:
No 1: Allow hover text. This is now used for the core hamburger links, and would be very helpful
No 2: Merge with Rob’s fork, which is clearly a good idea:
merefield:
Just add an additional ,N if you want the link to appear for anon users (aka Not Private), or ,Y if you don’t (Yes to Private).
No 3: Allow target=“_blank” as per Richie (also clearly a great idea):
Richie:
This is a great component but I’d also love to be able to target links to a new window
No 4: Allow more control of link ordering (likely very tricky!)
7 Mi Piace
Is there a way that the custom hamburger menu links can be translated depending on the user interface language?
For example, I could wrap yaml translation files into a custom plugin, but I’m not sure which translation keys I could use.
No practical way to do this?
2 Mi Piace
rolando
(rolando)
10 Ottobre 2020, 12:20pm
49
is there any way on customizing the links in order to place them on a certain order?
6 Mi Piace
savas
(Mindaugas BartuseviÄŤius)
4 Novembre 2020, 11:45am
50
So are we got the possibility to open in new tab?
1 Mi Piace
Richie
(Richie Rich)
5 Novembre 2020, 7:20pm
51
I don’t think anyone is working on this anymore @savas
2 Mi Piace
mognet
6 Novembre 2020, 8:16pm
52
Seems i have trouble adding this to footer links even i add f on Locations. Does anyone have the same trouble?
1 Mi Piace
Richie
(Richie Rich)
6 Marzo 2021, 9:18pm
53
I got really excited this evening when I saw this!!
I was soooooo much hoping that there was a new feature to open links to a target="_blank"
Jumped straight on GitHub to see what was new!
Oh @tshenry I was so disappointed
3 Mi Piace
tshenry
(Taylor)
9 Marzo 2021, 1:07am
54
Richie:
I was so disappointed
Maybe this will help?
committed 01:03AM - 09 Mar 21 UTC
That seemed to be the most requested feature and it wasn’t too hard to add support. That’s it for now though
18 Mi Piace
Richie
(Richie Rich)
9 Marzo 2021, 5:01pm
55
My life is now complete
Thank you @tshenry this is fantastic news
4 Mi Piace
Hey quick question, how does one localize the custom hamburger menu text? I want to fully localize my forum and I can’t seem to find the text anywhere.
2 Mi Piace
thegurjyot
(Gurjyot Singh)
24 Maggio 2021, 8:35pm
57
This is a useful component. But can we add font awesome icons there? It would be great to show social media profile icons there, so that people can follow our social profiles easily.
2 Mi Piace
That is fantastic, thank you!
Maybe you can tell me quickly - how to localize the custom hamburger menu text?
3 Mi Piace
manuel
(Manuel Kostka)
1 Luglio 2021, 10:11am
59
I added support for icons, you could try out this fork of the component: GitHub - nolosb/discourse-custom-hamburger-links-with-icons
Two notes on usage:
The icon would be the first item in the list:
If you want a link without icon, just don’t add it, but keep the trailing comma ,
If the icon is not included by default, remember to add it to the icon list:
7 Mi Piace
thegurjyot
(Gurjyot Singh)
3 Luglio 2021, 6:51am
60
Can you puch these changes to the official Theme component? It’s always better to have the official Theme component installed as it’s going to be maintained with Discourse future updates.
8 Mi Piace
Sarebbe bello unire questo al plugin ufficiale. Voglio aggiungere pulsanti dei social media nel menu hamburger. Ma senza icone non avrebbe un bell’aspetto.
Inoltre, non è chiaro che non è consentito alcuno spazio nei campi CSV.
Questo funziona: Footer Link,https://google.com,f
Ma con spazi, l’elemento viene inserito nel campo generale anziché nel piè di pagina, a causa dello spazio mancante: Footer Link, https://google.com, f
2 Mi Piace
Canapin
(Coin-coin le Canapin)
15 Ottobre 2022, 11:16pm
63
Ciao!
Con la nuova barra laterale, la possibilitĂ di aggiungere icone personalizzate ai nostri link sarebbe una bella aggiunta.
Posso provare a lavorarci e fare una PR nei prossimi giorni…
9 Mi Piace
Canapin
(Coin-coin le Canapin)
17 Ottobre 2022, 10:52pm
64
Domanda veloce…
Ho installato il componente del tema su una nuova istanza di Discourse, ma per qualche motivo non identificato, i link predefiniti non appaiono nella sezione altro della barra laterale:
Non ho modificato il codice, è una nuova installazione del componente del tema.
Tuttavia, il componente del tema, installato due anni fa, funziona sul mio altro forum:
Non viene visualizzato alcun errore. Qualche idea sul perché il componente del tema non funzioni sulla mia nuova installazione?
4 Mi Piace