In 2016 many sites use "Icons" for menu items.
Just add "field" for "Icon".
i mean, just add one field in database for set path to icon (for menu item).
everybody can use Font Awesome icons - https://github.com/FortAwesome/Font-Awesome
Category | ⇒ | Administration |
Status | New | ⇒ | Information Required |
Labels |
Added:
?
|
As I said you can already do that either with link class or link image
using the fields above. That is what they are for.
@brianteeman Joomla use old way. now i can put only link for image.
how i can put "fa fa-facebook" syntax. where this field?
In the link CSS field
Use Google you will find lots of tutorials how to do this
user-friendly cms? needs to be improved.
you are right ... almost, you see if the icon is added the way that you suggest:
<a class="icon-download"> ... link text ... </a>
Then it has the problem that icon-* is limited to the width of a letter e.g. 14px (the font-icon is indeed added via :before but the HTML tag itself gets a width limit)
Font-based icons (usually) need a separate HTML Tag :
<!-- icon outside the link -->
<span class="icon-download"></span> <a> ... link text ... </a>
<!-- or if you want the icon to be inside the link: -->
<a> <span class="icon-download"></span> ... link text ... </a>
Effectively this will be an option to use instead of the parameter "Link image"
(although someone could use both ...)
@sanek4life , besides the built-in menu modules that would be easy to update, all 3rd party developers, would need to update their menu modules, which would lead to new users wondering why their menu module do not use the icon
It is possible to do via just CSS , because of menu item having class "item-NNN", still i think this is nice to add, and more user-friendly
Sorry but that is simply not true at all
ok, but everything that i said is false or some of it ?
do you mean that this is not really needed ?
This introduces more issues than it solves.
As proposed, it vendor locks to a specific icon provider, making that the third icon font family Joomla core would implicitly support (FontAwesome, Glyphicon, and IcoMoon). It's a glorified field to add a wrapping i|span
tag to the beginning of a menu item's label.
Next it only supports font icons and only those which work with whatever arbitrary HTML element is selected. It doesn't support images.
Last, you can accomplish this already with custom CSS elements or if you really know what you're doing a mix of layout overrides and plugins to add the form field yourself. Yes, it's a little bit more work, but it is the most flexible option.
1 . "vendor lock" to specific icon provider ?
i don't understand why we should blame such a feature to cause "vendor locking"
2 . about supporting images, there is no issue, because there is already a parameter for using images, we don't need to touch this parameter, neither the PHP code that uses it
3 . Accomplishing this via CSS is not for end-users, a end-user will have to call the site maker to change the icon
4 . And if we indeed make this "vendor-locked" and instead of text-input we use a ... select drop down, to select icons of (FontAwesome, Glyphicon, and IcoMoon) (warning that the web-sites must have these installed) then i am sure many users will like it !
but i do not suggest we do the "4"
1) The OP wants FontAwesome, look at the screen shot and follow on comments. I'd say that's a pretty heavy vendor lock to a resource that's not even included in Joomla right now when people are already groaning that Joomla shouldn't be vendor locked to anything when it comes to UI.
2) Sorry, I don't see any reason to add another field to an already option bloated platform for this. This is usually where I'm told to stop thinking like a developer, but frankly it's annoying trying to traverse the parameters tree for every possible scenario and trying to figure out where to draw the line on parameters. And this is opening a pandora's box. Do we only support a font icon before the text, after the text, make it user configurable, give an option that allows an icon in both spots (which means two inputs).
If you're gonna maintain a website, you have to have some minimalistic understanding of what HTML and CSS are. If you're using one of the main CMS', add PHP and at least MySQL into the mix. It is impractical to create a platform that makes a user completely ignorant to the absolute basics of web pages and trying to do so is how you create a user base where they just throw random sites on the internet and don't understand the effort it takes to maintain it.
About FontAwesome i agree with you,
that is why i said this to be a text input so that it is not a vendor-locked thing
consider this, if we don't call it "Icon class"
will it still be a "vendor locking" thing ?
Depends. Do the different font vendors support a <span>
tag? I can't say I pay much attention to HTML semantics but every project I do with font icons seems to use the <i>
tag.
And it's still opening a pandora's box. You add a parameter to add font icons. Why can't I then change that into some other kind of label (maybe I want a "new" label in front of the menu item and that prefaced span tag that supports icons would be perfect for it, I'll just add a parameter to put text inside it now).
I see a bigger picture, I see this creating more issues and more feature requests down the road and bloating up the menu modules and parameters. I don't believe that the admin components need to support every practical configuration out of the box, they need to present generalized use cases with enough flexibility to do more specialized stuff. I believe the support of font icon prefaced (or suffixed) images is a more specialized use case that should be done with an extension.
@mbabker
All your arguments are valid,
yes indeed i see why this is problematic, one would ask
... why add a parameter for span with class ... and not add a parameter ... "Prepend HTML to menu item title"
Last thing i can say, it is "neat" to have this at the menu item, easier to locate it / edit it
Then there is the argument that there are menu extensions that do this
i know, Joomla have field for "image" with weblink
i just want field, where i can write "fa fa-facebook" word for show Facebook icon with menu item.
And I keep saying you can do that using the existing field and have been
able to do that for at least 5 years
(you will of course need to support it in your template)
A quick google will prove that eg
On 19 June 2016 at 21:41, s notifications@github.com wrote:
i know, Joomla have field for "image" with weblink
i just want field, where i can write "fa fa-facebook" word for show
Facebook icon with menu item.—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#10866 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABPH8T5xoy9ye_Ky3kJD0UDoWnKyMO72ks5qNallgaJpZM4I5Hu2
.
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
You can add a new section to JED - fonts that I can connect to the Joomla.
I choose it for example "Google fonts" or "Font Awesome" or other.
Please look before suggesting things. Just search the jed for fontawesome.
Multiple options exist.
This is now closed as it has been asked and answered multiple times.
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-06-19 21:05:50 |
Closed_By | ⇒ | brianteeman |
A lot has changed over the past 4 years and now @joomla officially uses FontAwesome in Cassiopeia template.
I think this discussion should be open again and that makes sense.
Font Awesome icons for:
@infograf768 @richard67 What do you think about this?
These icons are already used in Joomla. Maybe expand their application at least for menu items
? This will really help in navigating the website.
How is this any different to the field directly above it labeled link image and link style
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10866.