You need to do the following:
- Add path to joomla content article element
- Create instance of that element
- Display it
`
<?php
// I created the element inside of the view, $this is my View.
// It can be model/view/controller. Does not matter
// Include Element
require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_content' . DS . 'elements' . DS . 'article.php';
// Create Instance
$articleElement = new JElementArticle($this);
// Output article
echo $articleElement->fetchElement('article', 0, $this, 'myparam');
// NOTE: name of article_id element will be myparam[article]
?>
If you want to change the way element looks, you need to overload/modify element. It is pretty easy to do, you can copy site/administrator/components/com_content/elements/article.php
, make changes and you will get your own version of element. Do not modify article.php
component, you will mess up things for Joomla and if you plan updating your site in future... you'll loose changes after update.