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?

Echo ARI Data Table
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Echo ARI Data Table
#25972
Echo ARI Data Table 12 Years, 2 Months ago Karma: 5
Is it possible to echo an ari data table with a code similar to the following

Code:

<?php

$type = $_POST['type'];
$aritable1 = "{aridatatables moduleId=\"112\"}";
$aritable2 = "{aridatatables moduleId=\"141\"}";


if ($type == 'table1'){

echo $aritable1;
}
else {

echo $aritable2;
}
?>



Thanks

Trevor
The administrator has disabled public write access.
 
#25973
Re:Echo ARI Data Table 12 Years, 2 Months ago Karma: 748
Hello,

Where do you use this code?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#25975
Re:Echo ARI Data Table 12 Years, 2 Months ago Karma: 5
custom html module or article...with DirectPHP
Last Edit: 2012/03/05 17:02 By trevor_stp.
The administrator has disabled public write access.
 
#25976
Re:Echo ARI Data Table 12 Years, 2 Months ago Karma: 748
If you use "Content - ARI Data Tables" plugin it is possible to use this code into an article. It is necessary to set correct order in plugin settings page so the plugin executes after a plugin which is used to embed PHP code into articles.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#25977
Re:Echo ARI Data Table 12 Years, 2 Months ago Karma: 5
Thanks for the great support.

After changing the order of the plugins and changing 'POST' to 'GET' in the code, I am able to echo various ari datatable modules in the content area dependant on php variables.

Trevor
The administrator has disabled public write access.
 
Go to topPage: 1