Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
Rado
Topic Author
Posts: 6
Joined: 15 Feb 2024, 07:50

2 Folders on the index page

23 Feb 2024, 03:00

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
 
metallissimus
Experienced
Posts: 331
Joined: 17 Oct 2019, 06:54

Re: 2 Folders on the index page

23 Feb 2024, 04:48

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.
www.danielbollinger.de – corporate photography
hochzeiten.danielbollinger.de – wedding photography
 
User avatar
Rado
Topic Author
Posts: 6
Joined: 15 Feb 2024, 07:50

Re: 2 Folders on the index page

23 Feb 2024, 06:39

Thank you  :clap: