Jump to content
buster808

Rename image with hyphens

Recommended Posts

Hi is there a way hyphens can be added automatically when renaming images so I don't have to type them in.

Just like when you name a page.

Thanks

Screen Shot 2019-08-22 at 12.03.48.png

Share this post


Link to post
Share on other sites

Thanks Dragan

I would like the filename automatically generated from the description.

description: lets have a party (becomes below)
image: lets-have-a-party.jpg

Just like when you add the url name for the page

Share this post


Link to post
Share on other sites

In that case, I guess you'd have to look into using hooks.

But digging deeper into @adrian's module description linked before, it seems there's an option that will do just what you are looking for:

Quote

If 'Rename on Save' is checked files will be renamed again each time a page is saved (admin or front-end via API).

WARNING: this setting will break any direct links to the old filename in your template files. However, images inserted into RTE/HTML fields on the same page will have their links automatically updated.

I have never used this myself, so I guess you should simply try it out and see if it works for you...

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...