Sep 08, 2008, 05:26 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: [Template] Andreas02  (Read 8365 times)
0 Members and 1 Guest are viewing this topic.
sottwell
Documentation Team
*
Posts: 7,910



WWW
« on: Nov 03, 2005, 03:39 AM »

This is a nice template.  A few things to take note of:

There are three separate menus.  At the very top is a menu which can be used for external links, or dividing the internal installation of MODx into different virtual sites, for example a multilanguage site.

In the case of a list of external links, it should use an unpublished (or not shown in menu) folder of weblinks.  In the case of internal virtual sites, set the DropMenu snippet there to use 0.  Each folder in the root of the Tree will contain the virtual site.  There are a number of ways to control the main menu in that case, for example see http://modxcms.com/forums/index.php/topic,409.0.html for one method.

The main menu is a single-level list.  Any submenus are displayed in a sidebar menu.  In these circumstances, you cannot use an empty folder to contain a submenu.  All of the main menu items must be linkable documents, with content and a template.

The submenus are preceded by a little snippet that determines if there will be any submenu items.  If there are, it displays a menu header. 

You will most likely want to replace the text in the template with chunks containing your own content.  It's better to use chunks and keep text out of the template, not only to keep your template code clean and obvious, but also so you can use the same chunks of content in other templates and only need to make changes to the chunk, not to every template.



* Andreas02.jpg (17.82 KB, 200x117 - viewed 4357 times.)
* Andreas02.zip (101.63 KB - downloaded 1150 times.)
« Last Edit: Nov 03, 2005, 11:45 AM by sottwell » Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
sottwell
Documentation Team
*
Posts: 7,910



WWW
« Reply #1 on: Nov 03, 2005, 08:14 AM »

There is an issue with the sidebar menu if it has multiple levels.  I'm working on it, and will attach the snippet to use as soon as it's all finished.
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
sottwell
Documentation Team
*
Posts: 7,910



WWW
« Reply #2 on: Nov 03, 2005, 11:48 AM »

Ok, the template has been corrected to properly handle the sidebar submenus.  It no longer adds a heading to the menu.  The snippet used to set the correct startDoc id is included in the updated download attached to the first post.  It is also being released in the Snippets etc. forum.
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
stupid
Jr. Member
*
Posts: 30


« Reply #3 on: Nov 10, 2005, 11:03 PM »

Just a quick query, probably a stupid CSS question, but I'm having trouble with the formatting of the top menu bar, In Firefox, it overlaps the img by approx 1 pxl, and in IE (god I hate having to deal with IE) there is about a 4 or 5 pxl Gap between the top menu and the img.

Any suggestions would be greatly appreciated!
Logged
sottwell
Documentation Team
*
Posts: 7,910



WWW
« Reply #4 on: Nov 11, 2005, 12:43 PM »

Yes, the issue is the CSS.  All I can suggest is fiddle the CSS until it looks good.  I often have to put a conditional style block in the template to handle IE.  There are "hacks" for it, but they usually depend on bugs in IE that they fix so the hacks don't work any more, but the problem you used the hacks to fix are still there!

I'll load it up in IE tomorrow morning, and see what needs to be done to fix it.
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
Dr. Scotty Delicious
Coding Team
*
Posts: 1,172


Dr. of Fine Pirate Arts


WWW
« Reply #5 on: Nov 11, 2005, 01:10 PM »

Ahh... The dreaded style with IE.  The problem:  your page looks great in every browser... except, IE screws with your beautiful positioning.  Especially noticeable if you use "float:" in your CSS.  Rumored to be repaired in IE7, IE6 and below are still riddled with problems involving web-standard CSS1 positioning classes.  The easiest (and most universal) fix I have found is a conditional comment with style info:

http://www.quirksmode.org/css/condcom.html

I use this for the margins on my lists ( The subNavigation section ) on my website.

-sD-
scotty Delicious
Logged

We pillage, we plunder, we rifle and loot. Drink up me 'earties, Yo Ho!
We kidnap and ravage and don't give a hoot. Drink up me 'earties, Yo Ho!
Yo Ho, Yo Ho! A pirate's life for me.
stupid
Jr. Member
*
Posts: 30


« Reply #6 on: Nov 21, 2005, 04:44 PM »

Cheers Scotty,

Yeah that conditional sorted me out, just tweaked the bottom margin to -7px in the CSS and in the   IE conditinal set it to -14px and all is now right with the world. Apart from IE as nothing will ever be right with that browser it would seem ^_^

Thanks again.
Logged
DNA
Jr. Member
*
Posts: 41


« Reply #7 on: Apr 25, 2006, 02:55 PM »

#Edit#
« Last Edit: Apr 26, 2006, 07:11 AM by DNA » Logged
sophietje
Jr. Member
*
Posts: 13


« Reply #8 on: Aug 22, 2006, 03:16 PM »

How to get the menu in the sidebar working? I can't get it right with the css provided. It shows an ordinary list instead of the markup that is assigned to the sidemenu....
I don't use the Ultimate Parent snippet from the zipfile, I use the snippet that was already in my MODX.
Logged
sottwell
Documentation Team
*
Posts: 7,910



WWW
« Reply #9 on: Aug 22, 2006, 03:44 PM »

Do View Source on your page, and check the id or class names for the containers (div or ul) for the menu. You'll need to adjust the CSS to match those.
Logged

sottwell.com has moved to a lovely Solaris 10 server!
Log in username guest, password guestuser.
Templates are now becoming available at http://sottwell.com/templates.html
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!