Edit view upload file
-
I would like to change the display of the downloaded file to a shortcode [wtf_fu_show_files]to this:
http://www.screencourier.com/image/40E45C5A705583292uounf0pm3And remove the DELETE button
Is that possible?
-
There us a vertical attribute for [wtf_fu_show_files] that displays one row per line.
You can try
[wtf_fu_show_files vertical='1']to see if that is closer to what you want. (see the documentation tab for other available attributes for the wtf_fu_show_files shortcodeI delete
$container_id = 'files_container'; $ul_id = 'files_list'; if ($this->options['reorder'] == true) { $container_id = 'sort_container'; $ul_id = 'reorder_sortable'; }and
if ($this->options['show_numbers'] == true) { $file_title_class = 'pad_top_20px'; $number_div = "<span class='reorder-number'>$number</span>"; }in \work-the-flow-file-upload\public\includes\class-wtf-fu-show-files-shortcode.php
Show only link on file.
http://www.screencourier.com/image/40E45C5A70558329863qdyyhuu
but now not delete files 🙁
Moonkir,
Hacking the code is fine but be aware that
1) I can’t offer any support for hacked code.
2) When you update you will loose your changes.If you want to turn off options such as the numbering and reordering you can simply supply attributes to do so without having to modify any code.
See the documentation tab for the available shortcode options.
For example you may want to try something like
[wtf_fu_show_files wtf_upload_dir="wtf-fu_files" wtf_upload_subdir="default" show_numbers="0" vertical="1" download_links="0"]If you cant get what you want from the attributes then you could always write your own function to display the files how you want to.
lynton
THX Lynton!
How use
page_title ()forwtf_upload_subdir =?I have no idea what you mean can you explain a bit more please.
In the name of subdir = ‘page_one’ (in the shortcode) to use the name of the current page automatically
sorry for my bad englishsorry moonkir I still don’t understand,
what shortcode do you mean, please paste the exact code you are trying to use. Then I might understand.
or try google translate to convert to english.
I have page – her name page_one
i have shortcode[wtf_fu_upload use_public_dir = "1" wtf_upload_dir='skp' wtf_upload_subdir='page_one']Page name matches a name directory
wtf_upload_subdirI have many pages
wtf_upload_subdirwrite for each page takes a long timeHow to transfer title of the page in
wtf_upload_subdirand no need to inscribe on each page name
wtf_upload_subdirok , I think I understand.
You want to pick up the workflow stage_title as the directory name for the file upload.
try
[wtf_fu_upload wtf_upload_dir="demofiles" wtf_upload_subdir='%%WORKFLOW_STAGE_TITLE%%']This will work as long as the stage_title’s uses legal directory name characters.
‘%%WORKFLOW_STAGE_TITLE%%’ – this is for PRO version?
not work…This works in the free version, but the [wtf_fu_upload] shortcode must be embedded inside a workflow stage for %%WORKFLOW_STAGE_TITLE%% to work.
Maybe you are just embedding [wtf_fu_upload] inside a page/post and not inside of a workflow, in that case then it won’t have any workflow stage title available to use and will not work.
If you are not using workflows and just trying to get the wordpress page title then you can use a plugin like ezphp which will allow you to add php code and dynamically generate the shortcode subdir for you like this
[wtf_fu_upload wtf_upload_dir="demofiles" wtf_upload_subdir='<?php echo get_the_title();?>']Any other php plugin should work, I tried this with ezphp and it worked.
brilliant! It works!
Cyrillic but apparently not supported for both files and directories ..
The topic ‘Edit view upload file’ is closed to new replies.