News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Date format in {custom_value_11}

Started by andrezones, 08.10.2015 15:00:53

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

andrezones

How do I apply the date format d-m-Y  in {custom_value_11}
  •  

ColinM

#1
Hi
Do you mean how to format the resultant date when it is shown? If you do it is controlled by the Long-datefoermat in the Downloads Tab of Config.Edit Not sure will check out

For formatting details the following might be useful
http://www.jdownloads.net/documentations/item/international-dates-times-and-number-style

If you mean how to get the information into a Download when editing or creating it the the attached pics might help.

To show the information you need to edit the relevant Layout - typically athe Active Files Laout or the Download Details Layout

This documentation is sometimes useful
http://www.jdownloads.net/documentations/category/editing-layouts

Colin

[gelöscht durch Administrator]
Colin M
  •  

Arno

Hi,
it is not possible to change this via configuration.
The only way is to override the definition in  /components/com_jdownloads/models/forms/download.xml

You will find in line 614 this:
        <field name="custom_field_11"
            type="jdcustomfield11"
            class="inputbox"
            required="false" />
           
        <field name="custom_field_12"
            type="jdcustomfield12"
            class="inputbox"
            required="false" />


You can change it to this:

        <field name="custom_field_11"
            type="jdcustomfield11"
            class="inputbox"
            size="22"
            format="%e. %B %Y"
            filter="user_utc"           
            required="false" />
           
        <field name="custom_field_12"
            type="jdcustomfield12"
            class="inputbox"
            size="22"
            format="%e. %B %Y"
            filter="user_utc"           
            required="false" />

Result see pic.
You can also use the (unzipped) file below. But make sure that you use the "override" function from Joomla. Otherwise will you lost this modifications after the next jD update.


[gelöscht durch Administrator]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

andrezones

Hello Arno,
Thanks for the help, I rewriting the file but it worked. Still appears year-month-day. I want to day-month-year

[gelöscht durch Administrator]
  •  

andrezones

  •  

Arno

Can you send me login data for your backend as super user via PM?
Also FTP login data would be useful.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •