Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.

  • 14/04/2017 Happy Easter

    Wish a Happy Easter and give 30% discount for all our WordPress and Joomla! extensions. Use EASTER17 coupon code. The offer is valid till 17 April.


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?

list documents under article
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: list documents under article
#60144
list documents under article 6 Months ago Karma: 0
Hi
Hopefully a simple question regarding the module

I want to show a list of documents under the selected article which is selected via a menu item

The data table module is then shown in the left position showing the documents in that selected category.

For example when uploading documents a user has to select the article id they belong to so say article id 13

There are many articles and documents... is there a way to only create the one module and have the query use a WHERE articleid-ofdoc = $articleid ????

Thanks for any help
The administrator has disabled public write access.
 
#60145
Re:list documents under article 6 Months ago Karma: 666
Hello,

You can try to use "id" request variable (link to an article looks like index.php?option=com_content&view=article&id=ARTICLE_ID). Query will look like:

SELECT
id,
title
FROM
#__content
WHERE
({$REQUEST:id|empty:''} <> '' AND id = {$REQUEST:id|empty:''})

Regards,
ARI Soft
The administrator has disabled public write access.
 
#60147
Re:list documents under article 6 Months ago Karma: 0
Thank you

would this be able to work with SEF's ?

ie /article123 rather than the long url

The administrator has disabled public write access.
 
#60148
Re:list documents under article 6 Months ago Karma: 666
It should work because SEF URL is translated to a plain URL.

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