How to show a single article when click on menu item?

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

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.
Locked
crazydeveloper
Joomla! Apprentice
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?

Post by crazydeveloper » Thu Apr 21, 2011 6:31 am

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
Free Online Games - http://coolmathforkids.info/

naattila
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Apr 20, 2011 8:06 am

Re: How to show a single article when click on menu item?

Post by naattila » Thu Apr 21, 2011 6:57 am

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)

crazydeveloper
Joomla! Apprentice
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?

Post by crazydeveloper » Thu Apr 21, 2011 7:42 am

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/

jbudd
Joomla! Ace
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?

Post by jbudd » Thu Apr 21, 2011 8:25 am

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)

Code: Select all

<?php if($this->countModules('side1')) : ?>
	<div id="left">
	<jdoc:include type="modules" name="side1" style="rounded" />
	</div>
<?php endif; ?>
And then use a different div for the maincolumn depending on how much space there is for it

Code: Select all

<?php if($this->countModules('side1')) : ?>
	<div id="side2">
<?php else: ?>
	<div id="side2_full">
<?php endif; ?>
The widths of side2 and side2_full are specified in the CSS file

Code: Select all

.side2 { 
width: 642px;
}
.side2_full {
width: 100%;
}
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

crazydeveloper
Joomla! Apprentice
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?

Post by crazydeveloper » Thu Apr 21, 2011 8:33 am

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
Free Online Games - http://coolmathforkids.info/

jbudd
Joomla! Ace
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?

Post by jbudd » Thu Apr 21, 2011 9:07 am

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.

crazydeveloper
Joomla! Apprentice
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?

Post by crazydeveloper » Thu Apr 21, 2011 10:17 am

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/


Locked

Return to “General Questions/New to Joomla! 1.5”