Viewing 15 replies - 1 through 15 (of 35 total)
  • Plugin Author lynton_reed

    (@lynton_reed)

    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 shortcode

    Thread Starter moonkir

    (@moonkir)

    I 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

    Thread Starter moonkir

    (@moonkir)

    but now not delete files 🙁

    Plugin Author lynton_reed

    (@lynton_reed)

    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

    Thread Starter moonkir

    (@moonkir)

    THX Lynton!

    Thread Starter moonkir

    (@moonkir)

    How use page_title () for wtf_upload_subdir = ?

    Plugin Author lynton_reed

    (@lynton_reed)

    I have no idea what you mean can you explain a bit more please.

    Thread Starter moonkir

    (@moonkir)

    In the name of subdir = ‘page_one’ (in the shortcode) to use the name of the current page automatically
    sorry for my bad english

    Plugin Author lynton_reed

    (@lynton_reed)

    sorry 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.

    Thread Starter moonkir

    (@moonkir)

    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_subdir

    I have many pages

    wtf_upload_subdir write for each page takes a long time

    How to transfer title of the page in wtf_upload_subdir

    and no need to inscribe on each page name wtf_upload_subdir

    Plugin Author lynton_reed

    (@lynton_reed)

    ok , 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.

    Thread Starter moonkir

    (@moonkir)

    ‘%%WORKFLOW_STAGE_TITLE%%’ – this is for PRO version?
    not work…

    Plugin Author lynton_reed

    (@lynton_reed)

    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.

    Plugin Author lynton_reed

    (@lynton_reed)

    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.

    Thread Starter moonkir

    (@moonkir)

    brilliant! It works!
    Cyrillic but apparently not supported for both files and directories ..

Viewing 15 replies - 1 through 15 (of 35 total)

The topic ‘Edit view upload file’ is closed to new replies.