Browse documentation

Add CMS Loops in Sections

Notice: Manual CMS Loops and Section Blocks are Not Available in the New AI Editor

This guide applies specifically to the legacy drag-and-drop editor. If you are building your website using the new AI editor, manually adding Blog List blocks, configuring repeat loops, and setting up pagination controls in sections is not available or required. The AI automatically creates, organizes, and styles all dynamic blog loops and paginated layouts for you based on your prompts.

CMS loops repeat a layout for each content item. This guide shows how to add a CMS loop to a section, configure its layout, and display post details on each card.

Adding Blog List Block

Blog List element being added to a section in the site editor.

Open the Grigora site editor and click on "Elements". Search for "Blog List" and drag and drop it into the editor where you want your dynamic content to appear.

Configuring Blog List Settings

Blog List settings panel beside the selected CMS loop.

Once the Blog list is added, open its settings to customize how your content displays. Set the number of posts according to your requirement. 

 

Blog List filtering and ordering controls in the settings panel.

You can also adjust offset, order, order by, and apply filters as needed to control which posts appear and in what sequence.

Configuring Pagination

Once you have configured the Blog List settings, you can enable pagination to allow visitors to navigate through multiple pages of blog posts.

Blog card grid with Blog List pagination settings highlighted.

Under the Blog List settings, enable the Enable Pagination toggle. Once enabled, pagination controls will automatically appear below the blog list based on the configured limit and offset values.

Enable Pagination toggle and page navigation below the blog cards.

The pagination numbers are generated automatically according to the number of available blog posts and the configured post limit. You do not need to manually add or configure individual pagination buttons.

Styling and Aligning Pagination

You can customize the appearance and positioning of the pagination controls from the available styling settings.

Pagination alignment and background controls in the site editor.

Under the Size & Space settings, you can control the pagination gap and alignment. The Pagination Gap option lets you adjust the vertical space between the Directory listings and the pagination controls, while the Alignment options allow you to position the pagination controls to the left, center, or right. The Style settings also let you customize the appearance of the pagination by changing the pagination background and pagination text colors, allowing you to match the pagination controls with your website’s overall design.

Creating Column Layout

Columns setting indicated for arranging the Blog List as a grid.

Scroll down and select "Columns" under Size & Space section to create a column layout for your CMS list. This organizes your content in a grid format that's visually appealing and responsive across devices.

Adding and Linking Inner Section

Inner Section element being added inside a Blog List.

Inner Section selected within the CMS loop grid.

Add an Inner Section by dragging it from "Elements" and placing it inside the Blog list. 

Dynamic Source link setting pointed to Current CMS Post.

Link this container dynamically to the CMS post by going to its settings, opening the link section, and toggling on "Dynamic Source". Then select "Current CMS Post". This makes your container clickable and linked to CMS posts dynamically.

Designing the Content Layout

Typically inside a CMS loop, you add elements like the post's featured image, title, date, and excerpt:

Image element being added inside a CMS loop card.

Dynamic image controls with Post Featured Image selected as the source.

Add an image block inside the Inner Section. In its settings under Advanced Image Options, toggle on "Is Image Dynamic" and select "Post Featured Image" as the source to display each post's featured image automatically.

Dynamic text controls for displaying the post title in a CMS loop.

Add a Text block for the post title, turn on the Dynamic toggle next to the structure tag selector, and select Post Title as the source.

Post Date element being added to a CMS loop card.

Add the post date by dragging it from "Elements" to show when each post was published.

 

Dynamic text source menu expanded for a CMS loop text block.

Post Summary dynamic text with the word limit control indicated.

For the post excerpt, add another text block. Toggle on Dynamic next to the structure tag selector, select "Post Summary", and limit the number of words as per your requirement. You can also add a suffix like three dots for a clean, professional look.

Styling and Customization

Remove Link Decoration setting indicated for a CMS loop card.

To remove unwanted link decoration, select the Inner Section and in its settings under "Links," enable "Remove Link Decoration". 

Border styling controls beside the selected CMS loop card.

To differentiate each card, add a border to the Inner Section (for example, one pixel solid black) to create clear visual separation between posts.

Using Pre-Built CMS Sections

Add Section controls above and below a CMS loop.

Click the Add Section button on the existing section to add a new prebuilt CMS section above or below it, depending on where you want to place the section.

Prebuilt section library displaying blog and CMS layouts.

Now, a modal will appear. Select Sections from the top menu, then choose Blogs from the available categories to view the pre-built blog section templates. Choose a template you like and click on it to add it to your editor..

Publishing Your CMS Loop

Publish panel open beside the completed CMS blog card grid.

After configuring all elements, save and publish your website. Your CMS loop is now ready and when a user clicks on any card, it will dynamically open that post.


Help guide image