Way back in August, one of the SDL Tridion MVPs - Dominic Cronin, proposed a challenge to the SDL Tridion community. The challenge was to create a bookmarklet to perform something useful in the SDL Tridion GUI.
The challenging part of this challenge was definitely thinking of something to do in SDL Tridion. Bookmarklets are not GUI Extensions, they need to be really, really simple. The idea is to save you a few clicks or perform some repetivie actions - like a macro in a text editor.
I tried a couple of ideas and then hit on renaming items! Quite often I spot a Component Template not following naming conventions and want to quickly rename it but you have to open the item and then save it. It's like 3 steps - I reckoned I could make that easier.
So my entry is Rename Tridion Item
Disclaimer: this code is not production quality and has only been briefly tested on a dev environment - I suggest that you do the same as it may automatically check in items depending on your permissions. I am not responsbile for any data loss! Only tested on SDL Tridion 2013 SP1.
- Focus an item in the dashboard view and click the link.
- A prompt will appear like this (old school!)
- Enter the new name and click OK and the item is renamed
- Create a new bookmark in your browser called "Rename Tridion Item"
- Add the following to the link field:
Here's the full code:
I followed the process in this article: http://code.tutsplus.com/tutorials/create-bookmarklets-the-right-way--net-18154
I found it quite difficult to develop as I haven't done any GUI Extensions for a while so remembering how it all worked was challenging but a lot of fun.