-
- 27 Posts
Is it possible to create a resource automatically, possibly via getResources?
Let's say that I want a resource to be created at site.com/folder/resource-1 from a link on another resource and the name of the resource should match a TV on that resource...
Thanks
-
- 24,544 Posts
getResources is definitely not what you want here, it's for displaying things, not creating them. You'll need a custom snippet. The code for that is not too difficult, the trick is making the code run and making sure it only runs once.
We need a lot more information to help you.
When do you want this to happen and why?
Where is the information in the TV coming from and do you want to create a new resource every time it changes?
Should the new resource be published and/or hidden from menus?
What is the ID of the parent of the new resource?