# Varying the number of gallery images in cms portfolio

**URL:** <https://forums.realmacsoftware.com/t/varying-the-number-of-gallery-images-in-cms-portfolio/56899>\
**Category:** Elements\
**Tags:** blog\
**Created:** [July 3, 2026, 1:05pm UTC](https://forums.realmacsoftware.com/t/varying-the-number-of-gallery-images-in-cms-portfolio/56899 "2026-07-03T13:05:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikeB](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@MikeB](https://forums.realmacsoftware.com/u/MikeB)\
**Post date:** [July 3, 2026, 1:05pm UTC](https://forums.realmacsoftware.com/t/varying-the-number-of-gallery-images-in-cms-portfolio/56899/1 "2026-07-03T13:05:54Z")

</div>

Quick question for the CMS experts:

I’m now building the CMS Portfolio section of my new elements website. This will replace the TCMS v1. and Stacks website that has been running successfully for many years.

I’m developing the new site in a subdomain at the moment. I’m working within Elements, not the online CMS editor.

Here is the “portfolio” page with 1 project in place (many more to follow)

> **[Your Space Living | Home Renovation Portfolio for Cardiff and South Wales](https://webdev26.yourspaceliving.com/portfolio/)**
>
> Discover our portfolio of stunning home renovations, kitchens, bathrooms, bedrooms and more from Your Space Living. Explore inspiration and design expertise.

My question relates to the gallery at the bottom of the “portfolio/project” page:

> **[German kitchen in white](https://webdev26.yourspaceliving.com/portfolio/project/german-kitchen-in-white)**
>
> A clean white galley kitchen

There are currently 9 gallery images with a Lightbox at the bottom of the page.

**First question:** Is it possible to vary the number of pictures from one project to the next?

**Second question:** I notice this forum is pulling the OG image from my live website. How can I define a specific OG image using Remote Resources or Twig syntax?

Many thanks in advance.

 ![OG image question](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/a/c/acfb45c9875d208e38966b6c82813eb0c8aaf31e.jpeg)

---

<div class="post-metadata">

**Author:** ![Pegasus](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/pegasus/32/25035_2.png) [@Pegasus](https://forums.realmacsoftware.com/u/Pegasus)\
**Post date:** [July 3, 2026, 1:19pm UTC](https://forums.realmacsoftware.com/t/varying-the-number-of-gallery-images-in-cms-portfolio/56899/2 "2026-07-03T13:19:39Z")

</div>

For the social tags, only use the Open Graph data from your CMS item.

The Social Tags section in the Inspector should then not be used.

 ![Bildschirmfoto 2026-07-03 um 15.17.14](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/3/1/31b289d29bbab4f07f5098cb9505b7930d882722.png)

---

<div class="post-metadata">

**Author:** ![MikeB](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@MikeB](https://forums.realmacsoftware.com/u/MikeB)\
**Post date:** [July 3, 2026, 1:53pm UTC](https://forums.realmacsoftware.com/t/varying-the-number-of-gallery-images-in-cms-portfolio/56899/3 "2026-07-03T13:53:29Z")

</div>

Ahh! yes, sorry I’d forgotten about that bit. Many thanks for reminding me.
