Comments (2)
Hi @GerritPlehn,
thanks. Most of the pages are not located in a subdirectories. But ok, the problem is that I can not use filter queries on a single story object. I have to use it along with starts_with.
from storyblok-nuxt.
Hi @Schascha,
are you trying to get the contents of a certain subdirectory by any chance?
If so, make sure you use starts_with
instead of the path for that.
Instead of
$storyapi.get(`cdn/stories/blog`, {
version: 'draft',
filter_query: {
component: {
in: 'page'
}
}
})
Try
$storyapi.get(`cdn/stories`, {
version: 'draft',
filter_query: {
component: {
in: 'page'
}
},
starts_with: 'blog'
})
from storyblok-nuxt.
Related Issues (20)
- Refetch data after changing page parameter HOT 1
- Consider giving the option to use `~/components/storyblok` for Storyblok Components HOT 5
- Component could not be found for blok HOT 8
- What is the correct way to access a story content inside a Nuxt plugin? HOT 8
- `renderRichText()` not working HOT 2
- Does preventClicks in Storyblok bridge actually work? HOT 2
- Nuxt 3.4.0 - 3.8.2 + nitro 2.8.0 bug | [ERROR] No matching export in "node_modules/.pnpm/[email protected]/node_modules/unicorn-magic/default.js" for import "toPath" HOT 8
- Cannot read properties of null (reading 'parentNode') and Cannot read properties of null (reading 'subTree')
- cache not working anymore since v6.0.0 HOT 5
- Module breaks types for auto imported components HOT 16
- Enabling the @storyblok/nuxt module causes components to lose typings. HOT 7
- Internal link from rich text editor rendering wrong URL HOT 2
- Use nuxt preview composable to make sure that fetching is done properly
- Storyblok making requests clientside on full static site. HOT 16
- Cache version `cv=undefined` causes redirect HOT 1
- Add the option to set default API version (`draft` or `published`) from Nuxt Config and using an ENV variable HOT 4
- Add routes to " Hit rate limit..." messages. HOT 2
- ERROR Component could not be found for blok "ComponentName"! Is it defined in main.ts as "app.component("ComponentName", ComponentName); HOT 7
- Missing type for componetsDir HOT 2
- useAsyncStoryblok returns undefined when story is not found 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 storyblok-nuxt.