FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

Need Help with navigation

Feed 4 posts, 3 voices

Avatar
2 posts

Hello everyone,

after several tests with other CMS (wordpress, modXcms, radiant) i finaly arrived at FrogCMS.
I think it is a great and end-userfriendly system.
At first, i want to rebuild a existing Website with FrogCMS:

existing Site: http://www.seehotel-huberhof.de
rebuild with FrogCMS: http://www.seehotel-huberhof.de/frog_094/

The most work of HTML and CSS is done right now (i had to improve HTML and CSS too) and when the Layout is finished I will start to insert the content.

But right now i got some problems with the navigation. I´m not very familar with PHP so I need some help. The navigation consist of three link-lists:

  • The first should always show the childs of the “/” element.
  • The second menu-list should show the childs of the current link/page
  • the third one should show the childs of a special, hidden page.

It would be very nice if someone has a solution for this Problem.
Thanks and greets form Berlin

Thomas

 
Avatar
1493 posts

Hi Thomas — It looks like the site is making good progress. Sorry you’ve been waiting for replies! Maybe it looks like you’re sorting it out already! :)

I assume you have looked at the Navigation Cookbook? Still, it might be a little difficult to work out what options work best.

The navigation you describe can certainly be managed in Frog. Unfortunately I’m not able to help much for the next week or two, but if you have specific questions, maybe you could post them here and we can see how it goes.

 
Avatar
2 posts

Hi David,

Sorry for not answering! I decided to wait for the next frog release to finish the work on the template. And yes I´ve seen the Navigation Cookbook but most oft the examples are too complicated for me concering the PHP-Knowledge.
Perhaps it would be a good idea for frog to implement something like the Wayfinder in MODxCMS.

So I will post my Problems after the release of frog 0.9.5

regards
Thomas

 
Avatar
2 posts

Hello again,

I just solved the Navigation Problems. But now there is a new one an may be it is a Bug in the breadcrump method:
I got a kind of Footer-Menu for Contact-Information and so on. So I made a new hidden Page called contact.
This hidden contact page is the parent of several Pages called contact, imprint, and so on.
Now, when the imprint Page ist requested the breadcrumb() shows this:

Home > contact > imprint

The Problem is: How can I tell breadcrumb to not show hidden Pages like contact

Thanks and Greets
Thomas

 
Avatar
2 posts

Hi

I had same problem, how to hide some page in breadcrumbs.

This is my solution:
1. leave “Breadcrumb” field empty (under metadata)
2. small change inside of \frog\app\classes\Page.php

private function _inversedBreadcrumbs($separator)
{
	$out = "";
	if (!empty($this->breadcrumb))
		$out = '<a href="'.$this->url().'" title="'.$this->breadcrumb.'">'.$this->breadcrumb.'</a> <span class="breadcrumb-separator">'.$separator.'</span> '."\n";

So, this will prevent output of empty breadcrumb. :)