Page 1 of 1

2 Folders on the index page

Posted: 23 Feb 2024, 03:00
by Rado
Hi,

 it is possible to display 2 folders on the home index page? 
 I need display only the latest gallery from the directory: 2024/ and the latest posts from the directory: blog/

Thank you

Re: 2 Folders on the index page

Posted: 23 Feb 2024, 04:48
by metallissimus
You cannot show items (folders/images) from different pages with built-in functionality in X3.

But for only two items you can easily set it up manually. Here's a shortened version of the code that I use on my home page on www.danielbollinger.de
Code
<div class="row">
<div class="medium-6  columns" >
<div>
<a href="/angebot/unternehmensfotografie-baden-baden-karlsruhe-offenburg/"><img src="{{path}}Businessfotografie-Baden-Baden-Karlsruhe-Offenburg-1.webp"/></a>  
</div>
</div>
<div class="medium-6  columns" >
<div>
<a href="/angebot/businessporträts-baden-baden-karlsruhe-offenburg/"><img src="{{path}}Businessfotografie-Baden-Baden-Karlsruhe-Offenburg-2.webp""/></a> 
</div>
</div>
</div>
You only need to replace the links with your target links and the images with your images and maybe do a little bit of styling with custom CSS afterwards.

Re: 2 Folders on the index page

Posted: 23 Feb 2024, 06:39
by Rado
Thank you  :clap: