Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/illagrenan/nette-navigation-control

Control pro Nette Framework usnadňující tvorbu menu a drobečkové navigace
https://github.com/illagrenan/nette-navigation-control

Last synced: about 2 months ago
JSON representation

Control pro Nette Framework usnadňující tvorbu menu a drobečkové navigace

Awesome Lists containing this project

README

        

# Nette Navigation Control ([forknuto od janmarek/Navigation](https://github.com/janmarek/Navigation))
Control pro Nette Framework usnadňující tvorbu menu a drobečkové navigace

Autor: Jan Marek
Licence: MIT

```json
{
"require": {
"illagrenan/nette-navigation-control": "dev-master"
}
}
```

**Závislosti:**
* [illagrenan/nette-base-control](https://github.com/illagrenan/nette-base-control)

## Použití

**Továrnička v presenteru:**

```php
httpRequest);

$navigation->addHomepage("Přehled obsahu", "Homepage:default");
$navigation->addNode("Materiály", "Publishable:list");
$navigation->addNode("Diskuze", "Discussion:list");

$administration = $navigation->addNode("Administrace", "Admin:default")
->addSpecialClass("special");

$administration->addNode("Vytvořit obsah", "Admin:createPublishable");
$administration->addNode("Správa diskuzí", "Admin:manageDiscussion");
$administration->addNode("Správa tagů", "Admin:manageTags");

return $navigation;
}
?>
```

**Menu v šabloně:**
```html
{widget navigation}
```

**Drobečková navigace v šabloně:**
```html
{widget navigation:breadcrumbs}
```