Did Ruben's post and example assist you getting your use case working as you wanted? If so, please do not forget to return to your post and on Ruben's post, use the Accept as Solution button to mark that as the solution giving him credit for the help and to let other Members know this worked.
The only thing I have to add to what he has provided is a link to the Design Blog area to a post that will likely be able to further explain how to go about things, and I will include the base URL for you at the end in case you want to search that area further on your own.
To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question. I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.