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
#71880
Re:Format condition if not empty 1 Week, 6 Days ago Karma: 0
There is still an open issue - and I don't know why the system react that way:

On j5.ghgo.ch/anlaesse/tttt I've my data table:
    In column Einl1 is the value of the modified and complete link to the newsletter (Rundschreiben in the other column)

    In column Einl2 is the same value but with the format "<a href="{$value}" target="_blank">Einladung</a>".

But I've no clue why there are links with "Einladung" for the empty Rundschreiben/Einl1 fields as well (with a link: j5.ghgo.ch/)?

Would there be any way to eliminate those links like that on 'Do 03.08.2023' or 'Do 20.07.2023'?

Sorry to disturb you with this issue over and over!
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.
 
#71881
Re:Format condition if not empty 1 Week, 6 Days ago Karma: 747
It is possible to use the following code to disable navigation for empty links:

Code:


<a href="{$value|empty:#}" onclick="return {$value|regexreplace:/.+/:true|empty:false}" target="_blank">Click me</a>



Regards,
ARI Soft
The administrator has disabled public write access.
 
#71883
Re:Format condition if not empty 1 Week, 5 Days ago Karma: 0
Thank, but ...

If I use this code for the format, then it ends
- with correct links for not empty fields
- with the following link for all others: "j5.ghgo.ch/anlaesse/tttt#"

The code for empty pages (#) will be added to the current URL

If I delete the "#" then the link will be: "j5.ghgo.ch/".

Any last idea how to solve? Otherwise I'm going to update the table and generating there the full link to display.

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.
 
#71884
Re:Format condition if not empty 1 Week, 5 Days ago Karma: 747
# is used to indicate no link and if click by the link nothings happens.

It is possible to totally hide empty links. For this use the following code:

Code:


<a class="{$value|empty:hide-link}" href="{$value|empty:#}" onclick="return {$value|regexreplace:/.+/:true|empty:false}" target="_blank">Click me</a>



and add the following CSS rule to "CSS Styles" parameter in module settings:

.hide-link {display: none;}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#71886
Re:Format condition if not empty 1 Week, 5 Days ago Karma: 0
Excellent! Now it works as expected! Super. You made not only my day - I guess you made my week!

Regards
Heinz

PS
Now this ticket can be closed!
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