Upload field question

  • Hertak
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0

Hertak created the topic: Upload field question

Hi, i need an upload field with some special path all is here crosstec.org/en/support/online-documenta...fferent-folders.html

My problem is the date i need only the year. Is that possible?

My structure have to be something like this root/files/specialfield/2018/folder/path

is for an intranet, i know that can be possible putting the year in number but is there a way to take the year automatically?
Thanks
#232496
  • Posts: 1465
  • Karma: 48
  • Thank you received: 194

mihaela replied the topic: Upload field question

Hello,

There is no mask that would display the current year only and not the whole date.
{date} shortcode will display the whole date.

However, there is a way to achieve what you want.

You can create a Hidden input filed in your form named "year" that will collect the current year.
In order to do so, go to Properties of that new "year" element and in put the following code in the
Value
field:
<?php return date("Y") ?>
That will fill the hidden field with the current year.

Then you can use the following shortcode in path to the picture creation:
{year:value}

Let me know whether this solution works as you wanted.

Regards,

Mihaela
#232498
  • Hertak
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 24
  • Thank you received: 0

Hertak replied the topic: Upload field question

Many thanks work for me
#232536
  • Posts: 1465
  • Karma: 48
  • Thank you received: 194

mihaela replied the topic: Upload field question

Hello again,

Great! I'm glad that it worked.

Regards,

Mihaela
#232538
Moderators: ForumSupporttomeperica
Time to create page: 0.067 seconds

New Support System

Dear Customers,

Users with active subscription have support priority which will be dona via ServiceDesk (My Account > Raise a ticket).
FREE Support topics will be answered when AND if there is time.

You can check support guidelines here : here

Regards,
Crosstec Team

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here

News and Updates

Get informed about new downloads, updates and more in our News and Updates newsletter.

All Extensions Subscription

Get 1 year access to all of our current and future products and 1 year of professional support -- 99€

No support per domain or website installation limits! Includes all of our current and future Joomla!® extensions, Joomla!® templates for the duration of your membership. This means, by purchasing an All Extensions Subscription you'll have it all covered!

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!

Community Reward

Help us to create new extensions and plugins! With only $5 you help us a lot and get unlimited download access to all of our products, professional support and even more. Get your reward now!

Read More Here