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 6117797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:21:43+00:00 2026-05-23T15:21:43+00:00

Is it possible in Joomla to place a certain article in a template, additionally

  • 0

Is it possible in Joomla to place a certain article in a template, additionally to the normal content? I want the article to show up on every page.

  • 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-05-23T15:21:43+00:00Added an answer on May 23, 2026 at 3:21 pm

    You can simply take it from the databse and print its content. In the template, where you want to show the article, write this:

    $id=/*Id of the article to show*/;
    $db=&JFactory::getDBO();
    $db->setQuery("SELECT * FROM #__content WHERE id=$id");
    $item=$db->loadObject();
    echo $item->introtext;
    

    UPDATE: ENABLE PLUGINS

    I can’t find where i’ve used that code and i can’t copy-paste it, so i try to write it again by looking at the view.html.php of the com_content:

    JPluginHelper::importPlugin('content');
    $dispatcher =& JDispatcher::getInstance();
    $params = &$mainframe->getParams();
    $dispatcher->trigger('onPrepareContent', array (&$item, &$params, 0));
    //The last line triggers the onPrepareContent event, so if it does not work maybe you need other events, so try with onAfterDisplayTitle, onBeforeDisplayContent or onAfterDisplayContent
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible for a single page on a Joomla website to include it's
Is it possible to customize a Joomla submenu? This article talks about submenu items:
Is it possible to create a Joomla account outside the web interface. I want
Possible Duplicate: C++ templates that accept only certain types For example, if we want
Is it possible to host multiple websites that all have one single/common CMS (Joomla)?
I'm writing a Content Management System in PHP, and I want it to be
Is it possible to install Joomla in a sub directory and move the index.php
Is it possible to write an extension for joomla or use some existing plugin
One of our Joomla sites got hacked and the attacker replaced my template's index.php
I have just launched a site (using Joomla and a custom template), which doesn't

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.