When editing you should turn off caching. Then empty the cache.Short question:
If I change a template, is it possible to have those changes automatically reflected on the page?
Currently, after every change, I have to manually edit the page and re-paste the code to apply the updated template. Is there a way to avoid that?


src/addons/EWR/Carta/Admin/Controller/Page.php
actionModify()
$input['page_options'] = ['sidebar'=>1,'sublist'=>1];
page_options[parent]
$input['page_options'] = ($input['page_options'] ?? []) + ['sidebar' => 1, 'sublist' => 1];
$input['page_options'] = ($input['page_options'] ?? []) + $wiki['page_options'];
page_depth to visually indicate nesting/src/addons/EWR/Carta/Repository/Page.phppublic function findPage()
{
return $this->finder('EWR\Carta:Page')
->order('page_family', 'ASC')
->order('page_left', 'ASC');
}
admin:EWRcarta_page_listxf:main block with a custom layout using page_depth:<xf:foreach loop="$wikis" value="$wiki">
<xf:datarow>
<xf:cell>
<a href="{{ link('ewr-carta/pages/edit', $wiki) }}" class="dataList-cellMain" dir="auto">
<div class="dataList-mainRow">
<span style="display: inline-flex; align-items: center; padding-left: {{ $wiki.page_depth * 24 }}px;">
<xf:if is="$wiki.page_depth > 0">
<span style="display:inline-block; width:16px; margin-right:6px; color:#b0b7c3;">↳</span>
</xf:if>
<span>{$wiki.page_name}</span>
</span>
</div>
<div class="dataList-subRow" style="padding-left: {{ $wiki.page_depth * 24 + ($wiki.page_depth ? 22 : 0) }}px; color:#8a94a6;">
{$wiki.page_slug}
</div>
</a>
</xf:cell>
<xf:action href="{{ link('ewr-carta/pages/modify', $wiki) }}" overlay="true">
{$wiki.page_type}
</xf:action>
<xf:action href="{{ link('ewr-carta/pages/edit', $wiki) }}">
<xf:date time="{$wiki.page_date}" />
</xf:action>
<xf:delete href="{{ link('ewr-carta/pages/delete', $wiki) }}"
tooltip="{{ phrase('delete') }}" />
</xf:datarow>
</xf:foreach>
We use essential cookies to make this site work, and optional cookies to enhance your experience.