University Web Developers

University Web Developers

Hello all. I'm really having trouble getting the dotCMS navigation macro to work for me. It will display the top-level pages just fine, but nothing within sub-folders. Here is the code I'm using in my nav container:

<!--NAVIGATION START-->
<div id="nav">
#set($openAllLevels=true)
#navigation(2,3)
<br>
</div>
<!--NAVIGATION END-->
<!--HEADER END-->

The site I'm working on is in a sub-folder already, so that's why I'm starting at level 2. Below that, I have another set of folders, and that's as deep as this site will go...so I put in level 3 for the second parameter. No matter what I do, I cannot get the page I have in that sub-folder to show up in the navigation...even with $openAllLevels set to true. And yes, the page has "show on menu" checked.

Can anyone shed some light on this? It's killin' me!

BTW- I'm a total dotCMS/Velocity/Java newbie, but not new to XHTML, CSS, PHP, JS, etc.

THANK YOU!

Views: 371

Replies to This Discussion

So, to have this you need your folders to have Show on Menu set AND the folder has to have an index.dot HTML Page in it. So like:

Root
- Main Folder 1
-- Sub 1
--- index.dot
-- Sub 2
--- index.dot
Really? Wow, that's simple. It's funny that it isn't even mentioned in any of the help docs or video. I'll give it a try.
Thank you!
One more question - how do I set folders to "show on menu"? I don't see a place to do that for folders...only HTML pages. Also, I don't get a context menu when right-clicking on folders in the dotCMS browser. I'm guessing this is a privileges issue. I don't have root access or control.
Figured it out. I'm using a Mac, and I wasn't getting the context menu when right-clicking the folders in the dotCMS browser. I held down the control key and right-clicked...and lo and behold there was a list of glorious options.

Thanks for your help, Christopher. I'm sure I'll have more questions as this mystery unfolds.

Bonner
New issue. The "active" list item does not want to take my styling. The navigation macro is including the class="active", but the CSS I'm using doesn't have any effect on it. Here's my style: li.active {color: #009ACD;}

However the color is exactly the same as the non active list items.

Hints?
Thanks
Just top of my head but a couple things to try ...

Does it put the class on the anchor tag not the list item tag?

li a.active { color: #009ACD; }

Or perhaps you need to color the a tag instead of the li tag?

li.active a { color: #009ACD; }

Is it actually getting the active class?
Bingo! The list item was getting the class="active", but the anchor was what I needed styled. I have it all worked out now...including setting the active style for the level 2 nav.

Cheers!
Welp, I thought I had it. Of course, the active state doesn't work in IE7 or IE8 ( not testing in IE6 ). Active state works perfectly in FF and Safari. Can someone show me an example of this working 100%? My CSS must be off just a bit.
The navigation here: http://www.edinboro.edu/about_eup/

Has the active state with the arrow and black color. The CSS:

#default_nav ul,.online_resources ul{margin:0; padding:0;background:none;list-style:none; }
#default_nav li,.online_resources li{padding:0;margin:0;list-style:none;}
#default_nav li a,.online_resources li a{font-weight:700;color:#900;text-decoration:none;font-size:0.85em;padding:0 0 0 22px;margin:0;}
#default_nav li a:hover,#sidenav li.active a,#sidenav li.active li a:hover,
.online_resources li a:hover,.online_resources li.active a,.online_resources li.active li a:hover{color:#000;background-image:url(http://www.edinboro.edu/global/images/template/bg_arrow_black.gif);background-repeat:no-repeat;background-position:left 2px;}
#default_nav li ul,.online_resources li ul{margin:0;padding:0;}
#default_nav li li a,.online_resources li li a{margin:0 0 0 20px;color:#900;}
#default_nav li li a:hover,.online_resources li li a:hover{color:#000;}
#default_nav li.active li a,.online_resources li.active li{color:#900;background-image:none;}
Thank you Christopher. With your help, I was able to tweak my CSS to work in IE. List styling is kind of an arduous task! Thanks for all your help over the past few weeks.
Not a problem. Glad to help.
Help! Everything has been working fine for months. Just today, the entire navigation just disappeared...on all pages. The person in charge said they didn't do anything out of the ordinary.

Ideas?

RSS

Elsewhere

Latest Activity

Sara Arnold commented on Lynn Zawie's group OmniUpdate
"Web governance should not be an afterthought; when it’s done right, it can actually enhance your workflow and make your job easier. http://bit.ly/33vIZU0"
Friday
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"Exciting news... OmniUpdate has merged with Destiny Solutions! Learn more on our blog. http://bit.ly/332KSr8"
Oct 30
Linda Faciana commented on Lynn Zawie's group OmniUpdate
"Switching to a new CMS? Join our next webcast with Briana Johnson from @OSUIT to learn how to convince decentralized web content authors to tolerate the switch, actively participate, and enjoy it! http://bit.ly/2zhdcIt"
Oct 29
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"Your website is the front door to your college or university. Your website design has to accommodate for the way that students interact with and use the information your institution provides. http://bit.ly/2P8VldR"
Oct 24
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"Learn how a new website design and CMS helped Florida Gulf Coast University increase new visits to the school’s website with improved SEO. http://bit.ly/2ByaQq4"
Oct 21
Profile IconJames Pollard and Michael Clarke joined University Web Developers
Oct 21
Linda Faciana commented on Lynn Zawie's group OmniUpdate
"Join our next webcast with Kelly Rushing from @uofsouthalabama to learn how to create accessible PDFs for your website by starting with your source documents. http://bit.ly/2zhdcIt"
Oct 18
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"Learn why your college or university should choose SaaS across the board, especially for your next CMS. http://bit.ly/2Iy0SZE"
Oct 8
Linda Faciana commented on Lynn Zawie's group OmniUpdate
"Join us for our next webcast with OmniUpdate CEO Lance Merker, who will delve into key insights about Generation Z’s online search behaviors to help you refine your school's web marketing strategy. http://bit.ly/2zhdcIt"
Oct 3
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"Our newest guide will help you learn what it means to be accessible, how to implement accessibility best practices, quick fixes to try as well as a long-term plan, plus tools to help you in your website accessibility efforts. Download it now!"
Oct 1
Linda Faciana commented on Lynn Zawie's group OmniUpdate
"Are online forms more efficient? Learn how El Camino College used Formstack to create online forms that expedited processing, improved communications, increased transparency, and promoted accountability across campus. http://bit.ly/2zhdcIt"
Sep 18
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"It's important to understand the science behind your web pages to better engage and ultimately attract prospective students to your site. http://bit.ly/2ZYK8FZ"
Sep 12
Linda Faciana commented on Lynn Zawie's group OmniUpdate
"If you’re struggling with web challenges such as accessibility, SEO, design consistency, workflow, content governance, or how to start a website redesign, you’re not alone. Join our next webcast to learn how other higher ed institutions…"
Sep 5
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"eQAfy confirms that OU Campus is still the #1 commercial CMS for colleges and universities in the United States. http://bit.ly/2Lir9Mn"
Aug 28
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"Here’s an outline of everything you need to know about OCR compliance, including what it is, what your college or university can do to stay compliant, and resources for OCR compliance. #accessibility http://bit.ly/2rcPDgG"
Aug 23
Linda Faciana commented on Lynn Zawie's group OmniUpdate
"Join us for our next webcast with April Buscher from Montana State University Billings to learn how blind readers and people with hearing impairment view and read your website and how you can make it accessible to them. http://bit.ly/2zhdcIt"
Aug 14
Amanda Lawson joined Lynn Zawie's group
Thumbnail

OmniUpdate

Share your experiences using OmniUpdate CMS
Aug 9
Amanda Lawson posted a photo

Amanda Lawson

Amanda Lawson, Web Content ManagerCommunity College of Allgheny County
Aug 9
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"High schoolers spend more time on their digital devices than they do sleeping, doing homework, or participating in extracurricular activities. So how do you make your message stand out to them? #eexpect http://bit.ly/2MOIIWC"
Aug 8
Linda Faciana commented on Lynn Zawie's group OmniUpdate
"Want to increase digital engagement with high school juniors and seniors? Join our next webcast with Stephanie Geyer from Ruffalo Noel Levitz as she shares new data from the 2019 E-Expectations Trend Report on email, paid media, and social media…"
Jul 31

UWEBD has been in existence for more than 10 years and is the very best email discussion list on the Internet, in any industry, on any topic

About

© 2019   Created by Mark Greenfield.   Powered by

Badges  |  Report an Issue  |  Terms of Service