SMOLNET PORTAL home about changes
getkirby.com_discourse_forum.rss.xml - sfeed_tests - sfeed tests and RSS and Atom files
(URL) git clone git://git.codemadness.org/sfeed_tests (git://git.codemadness.org)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
getkirby.com_discourse_forum.rss.xml (56077B)
---
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <rss version="2.0" xmlns:discourse="http://www.discourse.org/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
3 <channel>
4 <title>Kirby - Latest topics</title>
5 <link>https://forum.getkirby.com/latest</link>
6 <description>Latest topics</description>
7
8 <lastBuildDate>Thu, 27 May 2021 11:47:23 +0000</lastBuildDate>
9 <atom:link href="https://forum.getkirby.com/latest.rss" rel="self" type="application/rss+xml" />
10 <item>
11 <title>Using a custom field inside another custom plugin</title>
12 <dc:creator><![CDATA[MinmlCo]]></dc:creator>
13 <category>Kirby 3</category>
14 <description><![CDATA[
15 <p>Hi all,</p>
16 <p>I have a custom plugin which uses blueprints to define fields, however a field I want to include is also a custom field, is there a way I can use this field in my blueprints for the plugin?</p>
17 <p>Both fields work perfectly fine independently of each other but when I include the custom field into the custom plugin blueprint it doesn’t work, i receive the error <strong>"Cannot read property ‘field’ of undefined"</strong></p>
18 <p>I assumed if this field was registered and working as a field it would magically be available to use within another plugin, I tried to register it as a component thinking this would work but it doesn’t seem so?</p>
19 <p><small>1 post - 1 participant</small></p>
20 <p><a href="https://forum.getkirby.com/t/using-a-custom-field-inside-another-custom-plugin/22436">Read full topic</a></p>
21 ]]></description>
22 <link>https://forum.getkirby.com/t/using-a-custom-field-inside-another-custom-plugin/22436</link>
23 <pubDate>Thu, 27 May 2021 11:47:23 +0000</pubDate>
24 <discourse:topicPinned>No</discourse:topicPinned>
25 <discourse:topicClosed>No</discourse:topicClosed>
26 <discourse:topicArchived>No</discourse:topicArchived>
27 <guid isPermaLink="false">forum.getkirby.com-topic-22436</guid>
28 <source url="https://forum.getkirby.com/t/using-a-custom-field-inside-another-custom-plugin/22436.rss">Using a custom field inside another custom plugin</source>
29 </item>
30 <item>
31 <title>Help us test 3.5.6-rc.1</title>
32 <dc:creator><![CDATA[bastianallgeier]]></dc:creator>
33 <category>Releases 🚀</category>
34 <description><![CDATA[
35 <p>While we are busy working on 3.6, we decided to release another patch release in the meantime. There are some annoying things like the broken back button in the Panel that we wanted to fix as soon as possible.</p>
36 <p>Today we are releasing the RC for 3.5.6: <a href="https://github.com/getkirby/kirby/releases/tag/3.5.6-rc.1" class="inline-onebox">Release 3.5.6-rc.1 · getkirby/kirby · GitHub</a></p>
37 <p>Testers are always welcome!</p>
38 <p><small>1 post - 1 participant</small></p>
39 <p><a href="https://forum.getkirby.com/t/help-us-test-3-5-6-rc-1/22434">Read full topic</a></p>
40 ]]></description>
41 <link>https://forum.getkirby.com/t/help-us-test-3-5-6-rc-1/22434</link>
42 <pubDate>Thu, 27 May 2021 09:40:54 +0000</pubDate>
43 <discourse:topicPinned>No</discourse:topicPinned>
44 <discourse:topicClosed>No</discourse:topicClosed>
45 <discourse:topicArchived>No</discourse:topicArchived>
46 <guid isPermaLink="false">forum.getkirby.com-topic-22434</guid>
47 <source url="https://forum.getkirby.com/t/help-us-test-3-5-6-rc-1/22434.rss">Help us test 3.5.6-rc.1</source>
48 </item>
49 <item>
50 <title>Pluck fields, get plain values</title>
51 <dc:creator><![CDATA[nilshoerrmann]]></dc:creator>
52 <category>Questions 🤔</category>
53 <description><![CDATA[
54 <p>On a pages collection, I’d like to pluck all “place” field values. Using <code>$pages-&gt;pluck('place')</code> I get an array with field instances:</p>
55 <pre><code class="lang-php">Array
56 (
57 [0] =&gt; Kirby\Cms\Field Object
58 (
59 [place] =&gt; - orte/n/neue-strasse/3792107948
60 )
61
62 [1] =&gt; Kirby\Cms\Field Object
63 (
64 [place] =&gt; - orte/s/schlossplatz/23802102
65 )
66
67 [2] =&gt; Kirby\Cms\Field Object
68 (
69 [place] =&gt; - orte/k/katharinenstrasse/39144502
70 )
71
72 [3] =&gt; Kirby\Cms\Field Object
73 (
74 [place] =&gt; - orte/p/pockelsstrasse/24676957
75 )
76
77 )
78 </code></pre>
79 <p>Is there a way to get an array with the plain values instead, e. g.:</p>
80 <pre><code class="lang-php">Array
81 (
82 [0] =&gt; - orte/n/neue-strasse/3792107948
83
84 [1] =&gt; - orte/s/schlossplatz/23802102
85
86 [2] =&gt; - orte/k/katharinenstrasse/39144502
87
88 [3] =&gt; - orte/p/pockelsstrasse/24676957
89
90 )
91 </code></pre>
92 <p><small>2 posts - 2 participants</small></p>
93 <p><a href="https://forum.getkirby.com/t/pluck-fields-get-plain-values/22431">Read full topic</a></p>
94 ]]></description>
95 <link>https://forum.getkirby.com/t/pluck-fields-get-plain-values/22431</link>
96 <pubDate>Thu, 27 May 2021 08:17:26 +0000</pubDate>
97 <discourse:topicPinned>No</discourse:topicPinned>
98 <discourse:topicClosed>No</discourse:topicClosed>
99 <discourse:topicArchived>No</discourse:topicArchived>
100 <guid isPermaLink="false">forum.getkirby.com-topic-22431</guid>
101 <source url="https://forum.getkirby.com/t/pluck-fields-get-plain-values/22431.rss">Pluck fields, get plain values</source>
102 </item>
103 <item>
104 <title>Issue with default template after adding languages</title>
105 <dc:creator><![CDATA[sashagirl]]></dc:creator>
106 <category>General</category>
107 <description><![CDATA[
108 <p>I am trying to add multiple languages to my site - I have followed these guides <a href="https://getkirby.com/docs/guide/languages/introduction" class="inline-onebox" rel="noopener nofollow ugc">Introduction | Kirby CMS</a> but am currently getting this error</p>
109 <p>“The default template does not exist”</p>
110 <p>/en has been appended to the url</p>
111 <p>site/languages/en.php</p>
112 <pre><code>&lt;?php
113
114 return [
115 'code' =&gt; 'en',
116 'default' =&gt; true,
117 'direction' =&gt; 'ltr',
118 'locale' =&gt; 'en_US',
119 'name' =&gt; 'English',
120 'url' =&gt; '/'
121 ];
122 </code></pre>
123 <p>Hoping for any kind of direction on how to resolve this <img src="https://emoji.discourse-cdn.com/apple/pleading_face.png?v=9" title=":pleading_face:" class="emoji" alt=":pleading_face:"></p>
124 <p><small>2 posts - 2 participants</small></p>
125 <p><a href="https://forum.getkirby.com/t/issue-with-default-template-after-adding-languages/22429">Read full topic</a></p>
126 ]]></description>
127 <link>https://forum.getkirby.com/t/issue-with-default-template-after-adding-languages/22429</link>
128 <pubDate>Thu, 27 May 2021 01:35:20 +0000</pubDate>
129 <discourse:topicPinned>No</discourse:topicPinned>
130 <discourse:topicClosed>No</discourse:topicClosed>
131 <discourse:topicArchived>No</discourse:topicArchived>
132 <guid isPermaLink="false">forum.getkirby.com-topic-22429</guid>
133 <source url="https://forum.getkirby.com/t/issue-with-default-template-after-adding-languages/22429.rss">Issue with default template after adding languages</source>
134 </item>
135 <item>
136 <title>CSS and JS not found when moving Kirby from local to remote server</title>
137 <dc:creator><![CDATA[davidegiorgetta]]></dc:creator>
138 <category>Kirby 3</category>
139 <description><![CDATA[
140 <p>Hi there,<br>
141 I developed a Kirby website in a local folder (with the Kirby PHP built-in server) and then linked a CSS file in a header.php snippet and a JS file in a footer.php snippet. For this I used the css() and js() functions with relative paths.</p>
142 <p>Everything was working fine on the local environment but when I moved the files on a remote server through FTP the CSS and JS files I added in the header.php and footer.php snippets were not loaded anymore. When I access them through an absolute path they display a 404 page but actually the path is correct. I tried different ways to link the CSS and JS files to the website (also by hard coding an absolute path) and tested the Kirby website on different remote servers (and domains) too but without luck.</p>
143 <p>I still have to buy the Kirby license. I don’t know is that is the problem but in case it would have been better to communicate this and not just making this not working. I hope that’s not the case.</p>
144 <p>Do you have any suggestions?</p>
145 <p>EDIT: I figured out that there must be a problem with the assets folder. The CSS file (e.g.) is stored like this “kirby/assets/css/style.css” and it is not working. If I move the file in the website root like this it is correctly linked.</p>
146 <p>I don’t know if storing files in the Kirby website root is a safe thing to do and it would be better to use the “assets” folder for this.</p>
147 <p><small>5 posts - 2 participants</small></p>
148 <p><a href="https://forum.getkirby.com/t/css-and-js-not-found-when-moving-kirby-from-local-to-remote-server/22428">Read full topic</a></p>
149 ]]></description>
150 <link>https://forum.getkirby.com/t/css-and-js-not-found-when-moving-kirby-from-local-to-remote-server/22428</link>
151 <pubDate>Wed, 26 May 2021 22:18:42 +0000</pubDate>
152 <discourse:topicPinned>No</discourse:topicPinned>
153 <discourse:topicClosed>No</discourse:topicClosed>
154 <discourse:topicArchived>No</discourse:topicArchived>
155 <guid isPermaLink="false">forum.getkirby.com-topic-22428</guid>
156 <source url="https://forum.getkirby.com/t/css-and-js-not-found-when-moving-kirby-from-local-to-remote-server/22428.rss">CSS and JS not found when moving Kirby from local to remote server</source>
157 </item>
158 <item>
159 <title>Dynamic structure blueprint</title>
160 <dc:creator><![CDATA[arnoson]]></dc:creator>
161 <category>Questions 🤔</category>
162 <description><![CDATA[
163 <p>I’m writing a form builder plugin and to display the collected data of a form I need a dynamic structure. Here is an example to clarify what I mean:</p>
164 <p>A user creates a form with a <code>first_name</code> and a <code>last_name</code> field with the form builder plugin. Than this form can be used to collect data. The form builder plugin stores this data as entries in a structure field. To display this data in the panel I need to set the fields of the structure. But because the fields are created dynamically by the user I can’t write them in the blueprint directly. Is there a way to generate the fields for the structure dynamically? Something like this (where <code>generateFields</code> could be defined in the page controller):</p>
165 <pre><code class="lang-auto">form_entries:
166 type: structure
167 fields: {{ generateFields() }}
168 </code></pre>
169 <p>which would be resolved to the following the example above:</p>
170 <pre><code class="lang-auto">form_entries:
171 type: structure
172 fields:
173 first_name:
174 type: text
175 last_name:
176 type: text
177 </code></pre>
178 <p><small>1 post - 1 participant</small></p>
179 <p><a href="https://forum.getkirby.com/t/dynamic-structure-blueprint/22426">Read full topic</a></p>
180 ]]></description>
181 <link>https://forum.getkirby.com/t/dynamic-structure-blueprint/22426</link>
182 <pubDate>Wed, 26 May 2021 20:34:00 +0000</pubDate>
183 <discourse:topicPinned>No</discourse:topicPinned>
184 <discourse:topicClosed>No</discourse:topicClosed>
185 <discourse:topicArchived>No</discourse:topicArchived>
186 <guid isPermaLink="false">forum.getkirby.com-topic-22426</guid>
187 <source url="https://forum.getkirby.com/t/dynamic-structure-blueprint/22426.rss">Dynamic structure blueprint</source>
188 </item>
189 <item>
190 <title>Serve a page on its own domain in Kirby 2</title>
191 <dc:creator><![CDATA[ErVal]]></dc:creator>
192 <category>Questions 🤔</category>
193 <description><![CDATA[
194 <p>I am sorry if this has been asked before.<br>
195 I have only been able to find solutions for Kirby 3 and I am unsure whether any of those could work for Kirby 2 as well.</p>
196 <p>I’d like to have a subdomain render a page / specific content folder for a kirby 2 project.</p>
197 <p>Essentially have <a href="http://bananas.example.com" rel="noopener nofollow ugc">bananas.example.com</a> display what would normally be on <a href="http://example.com/sub/bananas" rel="noopener nofollow ugc">example.com/sub/bananas</a><br>
198 and have <a href="http://example.com/sub/bananas" rel="noopener nofollow ugc">example.com/sub/bananas</a> redirect to <a href="http://bananas.example.com" rel="noopener nofollow ugc">bananas.example.com</a>.</p>
199 <p>Is there a way to make it work automatically for all subdirectories of <a href="http://example.com/sub" rel="noopener nofollow ugc">example.com/sub</a>?</p>
200 <p>So that if I ever decide to create a <a href="http://example.com/sub/eggplant" rel="noopener nofollow ugc">example.com/sub/eggplant</a>, it would also redirect to <a href="http://eggplant.example.com" rel="noopener nofollow ugc">eggplant.example.com</a> without my doing anything else and have <a href="http://eggplant.example.com" rel="noopener nofollow ugc">eggplant.example.com</a> render what would normally be displayed on <a href="http://example.com/sub/eggplant" rel="noopener nofollow ugc">example.com/sub/eggplant</a>.</p>
201 <p>The redirection from a subdirectory to the subdomain is done via htaccess, as far as I can tell.</p>
202 <p>My idea was that I might be able to do that via server or DNS settings in some way,<br>
203 but unfortunately I don’t have that kind of access to my customer’s server.</p>
204 <p><small>2 posts - 2 participants</small></p>
205 <p><a href="https://forum.getkirby.com/t/serve-a-page-on-its-own-domain-in-kirby-2/22421">Read full topic</a></p>
206 ]]></description>
207 <link>https://forum.getkirby.com/t/serve-a-page-on-its-own-domain-in-kirby-2/22421</link>
208 <pubDate>Wed, 26 May 2021 14:19:10 +0000</pubDate>
209 <discourse:topicPinned>No</discourse:topicPinned>
210 <discourse:topicClosed>No</discourse:topicClosed>
211 <discourse:topicArchived>No</discourse:topicArchived>
212 <guid isPermaLink="false">forum.getkirby.com-topic-22421</guid>
213 <source url="https://forum.getkirby.com/t/serve-a-page-on-its-own-domain-in-kirby-2/22421.rss">Serve a page on its own domain in Kirby 2</source>
214 </item>
215 <item>
216 <title>Getting started</title>
217 <dc:creator><![CDATA[JeffPorter]]></dc:creator>
218 <category>General</category>
219 <description><![CDATA[
220 <p>I’ve followed the instructions for getting started but the site won’t show the panel so I can add my account details. I have a licence already.<br>
221 <div class="lightbox-wrapper"><a class="lightbox" href="https://aws1.discourse-cdn.com/standard17/uploads/getkirby/original/2X/5/5f91321a6f3f2c30d00a884b3523335164b805ea.png" data-download-href="/uploads/short-url/dDqrhFc905odmoRwj4TBxGjekdQ.png?dl=1" title="Screenshot 2021-05-26 at 13.39.37" rel="noopener nofollow ugc"><img src="https://aws1.discourse-cdn.com/standard17/uploads/getkirby/optimized/2X/5/5f91321a6f3f2c30d00a884b3523335164b805ea_2_690x310.png" alt="Screenshot 2021-05-26 at 13.39.37" data-base62-sha1="dDqrhFc905odmoRwj4TBxGjekdQ" width="690" height="310" srcset="https://aws1.discourse-cdn.com/standard17/uploads/getkirby/optimized/2X/5/5f91321a6f3f2c30d00a884b3523335164b805ea_2_690x310.png, https://aws1.discourse-cdn.com/standard17/uploads/getkirby/original/2X/5/5f91321a6f3f2c30d00a884b3523335164b805ea.png 1.5x, https://aws1.discourse-cdn.com/standard17/uploads/getkirby/original/2X/5/5f91321a6f3f2c30d00a884b3523335164b805ea.png 2x" data-small-upload="https://aws1.discourse-cdn.com/standard17/uploads/getkirby/optimized/2X/5/5f91321a6f3f2c30d00a884b3523335164b805ea_2_10x10.png"><div class="meta">
222 <svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use xlink:href="#far-image"></use></svg><span class="filename">Screenshot 2021-05-26 at 13.39.37</span><span class="informations">976×439 85.6 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use xlink:href="#discourse-expand"></use></svg>
223 </div></a></div></p>
224 <p><small>6 posts - 2 participants</small></p>
225 <p><a href="https://forum.getkirby.com/t/getting-started/22420">Read full topic</a></p>
226 ]]></description>
227 <link>https://forum.getkirby.com/t/getting-started/22420</link>
228 <pubDate>Wed, 26 May 2021 12:40:06 +0000</pubDate>
229 <discourse:topicPinned>No</discourse:topicPinned>
230 <discourse:topicClosed>No</discourse:topicClosed>
231 <discourse:topicArchived>No</discourse:topicArchived>
232 <guid isPermaLink="false">forum.getkirby.com-topic-22420</guid>
233 <source url="https://forum.getkirby.com/t/getting-started/22420.rss">Getting started</source>
234 </item>
235 <item>
236 <title>Check if layout is last in set</title>
237 <dc:creator><![CDATA[mikeharrison]]></dc:creator>
238 <category>Solved ✅</category>
239 <description><![CDATA[
240 <p>Hi,<br>
241 This is probably simple but I can’t get it to work - can I check if a layout is the last in the set? So if I have this:</p>
242 <pre><code>&lt;?php foreach ($page-&gt;pageBuilder()-&gt;toLayouts() as $layout): ?&gt;
243
244 &lt;?php endforeach ?&gt;
245 </code></pre>
246 <p>Can I check within the loop if it is the last layout element, and do something different with it?</p>
247 <p><small>3 posts - 2 participants</small></p>
248 <p><a href="https://forum.getkirby.com/t/check-if-layout-is-last-in-set/22419">Read full topic</a></p>
249 ]]></description>
250 <link>https://forum.getkirby.com/t/check-if-layout-is-last-in-set/22419</link>
251 <pubDate>Wed, 26 May 2021 11:07:29 +0000</pubDate>
252 <discourse:topicPinned>No</discourse:topicPinned>
253 <discourse:topicClosed>No</discourse:topicClosed>
254 <discourse:topicArchived>No</discourse:topicArchived>
255 <guid isPermaLink="false">forum.getkirby.com-topic-22419</guid>
256 <source url="https://forum.getkirby.com/t/check-if-layout-is-last-in-set/22419.rss">Check if layout is last in set</source>
257 </item>
258 <item>
259 <title>Redirect to new page in panel</title>
260 <dc:creator><![CDATA[liliput]]></dc:creator>
261 <category>Questions 🤔</category>
262 <description><![CDATA[
263 <p>Hi,</p>
264 <p>I’m building an event directory, and in order to improve the performance, I’m nesting the events in folders by year and date (with the current 3300+ events listed under one single page the perfomance is not that good).</p>
265 <p>I want the editors to be able to create their events on the “events” page via the panel, and then move the event programmatically to the correct folder based on the year and month of the event. I’m using hooks to do this, and so far it’s working well, I only have one problem and I’m stuck:</p>
266 <p>After moving the event to the correct directory, the panel tries to open the page with the “old” url for the page, and of course it can’t find the page. Is there a way to redirect to the new URL manually on the panel after saving the page? I tried using <code>go()</code> but that doesn’t work.</p>
267 <p>Thanks!</p>
268 <p><small>4 posts - 3 participants</small></p>
269 <p><a href="https://forum.getkirby.com/t/redirect-to-new-page-in-panel/22418">Read full topic</a></p>
270 ]]></description>
271 <link>https://forum.getkirby.com/t/redirect-to-new-page-in-panel/22418</link>
272 <pubDate>Wed, 26 May 2021 08:54:39 +0000</pubDate>
273 <discourse:topicPinned>No</discourse:topicPinned>
274 <discourse:topicClosed>No</discourse:topicClosed>
275 <discourse:topicArchived>No</discourse:topicArchived>
276 <guid isPermaLink="false">forum.getkirby.com-topic-22418</guid>
277 <source url="https://forum.getkirby.com/t/redirect-to-new-page-in-panel/22418.rss">Redirect to new page in panel</source>
278 </item>
279 <item>
280 <title>Nested translations do not work?</title>
281 <dc:creator><![CDATA[jukra00]]></dc:creator>
282 <category>Questions 🤔</category>
283 <description><![CDATA[
284 <p>Hi!</p>
285 <p>I have been using kirby for a couple of years now, but never nested translation keys. For a new project, i thought about decluttering translation keys and startet nesting them. I’m using a yaml file for each language which looks like this:</p>
286 <pre><code># Buttons
287 buttons:
288 send: Absenden
289 next: Weiter
290 </code></pre>
291 <p>For the most part I started using the translations via kql api inside svelte components (using svelte-i18n), which works like a charm. But yesterday, stumbled upon the problem, that those nested translations are not working using the t() helper method.</p>
292 <pre><code>t('buttons.next') # results in nothing
293 t('buttons') # is an array
294 t('button')['next'] # does funtionally work, but ..
295 </code></pre>
296 <p>Am I missing anything or is it just possible to use simple structured translations in php?</p>
297 <p>Thanks in advance! <img src="https://emoji.discourse-cdn.com/apple/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>
298 <p><small>3 posts - 2 participants</small></p>
299 <p><a href="https://forum.getkirby.com/t/nested-translations-do-not-work/22417">Read full topic</a></p>
300 ]]></description>
301 <link>https://forum.getkirby.com/t/nested-translations-do-not-work/22417</link>
302 <pubDate>Wed, 26 May 2021 07:00:43 +0000</pubDate>
303 <discourse:topicPinned>No</discourse:topicPinned>
304 <discourse:topicClosed>No</discourse:topicClosed>
305 <discourse:topicArchived>No</discourse:topicArchived>
306 <guid isPermaLink="false">forum.getkirby.com-topic-22417</guid>
307 <source url="https://forum.getkirby.com/t/nested-translations-do-not-work/22417.rss">Nested translations do not work?</source>
308 </item>
309 <item>
310 <title>Store site field data in separate file</title>
311 <dc:creator><![CDATA[sunny]]></dc:creator>
312 <category>General</category>
313 <description><![CDATA[
314 <p>I have one structure field in my site.yml. I want to store this field data in different file . not in site.txt. Is there any way to do it</p>
315 <p><small>4 posts - 3 participants</small></p>
316 <p><a href="https://forum.getkirby.com/t/store-site-field-data-in-separate-file/22415">Read full topic</a></p>
317 ]]></description>
318 <link>https://forum.getkirby.com/t/store-site-field-data-in-separate-file/22415</link>
319 <pubDate>Wed, 26 May 2021 04:58:43 +0000</pubDate>
320 <discourse:topicPinned>No</discourse:topicPinned>
321 <discourse:topicClosed>No</discourse:topicClosed>
322 <discourse:topicArchived>No</discourse:topicArchived>
323 <guid isPermaLink="false">forum.getkirby.com-topic-22415</guid>
324 <source url="https://forum.getkirby.com/t/store-site-field-data-in-separate-file/22415.rss">Store site field data in separate file</source>
325 </item>
326 <item>
327 <title>Get ALL pages in kirby</title>
328 <dc:creator><![CDATA[MisterEsite]]></dc:creator>
329 <category>Solved ✅</category>
330 <description><![CDATA[
331 <p>Hey,</p>
332 <p>i want to get all pages with a single foreach. Is that possible?<br>
333 $site-&gt;pages() only gives me the children…</p>
334 <p>Best<br>
335 Marvin</p>
336 <p><small>3 posts - 3 participants</small></p>
337 <p><a href="https://forum.getkirby.com/t/get-all-pages-in-kirby/22414">Read full topic</a></p>
338 ]]></description>
339 <link>https://forum.getkirby.com/t/get-all-pages-in-kirby/22414</link>
340 <pubDate>Tue, 25 May 2021 19:42:28 +0000</pubDate>
341 <discourse:topicPinned>No</discourse:topicPinned>
342 <discourse:topicClosed>No</discourse:topicClosed>
343 <discourse:topicArchived>No</discourse:topicArchived>
344 <guid isPermaLink="false">forum.getkirby.com-topic-22414</guid>
345 <source url="https://forum.getkirby.com/t/get-all-pages-in-kirby/22414.rss">Get ALL pages in kirby</source>
346 </item>
347 <item>
348 <title>Change js variable via php</title>
349 <dc:creator><![CDATA[MisterEsite]]></dc:creator>
350 <category>Questions 🤔</category>
351 <description><![CDATA[
352 <p>Hey <img src="https://emoji.discourse-cdn.com/apple/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>
353 <p>I want to load the needed js files only when a page really is loaded.<br>
354 Because i am using barba js it is not that easy with refreshing the scripts.</p>
355 <p>For that reason <a class="mention" href="/u/pixelijn">@pixelijn</a> helped me to get the blocks from the used page.<br>
356 Now i thought depending on the Block i call a javascript script wich switches a variable.</p>
357 <pre><code> &lt;script&gt;
358 var slider;
359 &lt;/script&gt;
360 &lt;?php if ($doesBlockXExist-&gt;isNotEmpty()) : ?&gt;
361 True
362 &lt;script&gt;
363 slider = true;
364 &lt;/script&gt;
365 &lt;?php else : ?&gt;
366 False
367 &lt;script&gt;
368 slider = false;
369 &lt;/script&gt;
370 &lt;?php endif ?&gt;
371 &lt;script&gt;
372 console.log(slider);
373 &lt;/script&gt;
374 </code></pre>
375 <p>True and false are echoed correctly on the website, but the console.log always logs the first state.</p>
376 <p>Any idea?</p>
377 <p><small>4 posts - 2 participants</small></p>
378 <p><a href="https://forum.getkirby.com/t/change-js-variable-via-php/22413">Read full topic</a></p>
379 ]]></description>
380 <link>https://forum.getkirby.com/t/change-js-variable-via-php/22413</link>
381 <pubDate>Tue, 25 May 2021 19:14:47 +0000</pubDate>
382 <discourse:topicPinned>No</discourse:topicPinned>
383 <discourse:topicClosed>No</discourse:topicClosed>
384 <discourse:topicArchived>No</discourse:topicArchived>
385 <guid isPermaLink="false">forum.getkirby.com-topic-22413</guid>
386 <source url="https://forum.getkirby.com/t/change-js-variable-via-php/22413.rss">Change js variable via php</source>
387 </item>
388 <item>
389 <title>Display all blocks used on page?</title>
390 <dc:creator><![CDATA[MisterEsite]]></dc:creator>
391 <category>Solved ✅</category>
392 <description><![CDATA[
393 <p>Hey <img src="https://emoji.discourse-cdn.com/apple/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>
394 <p>I want to load script on the page only of a block is used.<br>
395 To do that i have to check if the block is used.</p>
396 <p>Is there any way to see all blocks used on the page?</p>
397 <p><small>9 posts - 2 participants</small></p>
398 <p><a href="https://forum.getkirby.com/t/display-all-blocks-used-on-page/22412">Read full topic</a></p>
399 ]]></description>
400 <link>https://forum.getkirby.com/t/display-all-blocks-used-on-page/22412</link>
401 <pubDate>Tue, 25 May 2021 16:21:38 +0000</pubDate>
402 <discourse:topicPinned>No</discourse:topicPinned>
403 <discourse:topicClosed>No</discourse:topicClosed>
404 <discourse:topicArchived>No</discourse:topicArchived>
405 <guid isPermaLink="false">forum.getkirby.com-topic-22412</guid>
406 <source url="https://forum.getkirby.com/t/display-all-blocks-used-on-page/22412.rss">Display all blocks used on page?</source>
407 </item>
408 <item>
409 <title>Mixed menu II cookbook is malfunctioning with languages</title>
410 <dc:creator><![CDATA[rober69]]></dc:creator>
411 <category>General</category>
412 <description><![CDATA[
413 <p>It is possible that the Mixed menu II cookbook is malfunctioning with languages, I have been trying it for several days and with one language working, however the version for the second language does not update.<br>
414 Here the site.yml</p>
415 <pre><code>columns:
416 - width: 1/1
417 sections:
418 fields:
419 type: fields
420 headline: Custom menu
421 fields:
422 nestedMenu:
423 type: structure
424 label: Nested menu
425 fields:
426 menufields: fields/menufields
427 hasSubmenu:
428 type: toggle
429 text: Add a submenu?
430 submenu:
431 type: structure
432 label: Second Level Items
433 when:
434 hasSubmenu: true
435 fields:
436 menufields: fields/menufields</code></pre>
437 <p><small>9 posts - 3 participants</small></p>
438 <p><a href="https://forum.getkirby.com/t/mixed-menu-ii-cookbook-is-malfunctioning-with-languages/22411">Read full topic</a></p>
439 ]]></description>
440 <link>https://forum.getkirby.com/t/mixed-menu-ii-cookbook-is-malfunctioning-with-languages/22411</link>
441 <pubDate>Tue, 25 May 2021 15:42:23 +0000</pubDate>
442 <discourse:topicPinned>No</discourse:topicPinned>
443 <discourse:topicClosed>No</discourse:topicClosed>
444 <discourse:topicArchived>No</discourse:topicArchived>
445 <guid isPermaLink="false">forum.getkirby.com-topic-22411</guid>
446 <source url="https://forum.getkirby.com/t/mixed-menu-ii-cookbook-is-malfunctioning-with-languages/22411.rss">Mixed menu II cookbook is malfunctioning with languages</source>
447 </item>
448 <item>
449 <title>Updating User field in Structure via hook</title>
450 <dc:creator><![CDATA[jamiehunter]]></dc:creator>
451 <category>Questions 🤔</category>
452 <description><![CDATA[
453 <p>I’m trying to add users to a specific structure depending on their role via a hook. My structure looks like this:</p>
454 <pre><code>Codes:
455
456 -
457 code: ATEST
458 user:
459 - 40oDx6nv
460 -
461 code: BTEST
462 user: [ ]
463 -
464 code: CTEST
465 user: [ ]
466 </code></pre>
467 <p>Codes are manually added to the Structure and the User field left empty so when a new user is created they are assigned a code by being added to the next empty user field in the structure. Here’s my hook (in <code>update:after</code> to make testing easier, will be changed to <code>create:after</code> and adjusted later):</p>
468 <pre><code>'user.update:after' =&gt; function ($newUser,$oldUser) {
469 if($newUser-&gt;role() == 'customer'){
470 $site = $this-&gt;site();
471 $yaml = $site-&gt;content()-&gt;codes()-&gt;yaml();
472 foreach($yaml as $y) {
473 if(!isset($y['user'])) {
474 $y['user'] = $newUser;
475 break;
476 }
477 }
478 }
479 },
480 </code></pre>
481 <p>This doesn’t do anything though. I’ve never updated a structure before, only ever added to one, so I’m pretty sure that’s where I’m going wrong here. Any ideas?</p>
482 <p><small>5 posts - 2 participants</small></p>
483 <p><a href="https://forum.getkirby.com/t/updating-user-field-in-structure-via-hook/22410">Read full topic</a></p>
484 ]]></description>
485 <link>https://forum.getkirby.com/t/updating-user-field-in-structure-via-hook/22410</link>
486 <pubDate>Tue, 25 May 2021 15:32:26 +0000</pubDate>
487 <discourse:topicPinned>No</discourse:topicPinned>
488 <discourse:topicClosed>No</discourse:topicClosed>
489 <discourse:topicArchived>No</discourse:topicArchived>
490 <guid isPermaLink="false">forum.getkirby.com-topic-22410</guid>
491 <source url="https://forum.getkirby.com/t/updating-user-field-in-structure-via-hook/22410.rss">Updating User field in Structure via hook</source>
492 </item>
493 <item>
494 <title>Setting up Kirby</title>
495 <dc:creator><![CDATA[JeffPorter]]></dc:creator>
496 <category>General</category>
497 <description><![CDATA[
498 <p>I’m struggling to set up Kirby again! I have added the license key in config.php. Is there anything else I shoud be doing? I’m running PHP 7.4 on my shared hosting server.<br>
499 <div class="lightbox-wrapper"><a class="lightbox" href="https://aws1.discourse-cdn.com/standard17/uploads/getkirby/original/2X/f/fc472dea3d3f4cb3187178d0b531e6122917b79f.png" data-download-href="/uploads/short-url/zZKP3ZrCo2xXUFspNrljPm6kgxx.png?dl=1" title="Screenshot 2021-05-25 at 15.45.13" rel="noopener nofollow ugc"><img src="https://aws1.discourse-cdn.com/standard17/uploads/getkirby/optimized/2X/f/fc472dea3d3f4cb3187178d0b531e6122917b79f_2_416x500.png" alt="Screenshot 2021-05-25 at 15.45.13" data-base62-sha1="zZKP3ZrCo2xXUFspNrljPm6kgxx" width="416" height="500" srcset="https://aws1.discourse-cdn.com/standard17/uploads/getkirby/optimized/2X/f/fc472dea3d3f4cb3187178d0b531e6122917b79f_2_416x500.png, https://aws1.discourse-cdn.com/standard17/uploads/getkirby/original/2X/f/fc472dea3d3f4cb3187178d0b531e6122917b79f.png 1.5x, https://aws1.discourse-cdn.com/standard17/uploads/getkirby/original/2X/f/fc472dea3d3f4cb3187178d0b531e6122917b79f.png 2x" data-small-upload="https://aws1.discourse-cdn.com/standard17/uploads/getkirby/optimized/2X/f/fc472dea3d3f4cb3187178d0b531e6122917b79f_2_10x10.png"><div class="meta">
500 <svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use xlink:href="#far-image"></use></svg><span class="filename">Screenshot 2021-05-25 at 15.45.13</span><span class="informations">472×567 32.5 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use xlink:href="#discourse-expand"></use></svg>
501 </div></a></div></p>
502 <p><small>4 posts - 3 participants</small></p>
503 <p><a href="https://forum.getkirby.com/t/setting-up-kirby/22409">Read full topic</a></p>
504 ]]></description>
505 <link>https://forum.getkirby.com/t/setting-up-kirby/22409</link>
506 <pubDate>Tue, 25 May 2021 14:45:59 +0000</pubDate>
507 <discourse:topicPinned>No</discourse:topicPinned>
508 <discourse:topicClosed>No</discourse:topicClosed>
509 <discourse:topicArchived>No</discourse:topicArchived>
510 <guid isPermaLink="false">forum.getkirby.com-topic-22409</guid>
511 <source url="https://forum.getkirby.com/t/setting-up-kirby/22409.rss">Setting up Kirby</source>
512 </item>
513 <item>
514 <title>File upload: Can&#39;t upload .glb file</title>
515 <dc:creator><![CDATA[benbesen]]></dc:creator>
516 <category>Questions 🤔</category>
517 <description><![CDATA[
518 <p>Hi together,<br>
519 I’m trying to use a “files” field to upload GTLF files with a .glb ending. Apparently these file types are not setup, I get “Invalid file type”.<br>
520 How can I add them to the accepted files?<br>
521 I’m using Kirby 3.5.</p>
522 <p>Thank you<br>
523 Ben</p>
524 <p><small>2 posts - 2 participants</small></p>
525 <p><a href="https://forum.getkirby.com/t/file-upload-cant-upload-glb-file/22407">Read full topic</a></p>
526 ]]></description>
527 <link>https://forum.getkirby.com/t/file-upload-cant-upload-glb-file/22407</link>
528 <pubDate>Tue, 25 May 2021 13:37:56 +0000</pubDate>
529 <discourse:topicPinned>No</discourse:topicPinned>
530 <discourse:topicClosed>No</discourse:topicClosed>
531 <discourse:topicArchived>No</discourse:topicArchived>
532 <guid isPermaLink="false">forum.getkirby.com-topic-22407</guid>
533 <source url="https://forum.getkirby.com/t/file-upload-cant-upload-glb-file/22407.rss">File upload: Can&#39;t upload .glb file</source>
534 </item>
535 <item>
536 <title>Understanding Blueprints</title>
537 <dc:creator><![CDATA[mikestott89]]></dc:creator>
538 <category>Solved ✅</category>
539 <description><![CDATA[
540 <p>Hi,</p>
541 <p>Im new to Kirby and really trying to understand Blueprints.</p>
542 <p>I’m not sure if there is an easier way to build but I started with HTML and some PHP snippets, then applied my CSS &amp; JS (to build the design), and now im starting on my Blueprints. (Do you guys have any preferred methods?)</p>
543 <p>I have read docs (for example: <a href="https://getkirby.com/docs/guide/blueprints/layout" class="inline-onebox" rel="noopener nofollow ugc">Layout | Kirby CMS</a>), but its just not sinking in.</p>
544 <p>I understand there are columns and sections but to emulate my page as best as possible… I need multiple “rows” (see red outline below) - this is what I dont understand.</p>
545 <p><div class="lightbox-wrapper"><a class="lightbox" href="https://aws1.discourse-cdn.com/standard17/uploads/getkirby/original/2X/e/e15cd997939dafc527334f73975383b59b0af551.jpeg" data-download-href="/uploads/short-url/w9EmnEBtPbvcUckj7Z1I1ANzf1v.jpeg?dl=1" title="kirby-blueprint" rel="noopener nofollow ugc"><img src="https://aws1.discourse-cdn.com/standard17/uploads/getkirby/optimized/2X/e/e15cd997939dafc527334f73975383b59b0af551_2_690x480.jpeg" alt="kirby-blueprint" data-base62-sha1="w9EmnEBtPbvcUckj7Z1I1ANzf1v" width="690" height="480" srcset="https://aws1.discourse-cdn.com/standard17/uploads/getkirby/optimized/2X/e/e15cd997939dafc527334f73975383b59b0af551_2_690x480.jpeg, https://aws1.discourse-cdn.com/standard17/uploads/getkirby/optimized/2X/e/e15cd997939dafc527334f73975383b59b0af551_2_1035x720.jpeg 1.5x, https://aws1.discourse-cdn.com/standard17/uploads/getkirby/original/2X/e/e15cd997939dafc527334f73975383b59b0af551.jpeg 2x" data-small-upload="https://aws1.discourse-cdn.com/standard17/uploads/getkirby/optimized/2X/e/e15cd997939dafc527334f73975383b59b0af551_2_10x10.png"><div class="meta">
546 <svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use xlink:href="#far-image"></use></svg><span class="filename">kirby-blueprint</span><span class="informations">1059×737 51.6 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use xlink:href="#discourse-expand"></use></svg>
547 </div></a></div></p>
548 <p>I need multiple rows to outline the different sections of my page on the front end. What am I not getting/understanding. I know it shouldnt be this hard.</p>
549 <p>Thanks for any advice!</p>
550 <p>Mike</p>
551 <p><small>7 posts - 2 participants</small></p>
552 <p><a href="https://forum.getkirby.com/t/understanding-blueprints/22405">Read full topic</a></p>
553 ]]></description>
554 <link>https://forum.getkirby.com/t/understanding-blueprints/22405</link>
555 <pubDate>Tue, 25 May 2021 11:36:01 +0000</pubDate>
556 <discourse:topicPinned>No</discourse:topicPinned>
557 <discourse:topicClosed>No</discourse:topicClosed>
558 <discourse:topicArchived>No</discourse:topicArchived>
559 <guid isPermaLink="false">forum.getkirby.com-topic-22405</guid>
560 <source url="https://forum.getkirby.com/t/understanding-blueprints/22405.rss">Understanding Blueprints</source>
561 </item>
562 <item>
563 <title>Layout row class</title>
564 <dc:creator><![CDATA[Gareth_Jones]]></dc:creator>
565 <category>Solved ✅</category>
566 <description><![CDATA[
567 <p>I need a way to identify the type of layout row e.g 1/2 1/2. I know I can use $layout-&gt;id() , but this is a random string unique to each layout. Is this possible?</p>
568 <pre><code> &lt;?php foreach ($page-&gt;features()-&gt;toLayouts() as $layout): ?&gt;
569 &lt;div class="flex flex-wrap md:-mx-3 layout-&lt;?= $layout-&gt;id() ?&gt;"&gt;
570 &lt;?php foreach ($layout-&gt;columns() as $column): ?&gt;
571 &lt;div class="w-full sm:w-&lt;?= $column-&gt;span() ?&gt;/12 pb-[39px] md:px-3 "&gt;
572 &lt;?= $column-&gt;blocks() ?&gt;
573 &lt;/div&gt;
574 &lt;?php endforeach ?&gt;
575 &lt;/div&gt;
576 &lt;?php endforeach ?&gt;</code></pre>
577 <p><small>2 posts - 1 participant</small></p>
578 <p><a href="https://forum.getkirby.com/t/layout-row-class/22404">Read full topic</a></p>
579 ]]></description>
580 <link>https://forum.getkirby.com/t/layout-row-class/22404</link>
581 <pubDate>Tue, 25 May 2021 08:49:55 +0000</pubDate>
582 <discourse:topicPinned>No</discourse:topicPinned>
583 <discourse:topicClosed>No</discourse:topicClosed>
584 <discourse:topicArchived>No</discourse:topicArchived>
585 <guid isPermaLink="false">forum.getkirby.com-topic-22404</guid>
586 <source url="https://forum.getkirby.com/t/layout-row-class/22404.rss">Layout row class</source>
587 </item>
588 <item>
589 <title>Writing content in mobile browser - How to add images?</title>
590 <dc:creator><![CDATA[patrolling]]></dc:creator>
591 <category>Solved ✅</category>
592 <description><![CDATA[
593 <p>I’m writing Kirby blog posts using mobile Safari. I can upload an image in the panel sidebar, but it seems like the only way to add an image to a post is to drag the image from the sidebar into the blog post body. I can’t do this on a mobile browser.</p>
594 <p>I tried simply writing an image tag, (image: name-of-file.jpg), but then the image file isn’t loaded on the page preview. It seems like Kirby does more than just enter the file name when an image is dragged over. That’s fine. Is there a method to add an image to a page on a mobile browser? Thanks!</p>
595 <p><small>3 posts - 2 participants</small></p>
596 <p><a href="https://forum.getkirby.com/t/writing-content-in-mobile-browser-how-to-add-images/22401">Read full topic</a></p>
597 ]]></description>
598 <link>https://forum.getkirby.com/t/writing-content-in-mobile-browser-how-to-add-images/22401</link>
599 <pubDate>Mon, 24 May 2021 20:53:48 +0000</pubDate>
600 <discourse:topicPinned>No</discourse:topicPinned>
601 <discourse:topicClosed>No</discourse:topicClosed>
602 <discourse:topicArchived>No</discourse:topicArchived>
603 <guid isPermaLink="false">forum.getkirby.com-topic-22401</guid>
604 <source url="https://forum.getkirby.com/t/writing-content-in-mobile-browser-how-to-add-images/22401.rss">Writing content in mobile browser - How to add images?</source>
605 </item>
606 <item>
607 <title>NotFoundException (error.template.default.notFound)</title>
608 <dc:creator><![CDATA[LeoSonnekus]]></dc:creator>
609 <category>General</category>
610 <description><![CDATA[
611 <p>Hi I have a kirby site which I took over from someone else and sometimes the Home page will throw this error</p>
612 <p>Kirby \ Exception \ NotFoundException (error.template.default.notFound)</p>
613 <p>The default template does not exist</p>
614 <p>When I log into the panel the page I had previously setup as my home page no longer appears as an available page. When I replace my local content folder with my remote content folder it seems to fix the issue, but only temporarily, because the issue represents itself again when I restart my MAMP server.</p>
615 <p>I’m using MAMP for local development and Codekit to compile Sass so maybe my configuration is messing with something but this is only affecting my Home page. Can I get some insight into how this error occurs so I can prevent it from happening?</p>
616 <p>Thanks</p>
617 <p><small>4 posts - 3 participants</small></p>
618 <p><a href="https://forum.getkirby.com/t/notfoundexception-error-template-default-notfound/22400">Read full topic</a></p>
619 ]]></description>
620 <link>https://forum.getkirby.com/t/notfoundexception-error-template-default-notfound/22400</link>
621 <pubDate>Mon, 24 May 2021 20:53:39 +0000</pubDate>
622 <discourse:topicPinned>No</discourse:topicPinned>
623 <discourse:topicClosed>No</discourse:topicClosed>
624 <discourse:topicArchived>No</discourse:topicArchived>
625 <guid isPermaLink="false">forum.getkirby.com-topic-22400</guid>
626 <source url="https://forum.getkirby.com/t/notfoundexception-error-template-default-notfound/22400.rss">NotFoundException (error.template.default.notFound)</source>
627 </item>
628 <item>
629 <title>Show Janitor button only on non default language page</title>
630 <dc:creator><![CDATA[Digitmade]]></dc:creator>
631 <category>Solved ✅</category>
632 <description><![CDATA[
633 <p>Hi,</p>
634 <p>On a multi-language website, I use the <a href="https://github.com/bnomei/kirby3-janitor" rel="noopener nofollow ugc">Janitor plugin</a> to show a button to open a specific page depending on the choosed language, but I don’t need it on the default language page.</p>
635 <p>Do you know a way to hide the janitor field on the default language page ?<br>
636 Maybe using the “when:” field option ?</p>
637 <p><small>4 posts - 2 participants</small></p>
638 <p><a href="https://forum.getkirby.com/t/show-janitor-button-only-on-non-default-language-page/22398">Read full topic</a></p>
639 ]]></description>
640 <link>https://forum.getkirby.com/t/show-janitor-button-only-on-non-default-language-page/22398</link>
641 <pubDate>Mon, 24 May 2021 19:19:30 +0000</pubDate>
642 <discourse:topicPinned>No</discourse:topicPinned>
643 <discourse:topicClosed>No</discourse:topicClosed>
644 <discourse:topicArchived>No</discourse:topicArchived>
645 <guid isPermaLink="false">forum.getkirby.com-topic-22398</guid>
646 <source url="https://forum.getkirby.com/t/show-janitor-button-only-on-non-default-language-page/22398.rss">Show Janitor button only on non default language page</source>
647 </item>
648 <item>
649 <title>Access kirby object from assets folder</title>
650 <dc:creator><![CDATA[Adrieng]]></dc:creator>
651 <category>Solved ✅</category>
652 <description><![CDATA[
653 <p>Hello,</p>
654 <p>Is there any way to access the kirby global object from a php function placed in the assets folder ?</p>
655 <p>This global function will be called from different pages using AJAX. That’s why I chose not to use a page method or a controller.</p>
656 <p>Thank you for your help.</p>
657 <p><small>16 posts - 2 participants</small></p>
658 <p><a href="https://forum.getkirby.com/t/access-kirby-object-from-assets-folder/22397">Read full topic</a></p>
659 ]]></description>
660 <link>https://forum.getkirby.com/t/access-kirby-object-from-assets-folder/22397</link>
661 <pubDate>Mon, 24 May 2021 13:51:53 +0000</pubDate>
662 <discourse:topicPinned>No</discourse:topicPinned>
663 <discourse:topicClosed>No</discourse:topicClosed>
664 <discourse:topicArchived>No</discourse:topicArchived>
665 <guid isPermaLink="false">forum.getkirby.com-topic-22397</guid>
666 <source url="https://forum.getkirby.com/t/access-kirby-object-from-assets-folder/22397.rss">Access kirby object from assets folder</source>
667 </item>
668 <item>
669 <title>Extending the text block with text color select field</title>
670 <dc:creator><![CDATA[patte]]></dc:creator>
671 <category>Solved ✅</category>
672 <description><![CDATA[
673 <p>Hi,<br>
674 I would like to extend the text block with a select field with which you can determine the text color.<br>
675 With the Blueprint this works very well - but with the Template / Snippet I am not sure if this is a good solution.<br>
676 Maybe an experienced Kirby user can take a look at it?</p>
677 <p><strong>content.yml</strong></p>
678 <pre><code>extends: blocks/text
679 fields:
680 text_color:
681 extends: fields/colors
682 label: Text color
683 </code></pre>
684 <p><strong>text.php</strong></p>
685 <pre><code>&lt;?php
686 if ($block-&gt;text_color()-&gt;isNotEmpty()):
687 $text = $block-&gt;text();
688 $search = ["&lt;p&gt;"];
689 $replace = ["&lt;p class='text-color--" . $block-&gt;text_color() . "'&gt;"];
690 echo str_replace($search, $replace, $text);
691 else:
692 echo $block-&gt;text();
693 endif
694 ?&gt;
695 </code></pre>
696 <p>Does this look strange to you or can I do so?<br>
697 Best<br>
698 Patrick <img src="https://emoji.discourse-cdn.com/apple/wink.png?v=9" title=":wink:" class="emoji" alt=":wink:"></p>
699 <p><em>edit: something was replaced twice…</em></p>
700 <p><small>5 posts - 2 participants</small></p>
701 <p><a href="https://forum.getkirby.com/t/extending-the-text-block-with-text-color-select-field/22396">Read full topic</a></p>
702 ]]></description>
703 <link>https://forum.getkirby.com/t/extending-the-text-block-with-text-color-select-field/22396</link>
704 <pubDate>Mon, 24 May 2021 11:48:14 +0000</pubDate>
705 <discourse:topicPinned>No</discourse:topicPinned>
706 <discourse:topicClosed>No</discourse:topicClosed>
707 <discourse:topicArchived>No</discourse:topicArchived>
708 <guid isPermaLink="false">forum.getkirby.com-topic-22396</guid>
709 <source url="https://forum.getkirby.com/t/extending-the-text-block-with-text-color-select-field/22396.rss">Extending the text block with text color select field</source>
710 </item>
711 <item>
712 <title>Showing Subpages in Nav</title>
713 <dc:creator><![CDATA[beetlejays]]></dc:creator>
714 <category>Solved ✅</category>
715 <description><![CDATA[
716 <p>I am showing Subpages onclick in the navigation. I got it to work to show the subpages for the first menuitem with:</p>
717 <pre><code> &lt;?php $x = $page()-&gt;children();?&gt;
718 &lt;?php foreach ($x as $y): ?&gt;
719 &lt;a href="&lt;?=$y-&gt;url();?&gt;"&gt;&lt;?=$y-&gt;title();?&gt;&lt;/a&gt;
720 &lt;?php endforeach;?&gt;
721 </code></pre>
722 <p>But now all subpages are shown, but to use “not” wouldn´t be practical, since I also have one submenu in the navigation. I tried: <a href="https://forum.getkirby.com/t/subpages-in-subpages-with-foreach-loop/3956" class="inline-onebox">Subpages in Subpages with foreach loop</a><br>
723 which did not work.</p>
724 <p>Thank you so much for the help in this forum!</p>
725 <p><small>11 posts - 2 participants</small></p>
726 <p><a href="https://forum.getkirby.com/t/showing-subpages-in-nav/22395">Read full topic</a></p>
727 ]]></description>
728 <link>https://forum.getkirby.com/t/showing-subpages-in-nav/22395</link>
729 <pubDate>Mon, 24 May 2021 10:49:17 +0000</pubDate>
730 <discourse:topicPinned>No</discourse:topicPinned>
731 <discourse:topicClosed>No</discourse:topicClosed>
732 <discourse:topicArchived>No</discourse:topicArchived>
733 <guid isPermaLink="false">forum.getkirby.com-topic-22395</guid>
734 <source url="https://forum.getkirby.com/t/showing-subpages-in-nav/22395.rss">Showing Subpages in Nav</source>
735 </item>
736 <item>
737 <title>CSS not loading for subpages css()</title>
738 <dc:creator><![CDATA[beetlejays]]></dc:creator>
739 <category>Solved ✅</category>
740 <description><![CDATA[
741 <p>Good Morning!</p>
742 <p>Been trying to get the styles to work with my Kirby Installation.<br>
743 My styles are being loaded when using:</p>
744 <pre><code>echo css(../css/style.css)
745 </code></pre>
746 <p>Since I have subpages which are located in the content folder like.</p>
747 <p>---- content<br>
748 ----- home<br>
749 --------home.de.txt<br>
750 --------home.en.txt<br>
751 ------about<br>
752 --------team.de.txt<br>
753 ------------ team.de.txt<br>
754 ------------ team.en.txt</p>
755 <p>My styles are not loaded i.e. when viewing page “team” due to the path not being “…css” instead of “de/css”</p>
756 <p>How can I load these right? I have tried:</p>
757 <pre><code>&lt;?php echo -&gt;kirby()-&gt;urls()-&gt;assets() . '/css/style.css' ; ?&gt;
758 </code></pre>
759 <p>Which does not work. Help would be much appreciated! Thank you in advance!</p>
760 <p><small>3 posts - 2 participants</small></p>
761 <p><a href="https://forum.getkirby.com/t/css-not-loading-for-subpages-css/22394">Read full topic</a></p>
762 ]]></description>
763 <link>https://forum.getkirby.com/t/css-not-loading-for-subpages-css/22394</link>
764 <pubDate>Mon, 24 May 2021 09:09:32 +0000</pubDate>
765 <discourse:topicPinned>No</discourse:topicPinned>
766 <discourse:topicClosed>No</discourse:topicClosed>
767 <discourse:topicArchived>No</discourse:topicArchived>
768 <guid isPermaLink="false">forum.getkirby.com-topic-22394</guid>
769 <source url="https://forum.getkirby.com/t/css-not-loading-for-subpages-css/22394.rss">CSS not loading for subpages css()</source>
770 </item>
771 <item>
772 <title>How to Deploy - Dokku x Digital Ocean</title>
773 <dc:creator><![CDATA[tiana]]></dc:creator>
774 <category>General</category>
775 <description><![CDATA[
776 <p>Hey, I am so lost.</p>
777 <p>I’ve been trying to follow these tutorials on <a href="https://medium.com/@marcmintel/deploy-your-kirby-website-on-digital-ocean-using-git-and-dokku-4ae5b53c6bb5" rel="noopener nofollow ugc">Medium</a> and <a href="https://gist.github.com/leigler/a49a6103753a9e95560752185e708080" rel="noopener nofollow ugc">Github</a>, but am still quite lost.</p>
778 <p>I’ve never deployed a website using Digital Ocean / Dokku before. I’ve only ever used C-Panel.</p>
779 <p>I set up a Dokku droplet with SSH, but for some reason I keep getting a vague error.</p>
780 <p>Looking for step-by-step help.<br>
781 Really wish someone would make a video tutorial on how to deploy, since I personally learn best that way.</p>
782 <p><small>2 posts - 2 participants</small></p>
783 <p><a href="https://forum.getkirby.com/t/how-to-deploy-dokku-x-digital-ocean/22391">Read full topic</a></p>
784 ]]></description>
785 <link>https://forum.getkirby.com/t/how-to-deploy-dokku-x-digital-ocean/22391</link>
786 <pubDate>Sat, 22 May 2021 20:34:42 +0000</pubDate>
787 <discourse:topicPinned>No</discourse:topicPinned>
788 <discourse:topicClosed>No</discourse:topicClosed>
789 <discourse:topicArchived>No</discourse:topicArchived>
790 <guid isPermaLink="false">forum.getkirby.com-topic-22391</guid>
791 <source url="https://forum.getkirby.com/t/how-to-deploy-dokku-x-digital-ocean/22391.rss">How to Deploy - Dokku x Digital Ocean</source>
792 </item>
793 <item>
794 <title>Using Global Translations in Panel</title>
795 <dc:creator><![CDATA[kuwts]]></dc:creator>
796 <category>Kirby 3</category>
797 <description><![CDATA[
798 <p>Hey guys,</p>
799 <p>Would anyone be able to tell me how/if I can use global translations in the panel? In the code, you can use t(‘translation-key’). Would it be possible to use this function or another method to get the global translation in the panel?</p>
800 <p>Any and all tips are very much appreciated <img src="https://emoji.discourse-cdn.com/apple/slight_smile.png?v=9" title=":slight_smile:" class="emoji" alt=":slight_smile:"></p>
801 <p>Thanks,<br>
802 Dan</p>
803 <p><small>9 posts - 2 participants</small></p>
804 <p><a href="https://forum.getkirby.com/t/using-global-translations-in-panel/22387">Read full topic</a></p>
805 ]]></description>
806 <link>https://forum.getkirby.com/t/using-global-translations-in-panel/22387</link>
807 <pubDate>Thu, 20 May 2021 18:42:19 +0000</pubDate>
808 <discourse:topicPinned>No</discourse:topicPinned>
809 <discourse:topicClosed>No</discourse:topicClosed>
810 <discourse:topicArchived>No</discourse:topicArchived>
811 <guid isPermaLink="false">forum.getkirby.com-topic-22387</guid>
812 <source url="https://forum.getkirby.com/t/using-global-translations-in-panel/22387.rss">Using Global Translations in Panel</source>
813 </item>
814 </channel>
815 </rss>
Response: application/gopher-menu
Original URLgopher://codemadness.org/1/git/sfeed_tests/file/input/sfe...
Content-Typeapplication/gopher-menu; charset=utf-8