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?

Master/Detail Page using CSV source
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Master/Detail Page using CSV source
#19307
Master/Detail Page using CSV source 13 Years, 2 Months ago Karma: 0
Could you give me the HTML code for a hyperlink from a master table column that will link to a detail table in another article on the same page? I want the ID code to be the selector for the detail page. I know the FORMAT code in the master column should be something like:

<a href="index.php?option=com_content&view=article&selectedID={$columns:ID}">{$value}</a>

And then...what selection criteria should be used in the detail FILTER specifications? I again assume it would be something like

COLUMN NAME/ID EQUALS $_get['selectedID']
The administrator has disabled public write access.
 
#19318
Re:Master/Detail Page using CSV source 13 Years, 2 Months ago Karma: 760
Hello,

For example if ID of the article which contains secondary table is 75, use the next code in for primary table:

Code:


<a href="index.php?option=com_content&view=article&id=75&selectedID={$columns:ID}">{$value}</a>



Use the next "WHERE" clause for primary table to select specific records based "selectID" request variable:

Code:


....
WHERE
 ID = {$REQUEST:selectedID}



PS: This approach is working for data from a database.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#19352
Re:Master/Detail Page using CSV source 13 Years, 2 Months ago Karma: 0
Thank you. This helps but I am using a CSV file as the source. Does this approach work with a CSV?
The administrator has disabled public write access.
 
#19355
Re:Master/Detail Page using CSV source 13 Years, 2 Months ago Karma: 760
Unfortunately not. The extension doesn't support ability to use request variables for CSV filters.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#19385
Re:Master/Detail Page using CSV source 13 Years, 2 Months ago Karma: 0
Thank you. I still can't get the detail table to select the record when using a DB, not CSV. The site is www.2011efd.com/

The <a href in the format options for the 'index' column ( of the second MAIN table is:

<a href="index.php?option=com_content&view=article&id=51&SELECTEDID={$columns:index}">{$value}</a>

The call shows the correct SELECTEDID in the call to the detail table but the home page reloads and the main table disappears and a blank detail table displays announcing there is no data. I am using the following SQL call to load the detail page:

SELECT * FROM 'imageTesting' WHERE index = {$REQUEST:SELECTEDID}

NOTE: 'index' is the first column identifier ($columns:0) for both tables and I am using a DB.

Can you help me with this?
The administrator has disabled public write access.
 
#19400
Re:Master/Detail Page using CSV source 13 Years, 2 Months ago Karma: 760
Could you provide temporary access to your J! backend by email so we could investigate the issue?

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