Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SS4 update #17

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 30 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,39 @@
# SilverStripe Sitemap Module 0.1
# SilverStripe Sitemap Module

Maintainer Contacts
-------------------
[![Latest Stable Version](https://poser.pugx.org/symbiote/silverstripe-sitemap/v/stable)](https://packagist.org/packages/symbiote/silverstripe-sitemap)
[![Latest Unstable Version](https://poser.pugx.org/symbiote/silverstripe-sitemap/v/unstable)](https://packagist.org/packages/symbiote/silverstripe-sitemap)
[![Total Downloads](https://poser.pugx.org/symbiote/silverstripe-sitemap/downloads)](https://packagist.org/packages/symbiote/silverstripe-sitemap)
[![License](https://poser.pugx.org/symbiote/silverstripe-sitemap/license)](https://packagist.org/packages/symbiote/silverstripe-sitemap)
[![Dependency Status](https://www.versioneye.com/php/symbiote:silverstripe-sitemap/badge.svg)](https://www.versioneye.com/php/symbiote:silverstripe-sitemap)
[![Reference Status](https://www.versioneye.com/php/symbiote:silverstripe-sitemap/reference_badge.svg?style=flat)](https://www.versioneye.com/php/symbiote:silverstripe-sitemap/references)
![helpfulrobot](https://helpfulrobot.io/symbiote/silverstripe-sitemap/badge)

## Overview

Provides a sitemap page type for the [SilverStripe CMS](http://silverstripe.org).
Allows authors to manage the pages included.

## Maintainer Contacts
* Marcus Nyeholt (<[email protected]>)

Requirements
------------
* SilverStripe 2.4+
## Requirements

* SilverStripe 4.0+

Documentation
-------------
[Documentation (GitHub Wiki)](http://wiki.github.com/ajshort/silverstripe-sitemap)
## Installation

Installation Instructions
-------------------------
1. Place the directory this file is in on the root of your SilverStripe installation. The folder should be named
"sitemap".
1. Install using composer: ```composer require symbiote/silverstripe-sitemap```
2. Visit "yoursite.com/dev/build" in your browser to rebuild the database. This should add a default sitemap page.
3. The CMS should now have a "Sitemap Page" page type, and there should be a default sitemap available.

Usage Overview
--------------
## Documentation

See docblocks & comments in code.

## Versioning

This library follows [Semver](http://semver.org).

## Reporting Issues

Known Issues
------------
If you come across any issues please report them at the [Issue Tracker](http://github.com/ajshort/silverstripe-sitemap/issues).
Please [create an issue](https://github.com/symbiote/silverstripe-sitemap/issues) for any bugs you've found, or features you're missing.
4 changes: 0 additions & 4 deletions _config.php

This file was deleted.

Empty file added _config/config.yml
Empty file.
2 changes: 2 additions & 0 deletions css/SitemapPage.css → client/css/sitemap_styling.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#Sitemap li {
margin: 5px 0;
list-style: none;
}

#Sitemap li a {
Expand All @@ -13,6 +14,7 @@
font-size: 1.2em;
font-weight: bold;
padding: 8px 5px;
border-bottom: none;
}

#Sitemap li ul {
Expand Down
File renamed without changes
35 changes: 35 additions & 0 deletions client/javascript/SitemapPageAdmin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
;(function($) {
$.entwine('ss', function($){

// Luckily entwine event binders still work with the new react stuff...

$('#Form_EditForm_PagesToDisplay_All').entwine({
onclick: function() {
$('#Form_EditForm_PagesToShow_Holder').hide();
$('#Form_EditForm_ParentPageID_Holder').hide();
}
});

$('#Form_EditForm_PagesToDisplay_ChildrenOf').entwine({
onclick: function() {
$('#Form_EditForm_PagesToShow_Holder').hide();
$('#Form_EditForm_ParentPageID_Holder').show();
}
});

$('#Form_EditForm_PagesToDisplay_Selected').entwine({
onclick: function() {
$('#Form_EditForm_PagesToShow_Holder').show();
$('#Form_EditForm_ParentPageID_Holder').hide();
}
});

// init
$('#Form_EditForm_PagesToDisplay').entwine({
onmatch: function() {
this.find('input:checked').trigger('click');
}
});

})
})(jQuery);
138 changes: 0 additions & 138 deletions code/SitemapPage.php

This file was deleted.

20 changes: 13 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
{
"name": "symbiote/silverstripe-sitemap",
"description": "Allows you to generate a sitemap page.",
"type": "silverstripe-module",
"description": "A sitemap-page module for SilverStripe CMS",
"type": "silverstripe-vendormodule",
"homepage": "https://github.com/symbiote/silverstripe-sitemap",
"license": "BSD-3-Clause",
"authors": [{
"name": "Marcus Nyeholt",
"email": "[email protected]"
}],
"require": {
"silverstripe/cms": "~3.1"
"silverstripe/vendor-plugin": "^1.0",
"silverstripe/cms": "^4.0"
},
"extra": {
"installer-name": "sitemap",
"branch-alias": {
"dev-master": "2.0.x-dev"
"autoload": {
"psr-4": {
"Symbiote\\SitemapPage\\": "src/",
"Symbiote\\SitemapPage\\Tests\\": "tests/"
}
},
"extra": {
"expose": [
"client"
]
},
"replace": {
"silverstripe-australia/sitemap": "self.version"
},
Expand Down
25 changes: 0 additions & 25 deletions javascript/SitemapPageAdmin.js

This file was deleted.

15 changes: 15 additions & 0 deletions lang/en.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
en:
SitemapPage:
ALLPAGES: 'Display all pages which are displayed in the menu.'
CHILDRENOF: 'Display the children of a specific page.'
DEFAULTCONTENT: 'Sitemap of the pages of this site.'
PAGESTOSHOW: 'Pages To Show In The Sitemap'
SELECTED: 'Display only the selected pages.'
SITEMAP: Sitemap
Symbiote\SitemapPage\SitemapPage:
DESCRIPTION: '(HTML) sitemap page generated from the site tree'
PLURALNAME: 'Sitemap Pages'
PLURALS:
one: 'A Sitemap Page'
other: '{count} Sitemap Pages'
SINGULARNAME: 'Sitemap Page'
22 changes: 0 additions & 22 deletions lang/en_US.php

This file was deleted.

Loading