Skip to content

Commit

Permalink
Show the route configuration in the news feed page (see #6960)
Browse files Browse the repository at this point in the history
Description
-----------

It sure makes sense to see that the RSS page has a .xml suffix, right? Not sure if the page can have parameters at all?

<img width="1664" alt="Bildschirmfoto 2024-03-04 um 15 31 33" src="https://github.com/contao/contao/assets/1073273/e83ec5d5-790c-4c4a-a4ec-d2c1a87d2d8e">

Commits
-------

e57d3ef Added route config to news feed page
c43019b Add the class "clr" to the route path widget

Co-authored-by: leofeyer <1192057+leofeyer@users.noreply.github.com>
  • Loading branch information
aschempp and leofeyer committed Mar 8, 2024
1 parent 8a6034e commit 6332f2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core-bundle/templates/Backend/be_route_path.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% trans_default_domain 'contao_tl_page' %}
<div class="w50 widget">
<div class="w50 widget clr">
<h3>{{ 'tl_page.routePath.0'|trans }}</h3>
<p class="info">{{ path|raw }}</p>
<p class="tl_help tl_tip" title="">{{ 'tl_page.routePath.1'|trans }}</p>
Expand Down
2 changes: 1 addition & 1 deletion news-bundle/contao/dca/tl_page.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @license LGPL-3.0-or-later
*/

$GLOBALS['TL_DCA']['tl_page']['palettes']['news_feed'] = '{title_legend},title,type;{routing_legend},alias;{archives_legend},newsArchives;{feed_legend},feedFormat,feedSource,maxFeedItems,feedFeatured,feedDescription;{image_legend},imgSize;{cache_legend:hide},includeCache;{expert_legend:hide},cssClass,sitemap,hide,noSearch;{publish_legend},published,start,stop';
$GLOBALS['TL_DCA']['tl_page']['palettes']['news_feed'] = '{title_legend},title,type;{routing_legend},alias,routePath,routePriority,routeConflicts;{archives_legend},newsArchives;{feed_legend},feedFormat,feedSource,maxFeedItems,feedFeatured,feedDescription;{image_legend},imgSize;{cache_legend:hide},includeCache;{expert_legend:hide},cssClass,sitemap,hide,noSearch;{publish_legend},published,start,stop';

$GLOBALS['TL_DCA']['tl_page']['fields']['newsArchives'] = array(
'exclude' => true,
Expand Down

0 comments on commit 6332f2d

Please sign in to comment.