Jump to content

Is is possible to create custom collections? Is is possible to add custom fields to a blog collection?

Recommended Posts

I'm a web developer, but am new to squarespace template development. I'm stuck on a couple of things, so I'm hoping someone can help me here.

Custom Collections:

I have read the Developer Platform Documentation, and I have done the Beginner Tutorial, but I can't seem to get collections to work correctly.

If I add the files blog.conf, blog.item, and blog.list to the collections directory, I am then able to add a 'Blog' collection, and pages in that collection. 

But if I name it anything other than blog, nothing happens. Is there some trick to making this work?

In this example, my collections directory has 6 files (blog.conf, blog.list, blog.item, custom.conf, custom.list, custom.item). why is only the 'Blog' collection available.

image.thumb.png.1ec399f70a556f292c031d918fc3fe43.png

 

I appreciate any help with this.

Thanks!

Tamara

 

Link to comment
  • Replies 2
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

9 hours ago, TamaraT said:

I'm a web developer, but am new to squarespace template development. I'm stuck on a couple of things, so I'm hoping someone can help me here.

Custom Collections:

I have read the Developer Platform Documentation, and I have done the Beginner Tutorial, but I can't seem to get collections to work correctly.

If I add the files blog.conf, blog.item, and blog.list to the collections directory, I am then able to add a 'Blog' collection, and pages in that collection. 

But if I name it anything other than blog, nothing happens. Is there some trick to making this work?

In this example, my collections directory has 6 files (blog.conf, blog.list, blog.item, custom.conf, custom.list, custom.item). why is only the 'Blog' collection available.

image.thumb.png.1ec399f70a556f292c031d918fc3fe43.png

 

I appreciate any help with this.

Thanks!

Tamara

 

Not sure what you intend to achieve? Can you send us the screenshot of the desired layout ?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace (+100 Spark plugin customisations)
🥳 Freemium Squarespace Widget Templates (+1000 Elfsight Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment
18 hours ago, Beyondspace said:

Not sure what you intend to achieve? Can you send us the screenshot of the desired layout ?

I want to create a custom collection called something new like 'CustomCollection'. If you see the screenshot above, it shows the available collections as 'Store' and 'Blog'. I want to add a new option there called 'CustomCollection'. When I add a new page to a 'CustomCollection', I want to have an additional tab at the end where I can enter values for custom fields that are defined for 'CustomCollection'.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.