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?

Format condition if not empty
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Format condition if not empty
#71867
Format condition if not empty 3 Months ago Karma: 0
Would it be possible to add a format instructions for columns settings with a condition?

I'm using this code:
<a href="rs/{$value}" target="_blank">Einladung</a>

but it should only be placed in the table cell if rs is not empty. All lines without a value for "rs" shouldn't have a link "Einladung".

Is there any way to make this possible?

Thanks and 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.
 
#71868
Re:Format condition if not empty 3 Months ago Karma: 748
Hello,

Sorry, but currently the extension doesn't support such ability.

PS: Do you show data from a database or from a CSV file?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#71869
Re:Format condition if not empty 3 Months ago Karma: 0
I'm showing data from a database (a dedicated table within the joomla database)
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.
 
#71873
Re:Format condition if not empty 3 Months ago Karma: 0
By the way:
I found the 100% equal code within the format instruction in some older tables I've have been published with ARI Smart Content version 2.2.40 on
ghgo.ch/ghgo-anlaesse. There it works excellent. But now with Joomla!5 I have been changed back to my former solution ARI Data Tables and with version 2.0.5 it doesn't: example on j5.ghgo.ch/anlaesse/anlaesse-vergangene.

Maybe there is anyway a possible workaround. Otherwise I have to add complete links to the database table. Also a possible way - but not that easy

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.
 
#71875
Re:Format condition if not empty 3 Months ago Karma: 748
As a workaround it is possible to use IF condition in SELECT SQL query. Something like this:

Code:


SELECT
  title,
  IF(id > 1, '<a href="#">test</a>', 'no link') AS link
FROM #__content



Regards,
ARI Soft
The administrator has disabled public write access.
 
#71876
Re:Format condition if not empty 3 Months ago Karma: 0
thank you! I'm either going to test this version nor complete the URL in the data table.

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