Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Format view
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Format view
#55073
Format view 9 Years, 5 Months ago Karma: 0
Is it possible to change display format? For example data from database is like that: 20150629 and in table I want to display it as 2015/06/29
The administrator has disabled public write access.
 
#55077
Re:Format view 9 Years, 5 Months ago Karma: 760
For example if you want to format value of publish_date column, the use the following SQL query:

Code:


SELECT
 DATE_FORMAT(publish_date, '%Y/%m/%d') AS publish_date
...



or another solution if you want to format values from "created" field, set "Columns settings -> ID" parameter to created value and populate "Columns settings -> Format" parameter with the following value:

Code:


{$value|regexreplace:#(\d\d\d\d)(\d\d)(\d\d)#:$1/$2/$3}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#55078
Re:Format view 9 Years, 5 Months ago Karma: 0
Thank you for quick response. But the thing is that if now I start search using '20150629' as keyword it says that there is no matches found. What I want is to display formated data for users but for search use original data. I don't want to change the value of {$value}. I just want to display it in different format for users. Is it possible?
The administrator has disabled public write access.
 
#55079
Re:Format view 9 Years, 5 Months ago Karma: 760
If "ARI Data Table" widget is used ("Choose table type" parameter is set to "ARI Data Table") then it is possible to use the second solution from our previous post and set "Server side pagination" parameter to "Yes". Check that "System - ARI AJAX Dispatcher" plugin is installed and enabled.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#55080
Re:Format view 9 Years, 5 Months ago Karma: 0
And without that there is no way to doing that? Because in my situation I cannot use "server side pagination".
The administrator has disabled public write access.
 
#55081
Re:Format view 9 Years, 5 Months ago Karma: 760
Sorry, but it is not possible.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12