Comments (3)
Hey there,
Lots of ways to do this, but one that comes to mind:
You could add a menu
reference to your collection
page content array modules.
That way you could create a menu of links to each collection, and simply reference it in your collection page content modules.
You'd obviously have to build out this new module based on that menu data, but should be pretty straight forward!
from hull.
Thank for your reply, I was thinking bit the same way.
I thought its possible to use existing menu
document and add this to shop all
page content.
then reference each link to menu. I've done this but can't see it on the frontend am I forgetting to create component?
So, originally you've made the navigation in a dropdown I want to use that menu in de collection page.
I could also change the header, that way the menu stays in de header instead of page itself. Think this will only be a css thing?
And I was wondering, if you could guide me trough the logic etc in a call? I would pay your time ofcourse. I would like to hear from you
from hull.
No problem,
You'll need to create a new "module" and make sure you're including the data for it in the GROQ for your page modules.
- You'd add this new module in Sanity here: https://github.com/ndimatteo/HULL/blob/main/studio/schemas/documents/shopify-collection.js#L34-L43
- You'd include the new module in your GROQ here: https://github.com/ndimatteo/HULL/blob/main/data/queries.js#L156
(likely something like_type == 'inlineMenu'
or something) - You'd create a new component and add it to the
switch
on the front-end here: https://github.com/ndimatteo/HULL/blob/main/components/modules/index.js#L21-L48
I'm not sure about your other question regarding the header. Appreciate the offer to pay for my guidance, but this is the most I can provide at this time due to my current bandwidth.
I'd suggest joining the Sanity Community slack and see if others can help you with building out custom modules like this if you're still having trouble! Best of luck 🤘
from hull.
Related Issues (20)
- Is it true that you have to redeploy every time a product is added? HOT 4
- Sanity CLI v3 causes project to not work correctly HOT 1
- GBP Cart Subtotals
- Sanity not connecting to Storefront HOT 2
- Products not appearing in Sanity—how to bring them over? HOT 1
- Bundles created with the Shopify App (Summer 2023) can't be added to cart HOT 11
- Mobile Crashes When Interacting On Page HOT 6
- marketing starter upgrade packages HOT 1
- Client-side exception HOT 7
- unknown field found
- Sync seems inconsistent HOT 1
- Can't locate Sanity Starter HOT 1
- Not able to Import Shopify Products into sanity Studio
- Application error: a client-side exception has occurred (see the browser console for more information). HOT 2
- Issue cloning project from Vercel HOT 1
- TypeError: Cannot read properties of undefined (reading 'replace') HOT 2
- I got the same error after following the directions. I cloned the repository with git clonee and followed the instructions in the ReadMe.md file in the root. Localhost:3333 and localhost:3000 are running, I don't see any errors. HOT 2
- Tried deploying Hull from Vercel Interface. HOT 1
- Sanity Create Project is not working HOT 1
- @reach/rect error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hull.