Would it be possible to add a custom page?

Martijn097Martijn097 Member Posts: 1

Hi,

Is there any way to add a custom page to lightspeed?

For dartshopper.nl, we would like to add a custom page, for example dartshopper.nl/top-10-darts.


We don't want to use the standard product/category/text page.


I was thinking of doing something like this to the fixed.rain layout:


{% set templatePages = ['pages/test.rain', 'pages/test2.rain'] %}


<div id="{{ template | replace('pages/', '') | replace('.rain', '') }}">

<div class="container">

{% if template not in templatePages %}

{% include template %}

{% else %}

{% set newTemplate = template | split('/') %}

{% include ('snippets/' ~ newTemplate.1) %}

{% endif %}

</div>

</div>


Thanks

Sign In or Register to comment.