Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 9:58 am (All times are UTC )

 


Forum rules

Please submit all new Tips and Tricks to: http://docs.joomla.org/Category:Tips_and_tricks

This forum section will be closed and removed eventually.



Post new topic Reply to topic  [ 8 posts ] 
Author Message
Posted: Sun Apr 23, 2006 8:19 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Dec 20, 2005 5:29 pm
Posts: 15
Hi

I have been using joomla for more than a year now and I love it from the first day…
I am still not able to understand one thing… :-[ i.e. suppose I want post some article like “welcome to my site” on the FrontPage and I want it to stay on the top.. While the new news contents gets added below…kind of “stick the first article on the top like stickey in forums”

How we can do this?  ???

Thanks ;)

_________________
http://www.ecard.lifeshore.com/
http://www.hotdt.com/


Top
  E-mail  
 
Posted: Sun Apr 23, 2006 8:36 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11695
Location: **Translation Matters**
3 steps:
1. A position has to be defined in your template just before the mainbody
2. Then create, though Module Manager, a New Module and enter the text you like in the editor there.
Choose a position defined in your template.
3. Assign the new module to the Menu Items you want. All for all pages, first menu item for the mainmenu if you want this text to appear only on the Home Page of your site.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Posted: Sun Apr 23, 2006 8:54 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Tue Dec 20, 2005 5:29 pm
Posts: 15
Wow :-*

Got it working!!!

Thanks a lot

_________________
http://www.ecard.lifeshore.com/
http://www.hotdt.com/


Top
  E-mail  
 
Posted: Sun Apr 23, 2006 12:29 pm 
User avatar
Joomla! Hero
Joomla! Hero
Offline

Joined: Thu Aug 25, 2005 5:48 pm
Posts: 2801
Location: Geneva mostly
This gets asked so often, it might be good to
a/ add a default position of "sticky"
b/ add a module "sticky content"
c/ requiere templates to feature that above mainbody..

_________________
Sometimes one pays most for the things one gets for nothing.
The important thing is not to stop questioning. Curiosity has its own reason for existing. AE
http://joomla15.blogspot.com for J! 1.5 screenshots
http://www.eyezberg.com


Top
  E-mail  
 
Posted: Mon Apr 24, 2006 1:23 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 16, 2005 2:02 am
Posts: 459
Location: Breklum - Nordfriesland
Yes that works fine, but be aware, that {mosimage} and other bots aren't called on this. You still can put the links into the code directly, so it's not too hard ;)

Regards
Niels


Top
   
 
Posted: Thu Jun 26, 2008 1:19 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed May 07, 2008 12:23 am
Posts: 6
infograf768 wrote:
3. Assign the new module to the Menu Items you want. All for all pages, first menu item for the mainmenu if you want this text to appear only on the Home Page of your site.


Old thread, sorry...

The thing with assigning a module to the first menu item is that it only works half way... It will still be displayed on any page after you click 'read more'.

Any way to prevent this?

/Chris


Top
  E-mail  
 
Posted: Fri Jun 27, 2008 10:14 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Wed Nov 16, 2005 2:02 am
Posts: 459
Location: Breklum - Nordfriesland
scubasapiens wrote:
The thing with assigning a module to the first menu item is that it only works half way... It will still be displayed on any page after you click 'read more'.

Any way to prevent this?


Yes. Give that module a special position, eg. "sticky", and assign your module to that position. Be sure to apply the module at least to your frontpage (ie, the "Home" menu item).

Next, add this code to your tempate's index.php just before the call to mosMainBody():

Code:
if ( $option == 'com_frontpage' ) {
    mosLoadModules( 'sticky' );
}


That should help.

Regards,
Niels


Top
   
 
Posted: Sat Jun 28, 2008 6:19 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 3:47 pm
Posts: 11695
Location: **Translation Matters**
It will, if com_frontpage is the default first menu item, not if it is an ordinary blog.

_________________
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
---------------------------------
Joomla! Translation Coordination Team


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 5 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group