Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Ttree.Neos.Sitemap
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ttree
Ttree.Neos.Sitemap
Commits
a7fec499
Commit
a7fec499
authored
Sep 17, 2015
by
Dominique Feyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TASK] Add save path configuration in presets
parent
a185471d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
+10
-3
Classes/Command/SitemapCommandController.php
Classes/Command/SitemapCommandController.php
+1
-1
Classes/Domain/Model/SitemapDefinition.php
Classes/Domain/Model/SitemapDefinition.php
+4
-0
Configuration/Settings.yaml
Configuration/Settings.yaml
+2
-1
README.md
README.md
+3
-1
No files found.
Classes/Command/SitemapCommandController.php
View file @
a7fec499
...
...
@@ -24,7 +24,7 @@ class SitemapCommandController extends CommandController {
$definition
=
new
SitemapDefinition
(
$siteNodeName
,
$baseUrl
,
$preset
);
$sitemap
=
$this
->
sitemapBuilder
->
build
(
$definition
);
$pathAndFilename
=
FLOW_PATH_DATA
.
'/Persistent/Sitemaps/Sitemap.xml'
;
$pathAndFilename
=
$definition
->
getPath
()
;
Files
::
createDirectoryRecursively
(
dirname
(
$pathAndFilename
));
file_put_contents
(
$pathAndFilename
,
(
string
)
$sitemap
);
}
...
...
Classes/Domain/Model/SitemapDefinition.php
View file @
a7fec499
...
...
@@ -75,4 +75,8 @@ class SitemapDefinition {
return
$this
->
presets
[
$this
->
presetName
];
}
public
function
getPath
()
{
return
$this
->
getPreset
()[
'path'
];
}
}
\ No newline at end of file
Configuration/Settings.yaml
View file @
a7fec499
...
...
@@ -7,4 +7,5 @@ Ttree:
'
TYPO3.Neos.NodeTypes:Page'
:
TRUE
skip
:
'
TYPO3.Neos:Shortcut'
:
TRUE
type
:
'
single'
\ No newline at end of file
type
:
'
single'
path
:
'
%FLOW_PATH_DATA%/Persistent/Sitemaps/Sitemap.xml'
README.md
View file @
a7fec499
...
...
@@ -22,9 +22,11 @@ Edit your distribution [Settings.yaml](Configuration/Settings.yaml) for configur
skip:
'TYPO3.Neos:Shortcut': TRUE
type: 'single'
path: '%FLOW_PATH_DATA%/Persistent/Sitemaps/Sitemap.xml'
Basically you can configure the NodeType who need to be in the sitemap, and an optional list of NodeType that need to
be skipped.
be skipped. Currently the package support only "single" type. In the future "multiple" will be support to generate multiple
sitemap with a single index.
Currently to Job Queue is not supported but you can use the CLI command::
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment