Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8729913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:54:52+00:00 2026-06-13T08:54:52+00:00

I developed a script which give me the text of a Joomla article from

  • 0

I developed a script which give me the text of a Joomla article from its ID, something like this:

$article =& JTable::getInstance("content");
$article->load($address = JRequest::getVar('articleID'));
echo $article->get("introtext");
echo $article->get("fulltext");

Now I need a similar script to get ALL (active) article IDs of the current site (maybe ordered from the last to the first like on the joomla homepage).

I gave a look around but couldn’t find anything.

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:54:53+00:00Added an answer on June 13, 2026 at 8:54 am

    You could use the following:

    $query = "SELECT * FROM #__content";
    $db = JFactory::getDBO();
    $db->setQuery($query); 
    $articles = $db->loadObjectList(); 
    foreach($articles as $article){
        echo 'ID:' . $article->id . ' Title: ' . $article->title;
    }
    

    If you want to get all the ID’s of articles from a specific category, you could use the following:

    $catId = 59;
    $query = "SELECT * FROM #__content WHERE catid ='" . $catId . "'";
    $db = JFactory::getDBO();
    $db->setQuery($query); 
    $articles = $db->loadObjectList(); 
    foreach($articles as $article){
        echo 'ID:' . $article->id . ' Title: ' . $article->title;
    }
    

    Obviously you change 59 to whatever suits your needs

    Note that this method of a database query is for Joomla 1.5

    Hope this helps

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a PHP-script originally developed on Ubuntu, which now has to run on
I have developed a Powershell script that needs to be run automatically daily. This
I had a script which I developed in /var/tmp and worked... when I moved
I've developed an application in Qt which uses a launch script, myapp.sh . I've
I have developed an application which can create Xml files from Xml schema with
I have developed a perl script which provides a menu driven functionality to allow
i have written a c program to which i pass in a script like
I have an R script which was developed in Windows, and which requires a
I have a accordion menu which is developed by using the below script $(document).ready(function(){
I have developed a application which caches multiple packages. The CLI interface for this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.