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?

How to query for article image and content?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: How to query for article image and content?
#50245
How to query for article image and content? 9 Years, 9 Months ago Karma: 0
How do I query to show:
a) An articles image? (full image or intro image)
b) An articles content

The table columns should be: ID, Title, Image, Content
The id and title are shown with the query below. But how to add image and content to the same query?


SELECT
id, title
FROM
#__content
WHERE
catid = 48
ORDER BY
created DESC
The administrator has disabled public write access.
 
#50246
Re:How to query for article image and content? 9 Years, 9 Months ago Karma: 747
Hello,

a. It is not possible because images are stored in JSON format in database. It requires modification of the extension to extract this data.

b. Use the following SQL query:

Code:


SELECT
  id, 
  title,
  introtext
FROM
  #__content
WHERE
  catid = 48
ORDER BY
  created DESC 



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