Skip to content

PetersOtto/yellow-tagnavi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yellow-tagnavi

Extension for Datenstrom Yellow. This extension creates a navigation from the blogtags. If wanted, then with number of posts.

Bildschirmfoto

How to use the Yellow tagNavi extension

  1. Download extension and copy zip file into your system/extensions folder. Right click if you use Safari.

  2. Insert the following code in a suitable place in your start-blog.html.

<?php $url = $this->yellow->page->getBase(); $urlArg = $this->yellow->toolbox->getLocationArguments(); echo $this->yellow->extension->get("tagnavi")->getTagNavi("/blog/" , "count" , "0" , "tagnavi" , "All Projects" , $url, $urlArg)?>

The following parameters can be adjusted: getTagNavi("1" , "2" , "3" , "4" , "5" , $url, $urlArg)?>

  • 1 = location of blog start page (/ or /blog/ or ...)
  • 2 = switch on the »Counter Mode« (count for count, nocount for no count)
  • 3 = number of entries to show, 0 for unlimited
  • 4 = name for the css class
  • 5 = name for the link that displays all blog entries. (All or All Projects or ...)
  1. Make adjustments in css. Here is a basic example. Paste the code into your css-file, e.g. at the end of your stockholm.css.
.tagnavi ul {
    padding-left: 0;
}

.tagnavi li {
    display: inline-block;
    padding-right: 1rem;
}

.tagnavi a {
    text-decoration: none;
}

.tagnavi a:hover {
    text-decoration: underline;
}

.tagnavi a.active {
    text-decoration: underline;
}

.tagnavi span {
    vertical-align: super;
    color: var(--link);
}

.tagnavi span::before {
    content: "(";
    padding-left: 0.2rem;
}

.tagnavi span::after {
    content: ")";
}
  1. This extension requires the blog extension.

Developer

PetersOtto. Get help

About

This extension creates a navigation from the blogtags

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages