问题标签 [storyblok]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
javascript - 如何在 Javascript/Typescript 中使用 Storyblok 电子邮件服务?
我已经包含了 storyblok 对象和 serializeArray 函数:
现在我想将表单数据传递给 sendEmail 函数。它是如何工作的?
redirect - 在 Storyblok 项目中重定向 Silex 样板
使用 Silex Boilerplate 时,如何将重定向添加到我的 Storyblok 项目?
json - 如何使用多个参数进行 Storyblok-API 调用,包括。“过滤”?
到目前为止,我已经看到,API 允许我在调用中添加某些参数,例如filter_by
和sort_by
。
这对我来说效果很好,但我想知道如何同时使用多个参数并使用filter_by
参数。
目前,我正在使用 Silex-Boilerplate,它为我提供了以下功能:
我试图将此 JSON 作为选项参数传递:
但这似乎不起作用。对 JSON 的外观有什么建议吗?
提前致谢!
php - 从 twig 中的 storyblok 加载故事时无法打开流 php 错误
目前我正在使用来自 storyblok github 存储库的 silex 样板,我通过getStories
函数加载故事。
我的代码如下所示:
此代码是从循环中的另一个树枝组件调用的。
对于一个“参考”,我确实收到此错误消息:
file_put_contents(../cache//c3RvcnlibG9rOnN0b3JpZXMvYTo0OntpOjA7czoxMDoiRXJkZ2FzIE/DliI7aToxO3M6MTE6ImRlL3Byb2pla3RlIjtpOjI7aToxO2k6MztzOjM6ImZzcCI7fQ==): failed to open stream: No such file or directory in /webapp/vendor/apix/cache/src/Files.php
似乎是缓存的问题。
提前致谢。
vue.js - 道具至少应该定义它们的类型
我在 Storyblok 做教程,我确实遇到了这样的错误。
https://www.storyblok.com/tp/nuxt-js-multilanguage-website-tutorial#creating-the-homepage-components
道具至少应该定义它们的类型 vue/require-prop-types
javascript - 带有故事块的 Nuxt 不渲染图像
嘿,我正在用 Nuxt 和 storyblock 作为 CMS 做一个博客。第一次使用两者。一切正常,但图像未呈现显示错误:
GET http://localhost:3000/undefined 500 (NuxtServerError) 2commons.app.js:11367 [Vue 警告]:无效的道具:道具“thumbnailImage”的类型检查失败。预期值为“未定义”的字符串,得到未定义
在发现
但是如果我去控制台查看每个帖子中的数据,缩略图就在那里并且链接有效。有人可以在这里指导我吗?谢谢
所以在我的 index.vue 中:
接着
vue.js - 特定条件下的类和样式绑定
我正在用 nuxt.js、vue 和 storyblok 制作一个导航组件。在这个导航中,我有一些项目。我正在从 storyblok API 中获取我的导航项目。当 API 中的“突出显示”属性等于 true 或 false时,我想以不同的方式设置某些导航项目的样式。
我的问题是我不完全知道该怎么做。这就是我目前所拥有的。
我的导航组件中的 div:
这就是我检索数据的方式:
每当我尝试 console.log item.hightlighted它都会返回一个未定义的错误。我将不胜感激。
javascript - 'Cannot read property 'color1' of undefined' error in vue.js
I am making a website with storyblok, vue and nuxt. In my component, I am trying to change the background color of the component by getting a value out of the storyblok API and getting the right HEX code in my object. However, I can't seem to find what is going wrong, I am getting this error.
I would really appreciate if someone could help me with this error. This is my code:
The div I am trying to change the background color of:
My object in the data() function:
My computed function:
vue.js - 如何在 Nuxt 中使用 Markdownit 模块
我正在使用 Nuxt、Vuetify 和 Storyblok。当我想显示来自 storyblok 的降价时,我遇到了问题。我尝试使用Markdownit模块。
首先我使用 npm 安装它,然后导入到模块并与 v-html 一起使用,但仍然没有得到预期的结果。我做错了什么?
结果
javascript - 编辑 iframe 内的内容
我很想知道您将如何通过 iframe 创建网站构建器。
我注意到一个可以让你做到这一点的软件是 Storyblok——通过 iframe 编辑页面并更新站点。
作为一个附带项目,我想构建一个网站编辑器,通过 iframe 编辑网站 - 但我有点迷失从哪里开始。
提前致谢!