I'm right now converting a site to UMBRACO Pro, and finds it very nice and easy to work with. But I have fallen into a small issue, that I would like to know if there's a solution to.
Right now I'm using a upload control to provide images to the article, but I've notised that the images create their own folder under \media. I would like to collect all images for one article in the same folder (for example the article id). Is that possible, or are there any smart ways to do this thing ?
Or am I just old fashioned. But since we post alot of articles, I would like to keep a nice and clean folder structure.
If using the upload control, no, it's not possible. Only thing that can be configured is wether using those 'id' folders or not. But, as umbraco is as flexible as can be, you can build/create your own datatype and use your own business logic to create the necessary folders...
Building your own datatype isn't that difficult, just build a user control and host it inside a 'user control grapper' (don't worry about that name, there's a spelling mistake...)
tim has done a great tutorial on rolling your own datatype this way and can be found here.
Rapid Article Template
Hi there.
I'm right now converting a site to UMBRACO Pro, and finds it very nice and easy to work with. But I have fallen into a small issue, that I would like to know if there's a solution to.
Right now I'm using a upload control to provide images to the article, but I've notised that the images create their own folder under \media. I would like to collect all images for one article in the same folder (for example the article id). Is that possible, or are there any smart ways to do this thing ?
Or am I just old fashioned. But since we post alot of articles, I would like to keep a nice and clean folder structure.
Many regards
Jens E. Hummelmose
Hi Jens,
If using the upload control, no, it's not possible. Only thing that can be configured is wether using those 'id' folders or not. But, as umbraco is as flexible as can be, you can build/create your own datatype and use your own business logic to create the necessary folders...
Building your own datatype isn't that difficult, just build a user control and host it inside a 'user control grapper' (don't worry about that name, there's a spelling mistake...)
tim has done a great tutorial on rolling your own datatype this way and can be found here.
Hope this helps.
Regards,
/Dirk
Thanks a lot.
I'll look into that.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.