verbb / navigation

A Craft CMS plugin to create navigation menus for your site.
Other
90 stars 23 forks source link

Add `download` toggle for Asset nodes #286

Closed acalvino4 closed 2 years ago

acalvino4 commented 2 years ago

What are you trying to do?

When configuring a node you can toggle "open in new window", which adds target=_blank to the link attributes.

I want to propose something similar for allowing assets links to be downloadable - a toggle which has the effect of adding the download attribute to the link attributes for that asset.

engram-design commented 2 years ago

Sure thing! At the moment you can add that attribute yourself, if that helps in the meantime.

image

engram-design commented 2 years ago

Just to keep things lean, I'm going to recommend people use the attributes to handle this. If you want to add this yourself, you can also add a custom field for a lightswitch, for you to add this for your users.