Hi, Andrew.
Try to use <jdoc:include type="module" name="MLBNews" style="none" /> instead of <jdoc:include type="module" name="MLB News" style="none" />. I think that space in position name is a problem here.
Hi Michal,
Thanks but this did not work.
This works <?php if ((JRequest::getInt( 'groupid' )) == '22') { ?>
but no matter how I try to get it to display it will not.
I have the module published and in position 7.
I would like to provide you administrative access to the site with login credentials. How can I get that to you without making it public?
Hi, Andrew.
Edit your first post and add FTP credentials to corresponding fields.
Hi, Andrew.
You're right... for some reason it doesn't work on your site. So I prepared new code and already tested it on your site ^^
<?php if (($group->id) == '62') { ?>
<?php $this->renderModules( 'hunting-group' ); ?>
<?php } ?>
Hi,
I have built a score feed and like the news feed I have it grouped by ID. I would like this to display in position 7 based on an if statement according to the group ID. How can I go about this? I tried to add code to the index.php page of my current template at <?php if ($this->countModules('position-7')) : ?> But it does not recognize $group.
Thanks in advance.
Hi, Andrew.
I presume that "position-7" is a module position in your template. If you try to use groupid variable there it will not work as this variable needs group helper php file.
If you want to achieve it, you'll need to fetch data direct from database and create proper query.
It's a bit more complicated than simply create if statement ;)
Read this document:
docs.joomla.org/Selecting_data_using_JDatabase