Matt-Swarm Posted May 5, 2023 Posted May 5, 2023 Running Bedford 7.0. We created a custom glossary using blog post functionality. The posts under each letter are in post order; we're trying to switch it to alphabetical order. We created a configuration file in developer mode with the following. Does anyone have any suggestions on changing the sort order? { "title" : "Glossary", "ordering" : "chronological", "addText" : "Add Glossary", "acceptTypes": ["text"] } the .list file that controls the page is here: <div class="glossary-list"> {.repeated section items} <article class="entry h-entry {@|item-classes}" id="article-{id}" data-item-id="{id}"> <header class="entry-header"> <h1 data-content-field="title" class="entry-title p-name"> {.passthrough?} <a href="{sourceUrl}" class="entry-title-passthrough" target="_blank">{title}</a> {.or} <a href="{fullUrl}" class="u-url" rel="bookmark">{title}</a> {.end} </h1> </header> <div class="entry-content"> {.excerpt?} <div class="p-summary">{excerpt}</div> <p class="entry-more-link"><a data-read-more="{localizedStrings.readMore}" href="{fullUrl}"></a></p> {.end} </div> {.if postItemInjectCode}<div class="entry-injection">{postItemInjectCode}</div>{.end} </article> {.end} {.if pagination} <nav class="pagination clear" data-paginate="scroll"> <div class="newer">{.if pagination.prevPage}<a href="{pagination.prevPageUrl}" rel="prev"><span class="prev-label">{localizedStrings.newerPosts}</span></a>{.end}</div><!-- comment the linebreak between these two elements because science --><div class="older">{.if pagination.nextPage}<a href="{pagination.nextPageUrl}" rel="next"><span class="next-label">{localizedStrings.olderPosts}</span></a>{.end}</div> </nav> {.end} </div>
paul2009 Posted May 7, 2023 Posted May 7, 2023 On 5/5/2023 at 5:04 PM, Matt-Swarm said: we're trying to switch it to alphabetical order. We created a configuration file in developer mode with the following. Does anyone have any suggestions on changing the sort order? In the .conf file, the ordering key pair is used to set the collection order, but the available values are chronological, user-orderable and calendar. There isn't an alphabetical option. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
Beyondspace Posted May 8, 2023 Posted May 8, 2023 Looks like the option is to modify the blog published date manually... BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment