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?

table displays links in empty cells
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: table displays links in empty cells
#35681
table displays links in empty cells 11 Years, 10 Months ago Karma: 0
I have a column in a CSV file which contains optional website url. I use the following to display the links to the external URL.

<a href="{$value}">website</a>

Problem is all cells including empty cells with no url have "website" displayed. How do I display only cells which are not empty?
The administrator has disabled public write access.
 
#35685
Re:table displays links in empty cells 11 Years, 10 Months ago Karma: 760
Hello,

Currently it is not possible, but you can use '#' as a link for empty links using the following code:


<a href="{$value|empty:#}">website</a>


Regards,
ARI Soft
The administrator has disabled public write access.
 
#35689
Re:table displays links in empty cells 11 Years, 10 Months ago Karma: 0
That won't help as the website field is optional and having a null link in all the empty cells would make it look silly.

The reason I was trying to use the word "website" is to avoid displaying the entire URL, some of which are quite long and cause that column to take up a lot of width space. Is there any way I can limit the width of a column and force the URL to wrap?
The administrator has disabled public write access.
 
#35716
Re:table displays links in empty cells 11 Years, 10 Months ago Karma: 760
You can add a CSS class to column with links with help of "Columns settings -> CSS Class" parameter and use custom CSS rule to show value of links in fixed width.

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