How to show a single article when click on menu item?
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
-
- Joomla! Apprentice
- Posts: 27
- Joined: Fri Apr 15, 2011 8:45 am
- Location: [* spam *], UP, India
- Contact:
How to show a single article when click on menu item?
I am working for one website. For some menu item that I linked article want to show without sidebar. Here is my website http://joomla.99desires.com/. On the top menu like "cabinet specification", gallery" etc I linked article. Now I want that for "cabinet specification" article I only want to show the article without any sidebar, that means want to show only the singe article. Please help me how to do it.
Thanks
Thanks
Free Online Games - http://coolmathforkids.info/
-
- Joomla! Fledgling
- Posts: 4
- Joined: Wed Apr 20, 2011 8:06 am
Re: How to show a single article when click on menu item?
Go to Module manager. and on resource and showcase modules. you will find a Menu Assignment option. Instead of all you can choose when you want to see those modules. Then if it is no module in the sidebar it wil disappier, (if the template is good enought)
-
- Joomla! Apprentice
- Posts: 27
- Joined: Fri Apr 15, 2011 8:45 am
- Location: [* spam *], UP, India
- Contact:
Re: How to show a single article when click on menu item?
Thanks I have done. Now sidebar not displayed on those article. But the problem is that article is not displaying on the full page. Can you please inform me how to do it. Will I have to modify the template or like what other things I will have to do?
Free Online Games - http://coolmathforkids.info/
-
- Joomla! Ace
- Posts: 1149
- Joined: Wed Jan 18, 2006 1:28 pm
- Location: West Midlands, UK
- Contact:
Re: How to show a single article when click on menu item?
It looks like you are going to have to modify your template index.php file.
First, you only want the left column if there are modules to display there: (code adapted from milkyway template)
And then use a different div for the maincolumn depending on how much space there is for it
The widths of side2 and side2_full are specified in the CSS file
BUT......
Your template is not quite so easy to change. You may also have to make wider versions of "block-head-3", "moduletable-contant-3" (sic) and white-top.jpg.
There are an awful lot of widths specified in your content table (I am looking at "Cabinet Specifications") which wont allow it to fill a wider column anyway. How did you create this table?
jb
First, you only want the left column if there are modules to display there: (code adapted from milkyway template)
Code: Select all
<?php if($this->countModules('side1')) : ?>
<div id="left">
<jdoc:include type="modules" name="side1" style="rounded" />
</div>
<?php endif; ?>
Code: Select all
<?php if($this->countModules('side1')) : ?>
<div id="side2">
<?php else: ?>
<div id="side2_full">
<?php endif; ?>
Code: Select all
.side2 {
width: 642px;
}
.side2_full {
width: 100%;
}
Your template is not quite so easy to change. You may also have to make wider versions of "block-head-3", "moduletable-contant-3" (sic) and white-top.jpg.
There are an awful lot of widths specified in your content table (I am looking at "Cabinet Specifications") which wont allow it to fill a wider column anyway. How did you create this table?
jb
-
- Joomla! Apprentice
- Posts: 27
- Joined: Fri Apr 15, 2011 8:45 am
- Location: [* spam *], UP, India
- Contact:
Re: How to show a single article when click on menu item?
Thanks jbudd, for this nice advice. Well I am new to joomla and I am till not completely expert on editing template. As you told that it is something tricky for editing that template according to my requirement, so can you please recommend me another template that can fulfill my requirement.
Thanks
Thanks
Free Online Games - http://coolmathforkids.info/
-
- Joomla! Ace
- Posts: 1149
- Joined: Wed Jan 18, 2006 1:28 pm
- Location: West Midlands, UK
- Contact:
Re: How to show a single article when click on menu item?
Whichever template you choose will have to be customised to suit your corporate image, so why not start by playing with one of the default templates? Despite the goofy images, Beez has a lot of excellent features.
Other than these there are thousands of templates available. If you find a good way to choose one please let me know, because I usually only find out the problems after days of wrestling with spaghetti code and impenetrable CSS.
Other than these there are thousands of templates available. If you find a good way to choose one please let me know, because I usually only find out the problems after days of wrestling with spaghetti code and impenetrable CSS.
-
- Joomla! Apprentice
- Posts: 27
- Joined: Fri Apr 15, 2011 8:45 am
- Location: [* spam *], UP, India
- Contact:
Re: How to show a single article when click on menu item?
Ya that fine, but as I am new in joomla so want to start from easy customization. After all thanks for this nice guide.
Free Online Games - http://coolmathforkids.info/