These are chat archives for getkirby/chat

7th
Jul 2015
Philip Bräunlich
@stereonom
Jul 07 2015 08:41
any concerns when I name the content-folders like 20150701-foobar?
Flo Kosiol
@flokosiol
Jul 07 2015 09:21
No. If you use the panel just be sure to set date-based numbering for your page. Otherwise the numbers may be changed automatically when you reorder the pages via panel.
Flo Kosiol
@flokosiol
Jul 07 2015 09:48
Maybe "I don't think so" would have been a better answer than "No" :smile:
Philip Bräunlich
@stereonom
Jul 07 2015 10:26
:-) Thanks. I'm not using the panel, so I think I'm save :-)
Philippe Gervaise
@malvese
Jul 07 2015 10:37
Ooh nice, there's a Gitter app
Dennis Frank
@dennisfrank
Jul 07 2015 11:33
Hi :)
Gunther Groenewege
@groenewege
Jul 07 2015 11:46
Thanks for the tip @malvese
Gunther Groenewege
@groenewege
Jul 07 2015 15:20
@bastianallgeier Is there a way to change the visibility of a page from the code ? I can't find a command in the Cheat Sheet. I am thinking about making a simple plugin that uses panel hooks to make certain content automatically visible on creation.
Paul Morel
@PaulMorel
Jul 07 2015 16:41
Well this is nice. Never used Glitter before
Nico Hoffmann
@distantnative
Jul 07 2015 17:05

@groenewege there is... from the Page class (so $page->):

/**

  • Changes the prepended number for the page
    */
    public function sort($num) {

    }

    /**

  • Make the page invisible by removing the prepended number
    */
    public function hide() {

    }
ahh, not so nice with formatting (gitter)... so basically $page->sort($num) and $page->hide()
Gunther Groenewege
@groenewege
Jul 07 2015 17:13
Thank you @distantnative I will try that.
Ivan Cruz
@shiftsave
Jul 07 2015 17:21
@bastianallgeier just wondering, what platform does the forum run on?
Ian Cox
@ian-cox
Jul 07 2015 17:23
The forum runs on Discource http://www.discourse.org/
Ivan Cruz
@shiftsave
Jul 07 2015 17:25
thanks @ian-cox it's the best forum I've ever seen!
Ivan Cruz
@shiftsave
Jul 07 2015 17:40
I am currently working on a Kirby-GULP process that I will be releasing shortly. Biggest thing I need to figure out is how to properly use Kirby with Jade-PHP. Has anyone here used Jade/Jade-PHP for templating?
Ian Cox
@ian-cox
Jul 07 2015 17:51
@shiftsave I’m not sure if the implementation would be similar but I remember bastian playing with Twig as an optional templating engine. https://gist.github.com/bastianallgeier/edf33e468e3c022e4772
Ivan Cruz
@shiftsave
Jul 07 2015 17:52
twig would def make it easier, the problem with Jade-PHP is that to add php in commented items such as img(src="") you need to input the actual php which defeats the purpose of templating
Ian Cox
@ian-cox
Jul 07 2015 18:11
yeah, that sounds dirty. I’m still pretty happy using PHP’s default loops, if’s and includes.
Ivan Cruz
@shiftsave
Jul 07 2015 18:29
yeah I would be ok using one or the other as long as it was consistent but as of now, using Jade I have to use both short form and full-blown php which mkes templates a bit confusing
specially since I want to release it as a gulp workflow, that would def make it a pain point
have you used twig with kirby?
Ian Cox
@ian-cox
Jul 07 2015 18:30
No I haven’t.
Bastian Allgeier
@bastianallgeier
Jul 07 2015 22:13
@groenewege $page->sort() is doing that. Just pass a number.
@shiftsave I'm glad you like the forum. I'm very happy with Discourse as well. I'd wish there would be easier ways to style it, but the real-time features are amazing.
@ian-cox @shiftsave the twig thingy is not working with the current version or the version on the develop branch yet. I'm working on that to simplify creating template engine plugins. My idea is to make it really really simple to add any kind of template engine on top of Kirby.
Ian Cox
@ian-cox
Jul 07 2015 23:18
That would be awesome especially if they could be optional plugins. That's seems like a good way to go.
Gunther Groenewege
@groenewege
Jul 07 2015 23:47
@bastianallgeier I ended up using code from the publish function of the panel - page controller to make sure auto publishing uses the right sort number. https://github.com/groenewege/kirby-auto-publish