I have a site with 10 articles. The layout of the site calls for a new sidebar on the left to be on every article. Easy enough, until I realize in my template file I can only call one specific module. Is there an easy way to have different modules per each article?
Easiest would be to have an if/else and show a different module depending on the article itself, but I don't know how to call the article in the following php:
<?php if( JRequest::getVar( 'view' ) == 'ARTICLE ID???' ): ?>
<jdoc:include type="modules" name="your_custom_position" />
<?php elseif( JRequest::getVar('view') == 'ANOTHER ARTICLE ID????): ?>
<jdoc:include type="modules" name="another article position" />
<?php endif; ?>
<?php endelseif; ?>
Any help would be appreciated in figuring this out.