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?

Am I being dense?
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Am I being dense?
#3252
Re:Am I being dense? 14 Years, 4 Months ago Karma: 0
Many thanks for your prompt reply. It now does the business. A great team and a great product!

One final question. Can I build an HTML line into a SQLTABLE column using cellTag? For instance I wish to create a link from NAME to a popup containing address etc. I could do it using my very original coding now that I have the CONTENTANYWHERE plugin but it would be nice to do it from SQLTABLE having got this far.
The administrator has disabled public write access.
 
#3253
Re:Am I being dense? 14 Years, 4 Months ago Karma: 748
'cellTag' parameter accepts only 'td' or 'th' value. If you want to create column with custom formatting, you can create virtual column:

Code:


{arisqltablecolumn alias="Virtual Column" virtual="true" pos="1"}
  {coltemplate}<a href="#">{$NAME}</a>{/coltemplate}
{/arisqltablecolumn}



or build necessary HTML code with help CONCAT SQL function:

Code:


SELECT
  CONCAT('<a href="#">', name, '</a>') AS MyColumn
FROM table



Regards,
ARI Soft
The administrator has disabled public write access.
 
#3254
Re:Am I being dense? 14 Years, 4 Months ago Karma: 0
Brilliant! I'll have a play around.
The administrator has disabled public write access.
 
#3257
Re:Am I being dense? 14 Years, 4 Months ago Karma: 0
Sorry! It's me again. I've tried
{arijtablesorter notSortableCols="0"}
{arisqltable}
{arisqltablecolumns}
{arisqltablecolumn id="NAME" alias="Name" width="20%" pos="0"}
{arisqltablecolumn id="CAT" alias="Membership Category" width="10%" pos="1"}
{arisqltablecolumn id="LEVEL" alias="Playing Level" width="20%" pos="2"}
{arisqltablecolumn id="ID" hidden="true"}
{arisqltablecolumn alias="Virtual Column" virtual="true" width="20%" pos="0"}
{coltemplate}<a href="index.php?option=com_qcontacts&amp;view=contact&amp;id={$ID}" target="_blank">{$NAME}</a>{/coltemplate}
{/arisqltablecolumn}
{/arisqltablecolumns}
{arisqltablequery}
SELECT
t1.id AS ID, t1.name AS NAME,
t1.misc AS LEVEL, t2.title AS CAT
FROM #__qcontacts_details AS t1
JOIN #__categories AS t2 ON t1.catid = t2.id
WHERE catid != 126 ORDER BY yahoo_msg ASC
{/arisqltablequery}
{/arisqltable}
{/arijtablesorter}

and I get a working link with NAME, but only that. No other columns appear. I'm obviously not understanding a fundamental part of the logic.
The administrator has disabled public write access.
 
#3258
Re:Am I being dense? 14 Years, 4 Months ago Karma: 748
Hello,

Sorry for delay, use the following code, please:

Code:


{arijtablesorter notSortableCols="0"}
{arisqltable}
{arisqltablecolumns}
{arisqltablecolumn id="NAME" alias="Name" width="20%" pos="0"}{/arisqltablecolumn}
{arisqltablecolumn id="CAT" alias="Membership Category" width="10%" pos="1"}{/arisqltablecolumn}
{arisqltablecolumn id="LEVEL" alias="Playing Level" width="20%" pos="2"}{/arisqltablecolumn}
{arisqltablecolumn id="ID" hidden="true"}{/arisqltablecolumn}
{arisqltablecolumn alias="Virtual Column" virtual="true" width="20%" pos="0"}
{coltemplate}<a href="index.php?option=com_qcontacts&amp;view=contact&amp;id={$ID}" target="_blank">{$NAME}</a>{/coltemplate}
{/arisqltablecolumn}
{/arisqltablecolumns}
{arisqltablequery}
SELECT
t1.id AS ID, t1.name AS NAME,
t1.misc AS LEVEL, t2.title AS CAT
FROM #__qcontacts_details AS t1
JOIN #__categories AS t2 ON t1.catid = t2.id
WHERE catid != 126 ORDER BY yahoo_msg ASC
{/arisqltablequery}
{/arisqltable}
{/arijtablesorter}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#3259
Re:Am I being dense? 14 Years, 4 Months ago Karma: 0
Thanks
The administrator has disabled public write access.
 
Go to topPage: 12