verbb / icon-picker

A Craft CMS field to select SVG or font icons from a folder for use in your content.
Other
17 stars 8 forks source link

Filename without the extension #3

Closed CreateSean closed 5 years ago

CreateSean commented 5 years ago

Description

I'd like to be able to output the file name without the extensions. So if I have an icon twitter.svg a tag that would output twitter would be great.

is this possible?

Steps to reproduce

1. 2.

Additional info

engram-design commented 5 years ago

You can use {{ entry.iconPickerField.getIconName() }} as of 1.0.1