The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.



Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Mon Apr 16, 2012 5:33 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jan 24, 2009 12:59 am
Posts: 44
I'd like to remove the main body component from the front page as I wish to only use modules there.

How can I do this?

Here is the section of code I think it pertains to...

Code:
                     if (!($frontpage_component == 'hide' and JRequest::getVar('view') == 'frontpage')) {
                     $main .= '
                                <div class="bodycontent">
                                 <div class="mainbody-surround">';
                  
                     if ($t->joomla->countModules('inset2') and !$editmode) {
                        $main .= '<div id="inset-block-right"><div class="right-padding">';
                        $main .= '<jdoc:include type="modules" name="inset2" style="sidebar" />';
                        $main .= '</div></div>';
                        }
                  
                     if ($t->joomla->countModules('inset') and !$editmode) {
                           $main .= '<div id="inset-block-left"><div class="left-padding">';
                        $main .= '<jdoc:include type="modules" name="inset" style="sidebar" />';
                           $main .= '</div></div>';
                        }
      
                     $main .= '<div id="maincontent-block"><jdoc:include type="message" />';
                     $main .= '<jdoc:include type="component" />';
                     $main .= '</div><div class="mainbody-tl"></div><div class="mainbody-tr"></div><div class="mainbody-bl"></div><div class="mainbody-br"></div>
                             </div></div>';
                     }
                                       
                     $mClasses = $c['case4'];
                     if ($t->joomla->countModules('main4 or main5 or main6')) {
                        $main .= '<div id="mainmodules3" class="spacer'.$mainmod3_width.'">';

                        if ($t->joomla->countModules('main4')) {
                           $main .= '<div class="block '.$mClasses['main4'][0].'">';
                           $main .= '<jdoc:include type="modules" name="main4" style="main" />';
                           $main .= '</div>';
                        }
                     
                        if ($t->joomla->countModules('main5')) {
                           $main .= '<div class="block '.$mClasses['main5'][0].'">';
                           $main .= '<jdoc:include type="modules" name="main5" style="main" />';
                           $main .= '</div>';
                        }


Thanks in advance!
LMW1


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 5:54 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 13, 2008 2:57 am
Posts: 20420
Location: Chennai, India
It looks like your template has an option to hide component on the front page. Please check the parameters of the template.

_________________
- Ilagnayeru (MIG) Manickam
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 6:02 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jan 24, 2009 12:59 am
Posts: 44
I did set it to hide it but the component is still there. Please see attached image for reference.

Thank you for attempting to help me!

Respectfully,
LMW1


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 6:19 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 13, 2008 2:57 am
Posts: 20420
Location: Chennai, India
What is the menu item type of the menu item Home? Make the menu item of the menu item Home as the Front Page Blog Layout.

Hopefully this should take care of what you want.

_________________
- Ilagnayeru (MIG) Manickam
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 6:21 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jan 24, 2009 12:59 am
Posts: 44
It is set as Front Page Blog now.


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 6:24 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 13, 2008 2:57 am
Posts: 20420
Location: Chennai, India
What is your site's URL so that others can see what is the HTML code generated?

_________________
- Ilagnayeru (MIG) Manickam
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 6:39 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jan 24, 2009 12:59 am
Posts: 44
I sent you a PM with the URL.

Thank you!


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 7:15 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jan 24, 2009 12:59 am
Posts: 44
Standing by...


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 7:17 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 13, 2008 2:57 am
Posts: 20420
Location: Chennai, India
The referenced in the PM is Offline. So, cannot review the site.

_________________
- Ilagnayeru (MIG) Manickam
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 7:24 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jan 24, 2009 12:59 am
Posts: 44
Sorry! I was working on it and forgot to set it back to online.

You can view it now.

Respectfully,
LMW1


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 7:33 am 
User avatar
Joomla! Master
Joomla! Master

Joined: Wed Aug 13, 2008 2:57 am
Posts: 20420
Location: Chennai, India
Go to Module Manager and if there is a breadcrumbs module, do the menu assignment so that it appears in all the menu items except for the menu item Home.

Also, attach the full file index.php

_________________
- Ilagnayeru (MIG) Manickam
http://www.eegan.org - helping the poor and underprivileged
educate. empower. enrich.
Support the poor and underprivileged


Top
 Profile  
 
PostPosted: Mon Apr 16, 2012 7:42 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Jan 24, 2009 12:59 am
Posts: 44
I did as you said above, it removed a few things but the box is still there taking up space.

I attached the file that should be edited.

I'm trying to get this fixed tonight, I have to have it fixed before the clinic opens today.

I really do appreciate your help sir!

Respectfully,
LMW1


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Wed Apr 18, 2012 2:17 pm 
Joomla! Explorer
Joomla! Explorer

Joined: Tue Feb 23, 2010 8:16 pm
Posts: 294
Location: Lancaster UK
Your using Rockettheme affinity template.

If this is a Joomla 1.5 site, in the template manager you will see this heading and option below:

Template Configuration Options

Display Frontpage Component

Set 'Display Frontpage Component' to hide.

That should be that.

_________________
Joomla Expert http://www.deanmarshall.co.uk/joomla-expert.html Expert Joomla Development and Support
Music For Schools http://www.musicforschoolsltd.co.uk/ Primary Schools Summer Musicals


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 



Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group