Skip to content

Commit

Permalink
Merge branch 'feature/article-live-generation' into 'master'
Browse files Browse the repository at this point in the history
Add live generation of article urls

See merge request webapps/sulu-demo!146
  • Loading branch information
Prokyonn committed Jul 6, 2023
2 parents 4693037 + db7a8ba commit a1b2c18
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 1 addition & 6 deletions config/packages/sulu_article.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,4 @@ sulu_route:
Sulu\Bundle\ArticleBundle\Document\ArticleDocument:
generator: 'schema'
options:
route_schema: '/blog/{object.getTitle()}'
Sulu\Bundle\ArticleBundle\Document\ArticlePageDocument:
generator: 'article_page'
options:
route_schema: '/{translator.trans("page")}-{object.getPageNumber()}'
parent: '{object.getParent().getRoutePath()}'
route_schema: '/blog/{is_array(object) ? implode("-", object) : object.getTitle()}'
2 changes: 2 additions & 0 deletions config/templates/articles/blog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
<params>
<param name="headline" value="true"/>
</params>

<tag name="sulu.rlp.part"/>
</property>

<property name="routePath" type="route">
Expand Down

0 comments on commit a1b2c18

Please sign in to comment.