Page 1 of 1

How can I change menu text?

Posted: Mon Oct 16, 2006 2:02 pm
by jimmychuang
How can I change menu text format?

Check this page: wwwww.casinobonuswatch.netttttt

You'll see "Home" on the top of menu, how do I change it's format to be just like other text link of menu?

Re: How can I change menu text?

Posted: Mon Oct 16, 2006 7:23 pm
by Dr.CSS
Have you got something running in the background of that site? I found it to be real slow and I couldn't scroll up or down with the wheel on my mouse and looking at the source it would scroll real slow, usind Firefox.

The home page is set as Current page from the menu template, Current page is 1: Home in Menu Manager, if you use CSS to treat currentpage just like a link it will look the same.

Or chnage the menu template you use or customize one to do what you want.

Re: How can I change menu text?

Posted: Tue Oct 17, 2006 3:37 pm
by jimmychuang
mark wrote: Have you got something running in the background of that site? I found it to be real slow and I couldn't scroll up or down with the wheel on my mouse and looking at the source it would scroll real slow, usind Firefox.

The home page is set as Current page from the menu template, Current page is 1: Home in Menu Manager, if you use CSS to treat currentpage just like a link it will look the same.

Or chnage the menu template you use or customize one to do what you want.
Are menu templates managed by menu manager module? 

I didn't find "currentpage" in all files in the template & stylesheets section, so I am not sure where can I change that...

Re: How can I change menu text?

Posted: Tue Oct 17, 2006 6:56 pm
by Dr.CSS
You may have to add the call for 'currentpage' in the CSS usually in the menu part as that is where it is in the page...

#menudiv li.currentpage{your style}  menudiv being the div your menu is in...

If you go to Layout » Menu Manager you will see 2 tabs second one is File Templates this is all the default templates if you use one and want to customize it click the icon to the right and name it and you will end up on the first tab with your new template in the list, clcik the name of it and it will open in a edit box where you can change the calls, if you go to Extensions » Modules and clcik the word Help on the right, in newer ver. of CMSMS the name of the module will also take you to the 'Help', in 'Help' you will see...

If you would like to make a specialized version of a template, you can easily import into the database and then edit it directly inside the CMSMS admin. To do this:

  1. Click on the Menu Manager admin.
  2. Click on the File Templates tab, and click the Import Template to Database button next to i.e. simple_navigation.tpl.
  3. Give the template copy a name. We'll call it "Test Template".
  4. You should now see the "Test Template" in your list of Database Templates.

Now you can easily modify the template to your needs for this site. Put in classes, id's and other tags so that the formatting is exactly what you want. Now, you can insert it into your site with {menu template='Test Template'}. Note that the .tpl extension must be included if a file template is used.

The parameters for the $node object used in the template are as follows:

    * $node->id -- Content ID
    * $node->url -- URL of the Content
    * $node->accesskey -- Access Key, if defined
    * $node->tabindex -- Tab Index, if defined
    * $node->titleattribute -- Description or Title Attribute (title), if defined
    * $node->hierarchy -- Hierarchy position, (e.g. 1.3.3)
    * $node->depth -- Depth (level) of this node in the current menu
    * $node->prevdepth -- Depth (level) of the node that was right before this one
    * $node->haschildren -- Returns true if this node has child nodes to be displayed
    * $node->menutext -- Menu Text
    * $node->alias -- Page alias
    * $node->target -- Target for the link. Will be empty if content doesn't set it.
    * $node->index -- Count of this node in the whole menu
    * $node->parent -- True if this node is a parent of the currently selected page

Re: How can I change menu text?

Posted: Tue Oct 24, 2006 3:09 pm
by jimmychuang
Hi,

After I added a test template, the menu showed all catalogues.

How do I fix that?

Re: How can I change menu text?

Posted: Wed Oct 25, 2006 2:55 am
by Dr.CSS
All catalogues?

Re: How can I change menu text?

Posted: Wed Oct 25, 2006 4:08 pm
by jimmychuang
Check out my website, and you will see.

And the "Home" text still looks like before.

Re: How can I change menu text?

Posted: Wed Oct 25, 2006 5:23 pm
by Dr.CSS
Your menu tag may need collapse="1" to get the children pages to not show unless the parent is current page...

The current page is still using the h3 designation, you will have to customize a menu template to get rid of it...

Re: How can I change menu text?

Posted: Sat Oct 28, 2006 10:06 am
by jimmychuang
I think I fix that, thank you.  :)

Re: How can I change menu text?

Posted: Sun Nov 12, 2006 3:43 am
by jimmychuang
Hi,

If I want to set sectionheader's text format the same as menu text link, how should I do?

Re: How can I change menu text?

Posted: Sun Nov 12, 2006 5:59 am
by Dr.CSS
I don't see any "sectionheader's" , what page are they on?

Re: How can I change menu text?

Posted: Tue Nov 14, 2006 1:50 pm
by jimmychuang
mark wrote: I don't see any "sectionheader's" , what page are they on?
Hi, I have removed it.