All Projects β†’ jbeyerstedt β†’ Kirby Template Sitemap

jbeyerstedt / Kirby Template Sitemap

Licence: gpl-3.0
DEPRECATED: Sitemap-Templates with option to exclude pages by template e.g. for one-pagers

Labels

Projects that are alternatives of or similar to Kirby Template Sitemap

kirbyup
πŸ†™ Zero-config bundler for Kirby Panel plugins
Stars: ✭ 33 (+266.67%)
Mutual labels:  kirby
kirby-ga
Kirby GA - Google Analytics
Stars: ✭ 16 (+77.78%)
Mutual labels:  kirby
kirby-copy-files
Clone page dashboard widget for Kirby panel
Stars: ✭ 12 (+33.33%)
Mutual labels:  kirby
queue-for-kirby
Basic queue for Kirby 2, using Cron and Kirby's flat file system
Stars: ✭ 17 (+88.89%)
Mutual labels:  kirby
vuekit
Kirby 3 + Vue.js kit
Stars: ✭ 16 (+77.78%)
Mutual labels:  kirby
kirby-blade
Enable Laravel Blade Template Engine for Kirby 3
Stars: ✭ 20 (+122.22%)
Mutual labels:  kirby
kirby3-many-to-many-field
This plugin allows you to create many-to-many relationships between pages in Kirby and synchronizes them on both sides.
Stars: ✭ 38 (+322.22%)
Mutual labels:  kirby
Kirby Pay
Make online payments with Kirby
Stars: ✭ 27 (+200%)
Mutual labels:  kirby
Cartkit
Cartkit - The [quick] starter kit!
Stars: ✭ 39 (+333.33%)
Mutual labels:  kirby
kirby-imageradio
Add illustrations to Kirby's radio buttons. Kirby 2 and 3.
Stars: ✭ 49 (+444.44%)
Mutual labels:  kirby
retour-for-kirby
Kirby 3 plugin to manage redirects and track 404s right from the Panel
Stars: ✭ 96 (+966.67%)
Mutual labels:  kirby
kirby-architect
πŸ“ Easily reference Blueprint data from anywhere in your Kirby application.
Stars: ✭ 38 (+322.22%)
Mutual labels:  kirby
search-for-kirby
Kirby 3 plugin for adding a search index (sqlite or Algolia).
Stars: ✭ 42 (+366.67%)
Mutual labels:  kirby
kirby-vue-starterkit
Kirby + Vue.js
Stars: ✭ 90 (+900%)
Mutual labels:  kirby
Kirby
Kirby's core application folder
Stars: ✭ 436 (+4744.44%)
Mutual labels:  kirby
kirby-file-types
Show file fields only for specific file types
Stars: ✭ 13 (+44.44%)
Mutual labels:  kirby
soba
Kirby starter theme that uses Twig, PostCSS, and Browsersync
Stars: ✭ 16 (+77.78%)
Mutual labels:  kirby
Kirby Sri
Subresource integrity hashing & cache-busting static assets for Kirby
Stars: ✭ 9 (+0%)
Mutual labels:  kirby
Bentobox
A simple theme to organize links using the Kirby CMS
Stars: ✭ 24 (+166.67%)
Mutual labels:  kirby
kirby-locator
A simple map & geolocation field, built on top of open-source services and Mapbox. Kirby 3 only.
Stars: ✭ 83 (+822.22%)
Mutual labels:  kirby

Kirby Enhanced Sitemap Templates

by Jannik Beyerstedt from Hamburg, Germany
jannikbeyerstedt.de | Github
license: GNU GPL v3
version: v1.2.1

Introduction

Sitemap-Templates with option to exclude pages by template e.g. for one-pagers

This template for the kirby CMS let’s you have fine grained control over the pages included in the sitemap. Especially I needed features to exclude onepager sections.

The main features are:

  • you can ignore special sites by it’s URI
  • and you can ignore sites by the template it uses !
    in detail it is the "intended template", aka filename of the content file!

Invisible pages will not be shown in the sitemap, but there is an option to show invisible pages at the top level anyway (e.g. to show imprint and contact pages in the sitemap as well).

There is also a html version of the sitemap available, but this template uses some special snippets I use for my header, navigation and footer, so you would have to adjust this to your site’s structure.

User Manual

Installation

store the files of the templates folder in

site/templates/

store the files of the snippets folder in

site/snippets/

store the files of the blueprints folder in

site/blueprints/

There are two files each! One is for the xml sitemap, one for an html sitemap, which is human readable.

Html Sitemap

The html sitemap can be embedded in your content section by the handy snippet. E.g. create a template named htmlsitemap with your normal site structure and replace your normal (text) content with the snippet. The snippet creates two columns with the twitter bootstrap markup, so you have to have bootstrap or you have to write a little css to put the columns in the right place.
There is a corresponding blueprint for a htmlsitemap template, which displays some information in the panel.

Preparation

set some constants in your config.php

c::set('smap_ignoreSite',     array('sitemap', 'htmlsitemap'));
c::set('smap_ignoreTemplate', array('foo'));
c::set('smap_showHiddenPagesAtRootLevel', true);

smap_ignoreSite contains all sites you want to be excluded from the sitemap.
smap_ignoreTemplate contains all templates you want to be excluded from the sitemap.
smap_showHiddenPagesAtRootLevel option to show hidden pages at top level

For the html sitemap, you should set some other values:

c::set('smap_heading_visible', 'visible pages (e.g. menu)');
c::set('smap_heading_invisible', 'invisible pages (e.g. others)');

smap_heading_visible sets a heading for all visible pages. These are often the pages included in the main menu, so it would be nice to title them as main menu.
smap_heading_invisible set a heading for all invisible pages.

Including the Template

As for every other kirby template, generate a page (folder) for your URI and let the the content file have the same name as the template.

The Snippet

The snippet is very easy to use:

snippet('htmlsitemap');

contribution

Feel free to fork this repository and make it better.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].