Closed int99h closed 11 years ago
&browseDirectories=1
I does the job.
browseDirectories enabled... i just see the path without links.
Not even like this? http://imageshack.us/photo/my-images/26/breadcrumbspath.jpg/
What is your complete call?
[[FileDownload? &getDir=media/
&browseDirectories=1
]]
tpl-group-dir.chunk.tpl: my: `<tr[[+fd.class]]>
</tr>`
original: `<tr[[+fd.class]]>
</tr>`
any ideas?
The breadcrumb is [[+fd.path]] in the wrapper chunk. https://github.com/goldsky/FileDownload-R/blob/master/core/components/filedownload/elements/chunks/tpl-wrapper.chunk.tpl Does it exist?
Why do you replace the path? What if you set it back as usual? This is the breadcrumb method: https://github.com/goldsky/FileDownload-R/blob/master/core/components/filedownload/models/filedownload/filedownload.class.php#L1152
wrapper:
`
Файл | Загрузок | Размер | Дата |
---|
try to use backslash before the square bracket and back tick [[`
do you use non-ASCII character for the folder name?
folders and files english only... with native files - no changes core/cache/ - clear... no changes
try upgrade the latest update
fd.path return nothing...
fd.groupDirectory return non-clickable path
I think the new modx phased what you were using to get the breadcrumb path... i think that's the issue int99h was seeing. What i did to hack it was just edit the tpl-wrapper.chunk.tpl to just add:
<td colspan="4"><strong>Path: <a href="[[~45]]">[[~45]]</a></strong></td> where 45 is the main directories parent.
Now of course this won't work for multi-level folders, but for my purposes its a quick and dirty hack that will work.
I got it. This doesn't work when crawling folders without having files. Will make the fix.
@goldsky,
I got it. This doesn't work when crawling folders without having files. Will make the fix.
Apparently, that is not the case, I missed out because I changed the wrapper template file on my test. But I did make the improvement for breadcrumb. https://github.com/goldsky/FileDownload-R/commit/cded7514faa0954652cfd8eff4231163c8c42252
same Problem here: fd.groupDirectory return non-clickable path. Using ModX 2.2.2 and the latest FileDownload R via Packagemanagement.
@dhoelker, what is your snippet call?
hi goldsky,
thats my snippet call
[[!FileDownload? &getDir=`assets/downloads/` &browseDirectories=`1` &groupByDirectory=`1`]]
thx for help
Edit: My System: PHP Version 5.3.3-7 Debian Squeeze13
pleeease help me :-/
how is your folder structure? what's the content of core/components/filedownload/elements/chunks/tpl-wrapper.chunk.tpl ?
You are the man!!! thank you =)
How to use path as navigation (with links)? like: root-link / dir1-link / dir2-link/
Inconvenient always click browser back-button.