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?

Upgrading from V1 to V2 of ARI Smart Content
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Upgrading from V1 to V2 of ARI Smart Content
#51554
Upgrading from V1 to V2 of ARI Smart Content 9 Years, 6 Months ago Karma: 0
I'm currently using V1 of ARI Smart Content to display the contents of several .csv files on my site. Now I would like to use some of the features (like the media gallery) in V2. Since V1 must be uninstalled in order to install V2, how do I covert my existing ARI Smart Content displays into V2 displays? For example, here/below is the ART Content the I'm now using for one .csv file. I've set up the .csv file, but I can't figure out how to get the data formatted the same, especially how to use the substr Javascript function in conjunction with the combining multiple .csv data columns into a single display column.

Code:

{arijdatatable bPaginate="false" sPaginationType="full_numbers" iDisplayLength="25" bAutoWidth="true"}
   {aricsvtable file="/data/xml/officers_WEST.csv" sortBy="role" sortDir="asc"}
      {aricsvtablecolumns}

       {aricsvtablecolumn id="role" alias="Role / Organ / Club" pos="1" width="20%"}
               {coltemplate}<strong>
               <script>var role = '{$role}'.substr(3); document.write(role);</script>
               </strong><br>{$organization} 
              {/coltemplate}
       {/aricsvtablecolumn}

        {aricsvtablecolumn id="icon" alias="Icon" pos="2" width="10%"}
            {coltemplate}<IMG SRC="/images/galleries/officers/{$icon}" ALT="{$icon}" width="80" >{/coltemplate}
        {/aricsvtablecolumn}

        {aricsvtablecolumn id="clubName" alias="Name / Contact Info" pos="3"}
           {coltemplate}<strong>{$name}</strong><br>
             {$address}, {$city}, {$state} {$zipcode}<br>
             {$contactPhone} {$contactEmail}
           {/coltemplate}
         {/aricsvtablecolumn}

The administrator has disabled public write access.
 
#51555
Re:Upgrading from V1 to V2 of ARI Smart Content 9 Years, 6 Months ago Karma: 747
Hello,

"Columns settings -> Format" parameter on settings page for CSV file. Documentation is available here. For example set "Columns settings -> ID" parameter to role value, "Columns settings -> Alias" parameter to the following value:

Role / Organ / Club

and "Columns settings -> Format" parameter to the following value:

<strong><script>var role = '{$value}'.substr(3); document.write(role);</script></strong><br />{$columns:organization}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#51557
Re:Upgrading from V1 to V2 of ARI Smart Content 9 Years, 6 Months ago Karma: 0
Thank you for the quick response. I've installed V2 on my local development system and set up a .csv file using your instructions/code, but it's not working. When I save from the CSV File Edit page, I get the following code being displayed at the top of the page (right below the Joomla menu, above the 'CSV File: edit' banner.

Code:

{$columns:organization}\n"}]); }); var cachecleaner_base = '/CSDweb/administrator'; var cachecleaner_root = 'http://localhost/CSDweb/'; var cachecleaner_msg_clean = 'Cleaning cache'; var cachecleaner_msg_inactive = 'The Cache Cleaner system plugin is not enabled! Enable?'; var cachecleaner_msg_failure = 'Cache could not be cleaned'; jQuery(document).ready(function(){ jQuery('.hasTooltip').tooltip({"html": true,"container": "body"}); });


There isn't anything in the 'Columns settings'. The strings/code, included below that you provided, and I entered is gone.
Code:

"Columns settings -> ID" parameter to role value, "Columns settings -> Alias" parameter to the following value:

 Role / Organ / Club

 and "Columns settings -> Format" parameter to the following value:

 <strong><script>var role = '{$value}'.substr(3); document.write(role);</script></strong><br />{$columns:organization}

The administrator has disabled public write access.
 
#51559
Re:Upgrading from V1 to V2 of ARI Smart Content 9 Years, 6 Months ago Karma: 747
Download and upgrade the component and use the following code in "Format" field instead of <script> tags:

Code:


<strong>{$value|substr:3}</strong><br />{$columns:organization}



Regards,
ARI Soft
The administrator has disabled public write access.
 
#51561
Re:Upgrading from V1 to V2 of ARI Smart Content 9 Years, 6 Months ago Karma: 0
Thank you. I've installed Ver 2.1.2 and it's better, but I'm still not there yet. With
Code:

<strong>{$value|substr:3}</strong><br />{$columns:organization}
in the format column, I'm getting 'rong>' being displayed on the front-end before the combined value for the column.

Also, what is the syntax for combining the path with a file name for an IMG SRC? In one of my columns, I have the file name for an icon image, but for it to be displayed, I need to include the path to the file, e.g.
Code:

<img src="/images/galleries/officers/{$value}" />
which isn't working. Instead of getting the image displayed, I get
Code:

" />
displayed. Looking at the source code on the front-end, I see
Code:

<img src="/images/galleries/officers/" "<img="" "noicon.jpg"="">
The administrator has disabled public write access.
 
#51570
Re:Upgrading from V1 to V2 of ARI Smart Content 9 Years, 6 Months ago Karma: 747
Download and upgrade the extension to v. 2.1.4. It should resolve the problem.

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