Is there a way to get file_url in a static resources? If i use [[*content]] tag, it'll display the file content instead. I can use TV or MIGX for those but I think it's not necessary to add one more entry in the table.
And, is there any contentType plugin which helps automatically update document type base on it's url?
What is the file_url of a Static Resource? They only have a defined source file, and the standard uri any MODX Resource does.
Hi opengeek,
My structure is like this:
- Shared Documents
--- Staic_resource1 (path/to/file/1)
--- Static_resource2 (path/to/file/2)
...
file_url is the path we choose for static_resource(which means [[*content]]). I just want to reuse what I'm having, not to create new TV for file uploading.
Then in other resource, I'll call getResources snippet to list those static_resources file_url (not static_resource uri but it's [[*content]] file path).
Hope you understand what I mean.