Jump to content

.repeated section items does not exist?

Recommended Posts

Hey,

I'm trying to make a custom collection for displaying customTypes as a way to make it easier for us to update and maintain our portfolio.

I'm having issues displaying the collection of items from portfolio.list. When visiting the collection (not the individual posts) it just returns 'No project in portfolio', indicating that items arenot found in {.repeated section items}.

Very thankful for any insight into what i'm missing here... The items/posts works as expected.

here's a simplified code example of what I have:

collections/portfolio.list

{.repeated section items}
<h1>{title}</h1>
{.or}
No projekt in portfolio
{.end}

collections/portfolio.item

{.section item}
<h1>{title}</h1>
{body}
{.end}

collections/portfolio.conf

{
  "title" : "Portfolio",
  "ordering" : "chronological",
  "addText" : "Add project",
  "acceptTypes" : [ "text" ]
}

 

Link to comment
  • Replies 1
  • Views 500
  • Created
  • Last Reply

Alright, apparently you need to Save and publish for .list to show properly, just doing Save is insufficient. Don't worry, this won't publish the whole site. Also this is fairly obscure in the documentation, and unclear why multiple save options are needed.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.