问题标签 [kirby]

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.

0 投票
2 回答
216 浏览

php - 复选框表单提交

我正在努力通过表单发送多个复选框条目。

我正在使用 kirby CMS 和联系表格插件。

如果有人能对此有所了解,这就是我的代码。

我相信上面的代码是正确的,可能与提交文件有关。

0 投票
1 回答
579 浏览

php - 具有站点范围的php变量

我正在使用Kirby CMS并创建一个小片段,通过帖子的数量和日期来限制帖子。基本上是一种创建“自动发布”系统的方法。

所以我有一点点可以创建我的$latest变量,然后我可以用它来控制显示的帖子。

我的问题是,我不想更改我拥有$startdate的每种不同类型的页面模板,所以我想以某种方式使其在站点范围内。

我尝试将其作为 Kirbysnippet()函数的片段,但这不起作用。我猜在片段已经运行之后,片段必须被带入页面。

如何使我的代码段适用于我的整个网站?

0 投票
1 回答
519 浏览

php - Kirby CMS - 帮助理解链接和对象

我们正在使用基于 php 的 CMS Kirby,但无法理解我们可以(和不能)使用链接的地方(在 php 方面我们非常环保)。

我们有一个这样的产品部分:

并试图提供每个类别下所有产品子页面的列表。

我们如何做到这一点?

我们不断看到很多“在非对象上调用成员函数”错误,我们假设这些错误与我们链接事物的方式有关——例如,我们已经尝试了很多方法,但目前正在尝试:

但是不确定如何找到这些页面的子页面,因为添加->visible()->children()到上面的末尾$pages或添加到 foreach 循环中,这样会导致错误:

此外,我们可以看到 $page 变量具有->visible()->children()变量,因此假设我们需要将$productPages变量交给$page变量,以便我们可以使用visible()->children()但不确定如何构造东西抱歉。

任何指向正确方向的指针都将不胜感激。

干杯

0 投票
2 回答
979 浏览

installation - 在 openshift 上安装 Dropbox(并使用 Kirby CMS)

我正在尝试使用以下教程将 Kirby CMS 与在 Openshift 上运行的 Dropbox 集成:http: //getkirby.com/blog/kirby-meets-dropbox http://getkirby.com/forum/how-to/ 话题:561

我已经安装 Dropbox 卡住了,因为我假设我在 SSH 时没有真正的权限: http ://www.dropbox.com/install?os=lnx

所以我的问题是:有没有办法实现所有这些伟大?如果没有,即使我们有真正的创造力也不行?如果否,为什么不呢?如果是,如何?

非常感谢!

0 投票
2 回答
492 浏览

php - 使用 Kirby 的 htaccess 斜杠重定向

是否可以将不带斜杠的 url 重定向到Kirby CMS中带有斜杠的 URL ?如何?

http://www.test.com/page

http://www.test.com/page/

.htaccess 文件

0 投票
2 回答
258 浏览

php - Kirby CMS - 添加图像修改时间戳

我在学习Kirby CMS

我有一个显示一系列图像的页面,我不确定如何获取图像的上传日期。

我认为这与$file变量有关?:

这是我的 php 循环:

0 投票
1 回答
561 浏览

php - Sessions in PHP 5.3.3 and kirby

Situation

I have implemented a modified version of the kirby Auth plugin on a client website, it basically works this way

  • User accounts are simple kirby content files with the title serving as the login and a password field containing a bcrypt encrypted version of the users password
  • On the website, visitors can click on "Customer Area", which goes to a template managed by the modified auth plugin (which redirects to the "login" form).
  • The website is multilingual. So the accounts file will look like content/extranet/login/login.fr.txt or as an example content/extranet/bastian/bastian.fr.txt, this is what the modified Auth plugin is looking for, it finds the file and reads it, checks the password, and the logins the users.
  • This system requires account pages title to be the same as their URL, and to always be invisible pages
  • User is logged in and can only see in the « secure » template the files present in his folder

This all works good here on my local MAMP server as you can see in the screenshots, but on the production server http://www.driving-evolution.com, this doesn’t work, and i don’t know why, i have looked in a lot of places and i don’t understand what is going on. (it doesn’t work on the staging server either)

On the production server, wether you enter a good or a bad login, the form doesn’t show any error message, and doesn’t log the user in either. At first i thought this is maybe because of my bcrypt install, but it is not, as i disabled it (and used plain passwords instead) and it still didn’t work.

The issue seems NOT to be from the plugin here but from a difference between my live PHP stack and local php stack (my guess is on the php session handling).

Remote PHP is 5.3.3

Here is a sample output of CURL on both installations :

WORKING (Local)

FAILING (Remote)

USEFUL LINKS

REMOTE PHPVER : http://www.driving-evolution.com/phpver.php

SCREENSHOTS when it works on local

login-good login-done

Hope someone will be able to help me on this ! Ask for any further info and i will give it.

0 投票
1 回答
1606 浏览

apache - Apache 重写规则适用于主页但不适用于链接

/www/我在文件夹中有一个站点。在父目录中,我有一个 .htaccess 文件,该文件通过该/www/目录,就好像它不存在一样。

在该文件夹中,我将 Kirby CMS 作为子模块,它使用自己的 url 重写规则。主页显示为,http://mywebsite.local但链接显示为http://mywebsite.local/www/page-name。它们是在 PHP 中动态生成的,而不是硬编码的。

从 url 中手动删除/www/表明重定向工作正常。所以这一定是一个柯比问题。

kirbycms是一个 git 子模块,我遵循了本教程http://rimann.org/blog/kirby-git-setup

结构:

根.htaccess:

柯比.htaccess:

索引.php:

有谁知道我可以如何设置链接,所以他们没有/www/

0 投票
1 回答
277 浏览

content-management-system - 将 Yeoman/Grunt.js 与 FlatFile CMS 一起使用

我即将开始开发一个新网站,并希望使用 yeoman/grunt 来加速开发/测试。但是,该站点需要使用有限的 CMS 功能和平面文件 cms 构建,例如http://getkirby.com/。现在我对如何一起使用这些工具有点困惑?

有人有这方面的经验或有任何提示吗?

谢谢

0 投票
2 回答
553 浏览

php - Kirby 片段仅显示 10 个子页面

我正在处理这个NSFW),我创建了 12 个子页面,但列表中只显示了 10 个。我没有在片段或面板配置中使用任何 limit() 或 pagination(),我找不到这个限制在哪里受到监管。我的猜测是编号问题,因为如果在面板中我向上拖动第 11 个子页面,下面的任何内容都不会显示。有什么线索吗?

php:

文件夹结构:https ://www.dropbox.com/s/8gigspwup0kwqei/Screenshot%202014-09-03%2015.39.51.png?dl=0