Simple Menu Help

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
web-guy
New Member
New Member
Posts: 8
Joined: Mon Apr 02, 2007 8:08 am

Simple Menu Help

Post by web-guy »

Hi, I've got scms installed and running well I think.

problem is I can't for the life of me figure out
this menu templating system....

The documentation is very slim on info in this area.
I can find no information on existing menu templates.
I can find no information on what database and file
templates mean, where they differ etc... 

How does one make a database menu template a file
template??? Documentation is either buried deep or
it is not there... sadly... and to my frustration....

All I really want is a simple css menu, one level.

ie:

Code: Select all

 <img alt="glorify_07 (1K)" src="images/glorify_07.jpg" class="menubg1"/>
 <img alt="glorify_08 (1K)" src="images/glorify_08.jpg" class="menubg2"/>
 <div class="menu">
  <a href="http://index.php" title="go to home page"
	 tabindex="2">Home</a> | <a href="about.php" title="About our church" tabindex="3">
	 About Us</a> | <a href="beliefs.php" title="What we believe" tabindex="4">
	 Our Beliefs</a> | <a href="missionaries.php" title="View list of missionaries"
	 tabindex="5">Missionaries</a> | <a href="heaven.php" title="How to get to heaven"
	 tabindex="6">How to go to Heaven</a> | <a href="contact.php" title="Contact us"
	 tabindex="7">Contact Us</a> | <a href="stand.php" title="stand for God, Jesus, the Christian faith poem " tabindex="8">Stand</a>
 </div>
I've tried to figure this out on my own but have only ended up in failure.

I need some help please.

And I would really appreciate it if someone could point me to documentation
on the functions/methods/procedures (whatever you want to call them) used
in scms.  I need to understand how to bend the scripts to my use.  As well
as how things are laid out, where functions are pulled from and put in.

right now i feel overwhelmed by the sheer size of code, like I'm one person
swimming in the ocean without any land in sight.  I don't know where to head.
I don't know where to start.  I don't understand terms used etc.

but first the menu.  This website is live, but at the moment down....  :-[


thanks

-WG
Michael AC

Re: Simple Menu Help

Post by Michael AC »

Hi web-guy,

all you need is inserting a {menu}-tag into your template. something like this:

Code: Select all

<div class="menu">
  {menu template="bulletmenu.tpl" number_of_levels="1"}
</div>
The menu module automatically picks all pages and shows them using the named template. For styling this template just see the pages source code, then enter the styles within your css.

You can find more templates under layout -> menu manager -> template file

Kind regards
Michael
web-guy
New Member
New Member
Posts: 8
Joined: Mon Apr 02, 2007 8:08 am

Re: Simple Menu Help

Post by web-guy »

thank you for responding....
alas.... if only it were that easy.... but it's not i've found.... :'(

I don't want to use the existing menus.
I'm sure they are great :)

I have a custom menu I want to use.
SCMS does not automatically insert all existing
pages into this menu I have created.

and it is not a .tpl file.  As i don't know how to create one
because the documentation does not even so much as hint at it....

While this cms seems to me to be very very promising, it is sorely
lacking in documentation and examples.  Once i am proficient with
this cms i would like to contribute in this area.  As other cms's like
joomla have a wide following because they can not only do alot
but also have documentation to teach you on how to do things.
Service in any industry is vital.  the web is no exception, documentation
is part of the service. ;p  just my .01 cent's worth... not much...

but anyway... 

can any one explain to me how to add links to my existing
menu?  It won't take regular html code....?

I don't understand any of this $node code or how to use it...
no examples in help file... :P
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Simple Menu Help

Post by Dr.CSS »

If you find one of the database template that is close to what you want then go to Layout > Menu Manager and click the second tab then click the little icon to the right to copy it, name it and submit now you have an editable menu template, you use it like he said but you don't need the .tpl at the end of it...

You will have to experiment to get the diff. calls in it but it won't break anything to play around with it, I've put numbers in diff. places in the menu template to see where I might want to add code, 1, 2, 3, etc. ....
web-guy
New Member
New Member
Posts: 8
Joined: Mon Apr 02, 2007 8:08 am

Re: Simple Menu Help

Post by web-guy »

thanks... :)

I guess i'll have to learn things the hard way...

for now i have resorted to query strings in the
url.  it seems to work.  So while not dynamic
it means the website is operational.

a good thing.  :)

thanks.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Simple Menu Help

Post by Dr.CSS »

Do you have a Link?...
Post Reply

Return to “Layout and Design (CSS & HTML)”