Skip to content

Commit

Permalink
[6506] Wordify BP Freemarker template error when initializing site in…
Browse files Browse the repository at this point in the history
… Delivery (#116)

* Remove levelDescriptor retrieval/usage #6506

* Version update
  • Loading branch information
jvega190 authored Feb 29, 2024
1 parent 5b9aaaf commit e28d0d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion craftercms-plugin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ plugin:
version:
major: 2
minor: 0
patch: 41
patch: 42
description: |
A versatile blog blueprint.
website:
Expand Down
7 changes: 2 additions & 5 deletions templates/web/fragments/header.ftl
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<#import "/templates/system/common/crafter.ftl" as crafter/>

<#assign levelDescriptor = siteItemService.getSiteItem(contentModel['/*/siteTitle_s/@crafter-source']) />

<header role="banner">
<div class="top-bar">
<div class="container">
<div class="row">
<@crafter.renderRepeatGroup
$model=levelDescriptor
$field="socialLinks_o"
$containerTag="div"
$containerAttributes={'class': 'col-9 social'}
Expand All @@ -34,7 +31,7 @@
<a class="absolute-toggle d-block d-md-none" data-toggle="collapse" href="#navbarMenu" role="button" aria-expanded="false" aria-controls="navbarMenu"><span class="burger-lines"></span></a>
<h1 class="site-logo">
<a href="/">
<@crafter.span $model=levelDescriptor $field="siteTitle_s">${levelDescriptor.siteTitle_s!""}</@crafter.span>
<@crafter.span $field="siteTitle_s">${contentModel.siteTitle_s!""}</@crafter.span>
</a>
</h1>
</div>
Expand All @@ -48,4 +45,4 @@
</div>
</div>
</nav>
</header>
</header>

0 comments on commit e28d0d5

Please sign in to comment.