Missing module

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Post Reply
robato
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Sun Jan 31, 2010 6:06 pm

Missing module

Post by robato » Wed Nov 01, 2017 11:19 pm

Hello,
I have a question that's driving me crazy. I have a Joomla installation (3.8.1) and I have some pages that are not connected to a menu. On these pages all of my modules disapears and I can't put text inside the divs where the module are. According to the sourcecode the text should be there but it's not visible on the site. I have checked that it's the right color.
The adress is mattesnillle.se

This is a normal page:
Footer.jpg
This is a nonmenu page:
Footer missing module.jpg
Any ideas how to solve this?
You do not have the required permissions to view the files attached to this post.

User avatar
muratyil
Joomla! Explorer
Joomla! Explorer
Posts: 468
Joined: Sun Apr 13, 2008 8:10 pm

Re: Missing module

Post by muratyil » Thu Nov 02, 2017 7:36 am

That is a feature of joomla if you have some content that are not connected to a menu you can not see your modules there. I create a dummy menu and add my unbinded content or items there and resolve the problem.
http://www.joomlatema.net - Joomla Extensions and Templates
http://wtnews.joomlatema.net/ - WT News Responsive Joomla News And Magazine Template

robato
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Sun Jan 31, 2010 6:06 pm

Re: Missing module

Post by robato » Thu Nov 02, 2017 12:29 pm

Thanks for your reply, the problem is that the content is in a wrapper and there is a link within the wrapper so I can't create a menu for this page. And this still doesn't answer why normal text doesn't appear. Have I done something wrong with the code? I've used php echo to print the text, but same result.

Code: Select all

<?php if ($this->countModules('footer_1')):?>
   <div class="col-xs-4 footer-box animated" data-animation="flipInY" data-animation-delay="0">
	
              <jdoc:include type="modules" name="footer_1" style="xhtml" />
                  <h3>Adress</h3>
                  Webinspiration Stockholm
                  <br/>Lindalsv&auml;gen 67
                  <br/>135 50 Tyres&ouml;
                  <br/>+46(0)73-744 14 50
                
      </div>
<?php endif; ?>

pioneer062
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Nov 02, 2017 8:56 pm

Re: Missing module

Post by pioneer062 » Mon Nov 06, 2017 3:27 pm

Simple questions but :
-how come you cannot have your menu on all your pages?
I can only think of a default page w/o menu shown by a component or is it just the wrapper taking the whole page?

-Have you selected in the menu assignement tab of the module to have the module assigned to all menus?

robato
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Sun Jan 31, 2010 6:06 pm

Re: Missing module

Post by robato » Sat Nov 11, 2017 11:51 am

I've integrated Joomla with Moodle and the pages are created dynamically, so I can't create a link to some pages.

I've assigned the module to all pages.

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 24743
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Missing module

Post by Per Yngve Berg » Sat Nov 11, 2017 6:32 pm

The module position is not shown because countmodules() returns zero modules. All code within if-endif will not be shown. Why do you use text inside the template instead of a custom html module?

robato
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Sun Jan 31, 2010 6:06 pm

Re: Missing module

Post by robato » Mon Nov 13, 2017 6:49 pm

I deleted the if-endif but the module didn't appear anyway. I tried to put the text directly in the index.php to see if it works better but the text doesn't appear.

User avatar
effrit
Joomla! Guru
Joomla! Guru
Posts: 656
Joined: Sun Nov 12, 2017 2:21 pm
Location: middle of Russia
Contact:

Re: Missing module

Post by effrit » Mon Nov 13, 2017 7:01 pm

hi. try delete

Code: Select all

animated" data-animation="flipInY" data-animation-delay="0"
seems the block just hidden because of them

robato
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Sun Jan 31, 2010 6:06 pm

Re: Missing module

Post by robato » Wed Feb 14, 2018 5:41 pm

Thanks for your replies, for some reason they appeared suddenly.


Post Reply

Return to “Templates for Joomla! 3.x”