pepebe Reply #1, 3 months, 2 weeks ago
I'm thinking about somthing like document specific media resource folders.
The idea is to have an individual folder for each document ID. How they are created isn't the toppic of this post, let's asume they are already here.
The structure goes like this:
If you extend this system to 4 digits, you can easily handle 9999 documents.
Admittedly this is an awful lot of clicking but with the introduction of media resources in REVO 2.2 you can set a base_path and a base_url for specific resources. This makes things much easier. Now it takes only three clicks to navigate to the correct folder.
Heres my question: How can I hack the media resources system to automatically open the document-specific folder?
Adding a snippet to the base_path and base_url parameters doesn't seem to work,
The snippet doesn't seem to be parsed and as a result the path is broken.
So what comes next. Can the media resource system be enhanced by a plugin, do I have to hack the core?
Please share your thoughts.
Regards,
pepebe
The idea is to have an individual folder for each document ID. How they are created isn't the toppic of this post, let's asume they are already here.
The structure goes like this:
assets/ID/000/
00/
1 -> ID: 1 -> assets/ID/000/00/1
2 -> ID: 2 -> assets/ID/000/00/2
...
10/
20/
1 -> ID: 21 -> assets/ID/000/20/1
2 -> ID: 22 -> assets/ID/000/20/2
...
...
assets/ID/100/
assets/ID/200/
assets/ID/...
If you extend this system to 4 digits, you can easily handle 9999 documents.
Admittedly this is an awful lot of clicking but with the introduction of media resources in REVO 2.2 you can set a base_path and a base_url for specific resources. This makes things much easier. Now it takes only three clicks to navigate to the correct folder.
Heres my question: How can I hack the media resources system to automatically open the document-specific folder?
Adding a snippet to the base_path and base_url parameters doesn't seem to work,
assets/img/ID[[!pathToDocFolder]]
The snippet doesn't seem to be parsed and as a result the path is broken.
So what comes next. Can the media resource system be enhanced by a plugin, do I have to hack the core?
Please share your thoughts.
Regards,
pepebe
). In the end I gave up on the whole topic and switched over to other things.