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: 405

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 Kisseberth posted a discussion

Archived magazine stories

Greetings,What are you all doing online with "old" magazine stories? Do you delete issues after so  many years? 5 years? 10? I'm torn between keeping all on for historical purposes or keeping just a few years online to simplify the site (ala Gerry McGovern.) Curious as to what you see best practices being.ThanksSara KisseberthBluffton Universitywww.bluffton.eduSee More
Jun 10
Erin Jorgensen posted a discussion

HighEdWeb 2020 Accessibility Summit

The HighEdWeb 2020 Accessibility Summit is a one-day, online conference about digital accessibility in higher education happening June 25, 2020, from 10 a.m. to 5 p.m. CDT.Join in to learn best practices, share stories and connect with your higher ed peers on topics including social media accessibility, web development, user experience and more. Sessions are designed to boost knowledge at every level, from accessibility beginners to technical experts. Conference registration is $25, with…See More
May 29
Erin Jorgensen is now a member of University Web Developers
May 29
Christine Boehler posted a discussion

HighEdWeb 2020 Annual Conference - ONLINE

October 19-20, 2020https://2020.highedweb.org/#HEWeb20     Join us ONLINE for HighEdWeb 2020, the conference created by and for higher education professionals across all departments and divisions. Together we explore and find solutions for the unique issues facing digital teams at colleges and universities. In 2020, the Conference will be held completely online, offering multiple tracks of streamed presentations, live…See More
May 3
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"Throughout April, we're hosting webcasts exploring how colleges and universities across North America are responding to the COVID-19 pandemic. Register for the series today! https://bit.ly/2xsXhK9"
Apr 13
Christelle Lachapelle is now a member of University Web Developers
Apr 6
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"Download our latest white paper to learn how the demographics of today’s higher ed learners are shifting, and how schools can adapt to meet the needs of these new learners. https://bit.ly/2wTKdgB"
Mar 31
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"Join our next webcast with Amrit Ahluwalia from The EvoLLLution to learn about the new "modern learner" in higher education. https://bit.ly/2UuDh2I"
Mar 30
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"As we ride out the latest developments and impact of the coronavirus, there's no better time than now to learn the three Bs of crisis planning. http://bit.ly/2ITVkc2"
Mar 16
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"Is your college or university prepared to meet the challenges that come with disasters and emergencies like the coronavirus? Learn how your CMS can help. http://bit.ly/2TUZUM8"
Mar 12
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"Can’t afford the time and money to launch a comprehensive guided pathways model? Register for our FREE webcast to learn tricks for simulating a digital guided pathways experience."
Feb 21
Sara Arnold commented on Lynn Zawie's group OmniUpdate
"With college enrollment decreasing for the 8th year in a row, boosting your college or university marketing efforts is more important than ever. Here's how to get started. http://bit.ly/2vTQAzz"
Feb 20
Christine Boehler posted a discussion

HighEdWeb 2020 Annual Conference

October 18-21, 2020 in Little Rock, Arkansas, USAhttps://2020.highedweb.org/#HEWeb20     Join us for HighEdWeb 2020, the conference created by and for higher education professionals across all departments and divisions. Together we explore and find solutions for the unique issues facing digital teams at colleges and universities. With 100+ diverse sessions, an outstanding keynote presentation, intensive workshops, and engaging networking events,…See More
Feb 19
Christine Boehler posted a discussion

HighEdWeb 2020 Call for Proposals is Open!

The 2020 Annual Conference of the Higher Education Web Professionals Association (HighEdWeb) will travel to Little Rock, Arkansas, this October 18-21 — and the call for proposals is now open! As a digital professional in higher education, we know you have great ideas and experiences to share. From developers, marketers and programmers to managers, designers, writers and all team members in-between, HighEdWeb provides valuable professional development for all who want to explore the unique…See More
Feb 14
Christine Boehler shared Sara Clark's discussion on Facebook
Feb 14
Christine Boehler is now a member of University Web Developers
Feb 14
Brian Bell joined Kevin Daum's group
Feb 14
Brian Bell joined Mark Greenfield's group
Feb 14
Kenneth George is now a member of University Web Developers
Feb 13
John Sterni is now a member of University Web Developers
Feb 6

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

© 2020   Created by Mark Greenfield.   Powered by

Badges  |  Report an Issue  |  Terms of Service