Skip to content

Commit

Permalink
Merge pull request #34 from oveleon/develop
Browse files Browse the repository at this point in the history
Fix sitemap listener and make jumpTo non-mandatory (#33)
  • Loading branch information
zoglo authored Dec 13, 2023
2 parents 78d58d6 + 3dc41c3 commit d377674
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
7 changes: 0 additions & 7 deletions config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,3 @@ services:
- '@security.helper'
tags:
- { name: contao.picker_provider, priority: 0 }

contao_glossary.listener.sitemap:
class: Oveleon\ContaoGlossaryBundle\EventListener\SitemapListener
arguments:
- '@contao.framework'
tags:
- kernel.event_listener
2 changes: 1 addition & 1 deletion contao/dca/tl_glossary.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
'exclude' => true,
'inputType' => 'pageTree',
'foreignKey' => 'tl_page.title',
'eval' => ['mandatory' => true, 'fieldType' => 'radio', 'tl_class' => 'clr'],
'eval' => ['fieldType' => 'radio', 'tl_class' => 'clr'],
'sql' => "int(10) unsigned NOT NULL default '0'",
'relation' => ['type' => 'hasOne', 'load' => 'lazy'],
],
Expand Down
10 changes: 10 additions & 0 deletions contao/templates/glossary/glossary_teaser.html5
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

<div id="g_entry_<?= $this->id ?>" class="layout_teaser item glossary_<?= $this->glossary->id ?> block<?= $this->class ?>">

<h4><?= $this->headline ?></h4>

<div class="ce_text block">
<?= $this->teaser ?>
</div>

</div>

0 comments on commit d377674

Please sign in to comment.