Page 1 of 1

Content Items Alignment in Main Menu - pls help !!!

Posted: Tue Sep 12, 2006 4:23 pm
by starlight32
Hi there,

I wonder if you can help me with this:

I created a Section and linked it to the main Menu.

Then, created a few Link – Content Items- to this Menu entry.

The problem is that I view the Menu parent Menu items aligned to the left instead of to the right…(on the menu)
And also, I see an icon (rectangle with red X on it) instead of a normal icon...

Can you guide me through, how to align the menu Items to the right on the Main menu, and add a normal icon (or get rid of the existing one?)

Thank you very much.
Starlight

Re: Content Items Alignment in Main Menu - pls help !!!

Posted: Wed Sep 13, 2006 8:44 am
by mtk
Hello Starlight,
if you are a hebrew speaker I would recommend asking your questions in the Joomla Hebrew Site.

regarding the alignment to the right, you'll need to hack the mod_mainmenu.php file & change it's code.

Line 251:

Code: Select all

align="left"
into:

Code: Select all

align="right"
I suggest not doing this if you're not 100% sure, what's you're doing...

regarding your icon question, check that the link to the image is currectly pointing at the image..

good luck...

Re: Content Items Alignment in Main Menu - pls help !!!

Posted: Wed Sep 13, 2006 9:23 am
by starlight32
Thanks so much!

I aligned the menu items to the right!!! :)

Now, the problem with the icon remains: :'(
I guess, the code doesn’t point at the image of the icon (bullet)

Can you pls guide me : how to point at the right icon from the code.

Again, many thanks
Starlight

Re: Content Items Alignment in Main Menu - pls help !!!

Posted: Wed Sep 13, 2006 9:29 am
by mtk
that's ready depend on where the image is, & how you are pointing to it...

Re: Content Items Alignment in Main Menu - pls help !!!

Posted: Wed Sep 13, 2006 11:54 am
by starlight32
Thanks MTK,

:'(I don't know - is it the $img[1] that appears on the File: mod_mainmenu.php???

what image do you recommend, and where can I place it - in order that it will be used by the template (javabean_rtl)
It looks like the file mod_mainmenu.php - goes to :
  $imgpath = $mosConfig_live_site .'/images/M_images';
to look for it...
But the result is the defult tiny icon with a red X on it (a placeholder for a good icon that I need...)
Can you advise?

Thanks!!!

Re: Content Items Alignment in Main Menu - pls help !!!

Posted: Wed Sep 13, 2006 12:18 pm
by mtk
the place to look 4 it, is not in the code itself...
you should learn more about templates & CSS - your solution is there...

Re: Content Items Alignment in Main Menu - pls help !!!

Posted: Sun Jul 01, 2007 9:06 pm
by demiurg
I tried this hack too and it worked... sort of. Now the menu items are aligned to the right, but placed slightly out of the menu item box.

And it only happens in Firefox. IE displays it right.

Any ideas ? Thanks...

Re: Content Items Alignment in Main Menu - pls help !!!

Posted: Tue Jul 24, 2007 1:24 am
by arender
maybe your images is not uploaded check in your images folder in your tamplete folder.

Re: Content Items Alignment in Main Menu - pls help !!!

Posted: Sat Jul 28, 2007 9:00 am
by mtk
demiurg wrote: I tried this hack too and it worked... sort of. Now the menu items are aligned to the right, but placed slightly out of the menu item box.

And it only happens in Firefox. IE displays it right.

Any ideas ? Thanks...
In this case it is a CSS issue.

Re: Content Items Alignment in Main Menu - pls help !!!

Posted: Sat Aug 06, 2011 4:21 pm
by WebbyWendy
I've gone through the CSS and feel like I've changed EVERY "right" padding and margin attributes and nothing seems to effect the alignment of the content of the right modules. I've attached a snip of my challenge.

Re: Content Items Alignment in Main Menu - pls help !!!

Posted: Thu Jun 14, 2012 5:47 am
by ISScyborg
I want to know how to move single menu item to the right and others stay on left?

Re: Content Items Alignment in Main Menu - pls help !!!

Posted: Sat Oct 13, 2012 8:36 am
by kazmilahore
Can you please tell me, where is this file mod_mainmenu.php is located?
I am using Joomla 2.5.7.

Thanks a lot