This can be done two ways.
1: Check this module here if it will suit your needs:
extensions.joomla.org/extensions/access-...-access/3391/details
2: You can add some php logic to the templates index.php file to controll where to show the module:
| Code: |
<?php $article_ids = array(1); ?>
<?php if($option == 'com_content' && JRequest::getString('view') == 'article' && in_array(JRequest::getInt('id'),$article_ids)):?>
<div>
<jdoc:include type="modules" name="mycustomarticlemodule" style="xhtml" />
</div>
<?php endif; ?>
|
If you use the above code you need to:
1:Change the article nr in array(1) to suit your article id/id's to show this specific module on.
2:Change module name to suit your module for use.
3:Change module style to the style you want to use on it
4:Add it in the templates index.php where you want to show it.