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


Recent Events
  • 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.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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?

SQL query for ARI Smart Content Data Table/Format
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: SQL query for ARI Smart Content Data Table/Format
#61136
SQL query for ARI Smart Content Data Table/Format 7 Years, 2 Months ago Karma: 0
Hi there

Using SQL query for an ARI Smart Content Data Table works excellent. The possibilities of "Format" for columns settings as well.

I'm using this:
<a href=ghgo-daten/anl/{$columns:rs} target=__blank>RS</a>

This ist excellent. Now I should define a rule that this is only fine for not empty fields. Is there anywhere an instruction what's possible within the Format specifications?

My need:
- if not empty
- do this: <a href=ghgo-daten/anl/{$columns:rs} target=__blank>RS</a>
- else do nothing

Which script can I use for this instruction?

Thanks for your support.
Heinz

PS
Additionally I should change the date format for another field. Usually I'm using something like this:
<?php $date = new DateTime($value);$value = $date->format('d.m.Y');?>
HeinzP
Don't believe everything you think!
User Offline Click here to see the profile of this user
Gender: Male Location: Lutzenberg Switzerland Birthday: 09/24
Last Edit: 2017/09/03 18:12 By HeinzP.
The administrator has disabled public write access.
 
#61137
Re:SQL query for ARI Smart Content Data Table/Format 7 Years, 2 Months ago Karma: 760
Hello,

The extension doesn't support ability to use "if" statement in "Format" parameter.

Use {$value|date_format:"d.m.Y"} code to format date value.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#61143
Re:SQL query for ARI Smart Content Data Table/Format 7 Years, 2 Months ago Karma: 0
Thank you for the transformation script. This works correct using this code:
{$value|date_format:d.m.Y}
to make sure that the " are not shown in the field.

But it impacts the sort rule and it's not anymore the loading rule:
ORDER BY
datum DESC
It then sorts with the new value from left to right d ... m ... Y

Maybe you would have any hint for a workaround to have the date following our rule "d.m.Y" and to sort by date and not by text?

Thanks and best regards.
Heinz
HeinzP
Don't believe everything you think!
User Offline Click here to see the profile of this user
Gender: Male Location: Lutzenberg Switzerland Birthday: 09/24
The administrator has disabled public write access.
 
#61144
Re:SQL query for ARI Smart Content Data Table/Format 7 Years, 2 Months ago Karma: 0
Hello

A quick test using Type "Date (dd/mm/YYYY)" instead of "Date" helps to load with SQL loading sort but the column with the date is not anymore sortable. Icons are available but inactive. If I restort using another column then I have no possibility to go back to the original sort (use the sort of the column with the date).

Regards,
Heinz
HeinzP
Don't believe everything you think!
User Offline Click here to see the profile of this user
Gender: Male Location: Lutzenberg Switzerland Birthday: 09/24
The administrator has disabled public write access.
 
#61146
Re:SQL query for ARI Smart Content Data Table/Format 7 Years, 2 Months ago Karma: 760
Could you provide a link to a page where the problem occurs?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#61148
Re:SQL query for ARI Smart Content Data Table/Format 7 Years, 2 Months ago Karma: 0
Sure. At the moment the table is implemented on this page:
www.ghgo.ch/impressum
Here it's based on a SQL query from a database.

and it's forseen to replace the old table on www.ghgo.ch/ghgo-anlaesse.html (where it is a load from a CSV file with full qualified link.

=> my proposal is to turn off the sort-changed within the table then it's not anymore a problem - and it is not really a business need to change the sort - the search functionality covers the real need.

Regards,
Heinz
HeinzP
Don't believe everything you think!
User Offline Click here to see the profile of this user
Gender: Male Location: Lutzenberg Switzerland Birthday: 09/24
The administrator has disabled public write access.
 
Go to topPage: 12