How should I create an action on the content tab of a folder that acts on all items that are selected?

StackOverflow https://stackoverflow.com/questions/18320321

Question

I asked a series of questions in a post last week, and the person who answered very wisely suggested that I split it into separate questions. I have added a CMF action for folders called "Remote Publish". The button now shows up when viewing the "Content" tab for all folders. How would one now add the logic to do something as simple as writing the titles of the selected items to a log when the button is clicked? Ultimately I will have the selected items share their titles with a web service that I have written, but I am thinking baby steps :D Any help is appreciated.

Was it helpful?

Solution

The simplest thing you can do is: copy what other button are doing!

For example: copy the CMF skin script name folder_delete.cpy. You'll see that paths parameter if loaded from the REQUEST.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top