Skip to content

Commit

Permalink
[BUGFIX] Remove outdated realurl information and use route enhancer (#30
Browse files Browse the repository at this point in the history
)

Fixes: #15
  • Loading branch information
benjaminkott committed Feb 12, 2019
1 parent 287aeb4 commit 08d7b82
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 31 deletions.
21 changes: 1 addition & 20 deletions Documentation/Administrators/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -109,29 +109,10 @@ To create a new blog setup, follow these steps:
as a comma separated list. The first value must be the value of NEW_blogFolder


RealURL Setup
^^^^^^^^^^^^^

RealURL Setup
The blog extension provides a configuration for EXT:realurl.

To get nice looking URLs add the following realurl configuration to your project setup:

.. code-block:: php
'fixedPostVars' => [
'<UID_CATEGORY_PAGE>' => 'tx_blog_category',
'<UID_TAG_PAGE>' => 'tx_blog_tag',
'<UID_AUTHOR_PAGE>' => 'tx_blog_author',
'<UID_ARCHIVE_PAGE>' => 'tx_blog_archive'
]
Frontend Routing Setup
^^^^^^^^^^^^^^^^^^^^^^

The extension provides a frontend route enhancer config.
This route enhancer config is not final yet, but you can simply include it in your site configuration:
The extension provides a frontend route enhancer configuration that you can include it in your site configuration.

.. code-block:: yaml
Expand Down
10 changes: 0 additions & 10 deletions Resources/Private/Partials/Backend/RealUrlSetup.html

This file was deleted.

5 changes: 5 additions & 0 deletions Resources/Private/Partials/Backend/UrlSetup.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<f:be.infobox title="URL Setup">
<p>The extension provides a frontend route enhancer configuration that you can include it in your site configuration.</p>
<pre><code>imports:
- { resource: "EXT:blog/Configuration/Routes/Default.yaml" }</code></pre>
</f:be.infobox>
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Backend/SetupWizard.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1><f:translate key="backend.headline.setup_wizard" /></h1>
</table>
</div>
<f:render partial="Backend/CreateWizard" arguments="{_all}" />
<f:render partial="Backend/RealUrlSetup" arguments="{_all}" />
<f:render partial="Backend/UrlSetup" arguments="{_all}" />
</f:then>
<f:else>
<f:be.infobox state="-1" title="{f:translate(key: 'backend.warning')}">
Expand Down

0 comments on commit 08d7b82

Please sign in to comment.