The biggest thing I like about Kirby is the Custom Post Types functionality without a plugin. And to call it onto your template you just do something like this `< ?php echo $page->cpt-name ?>`.
To create those custom post types, it’s as easy as writing text. http://cloud.chrisburton.me/Lury
So for the custom post type ‘description’, I would write this in my template:
`< ?php echo $page->description ?>`
I’ve been reading through the tutorials and what I can’t quite figure out is what is the advantage of Kirby to just a static HTML site you just update yourself? It appears as though you work through an FTP program to manage files and images so it seems like the same effort as a static site.
Well, for one, Kirby is a dynamic CMS just like WordPress but without all the bulk core structure that isn’t necessary. Think of it as an extreme anorexic WordPress structure. You also don’t need a database to handle your content like WordPress. For me, it has been able to do absolutely everything that WordPress can do but much much simpler. WordPress isn’t that easy when you want to do something specific. You either have to download a plugin that offers more than what you want or you have to build it yourself.
You can use FTP or the Panel (what you see in those screenshots above). There is a bonus. You can install Dropbox onto your server so your files sync. This allows you to make changes in Dropbox and when those changes are made, it automatically syncs to your server. So basically it doubles as an FTP and a backup system.
@ chrisburton I think you’ll have to help me out here.. once again. :-/ I’ve been reading these kirby docs and just not getting it. Mainly around the templates ect. My current project is not in wordpress at the moment, but broken up into section ie. doctype.php, header.php, footer.php then in my index.php imported like so < ?php include("parts/doctype.php"); ?>. I then use different scss files imported into my “global.scss” file.
Thanks for the help here.
@wragen22 If you want to sign into GChat, I can help you quicker. Just message me and i’ll hear the alert. If you’re busy, let me know and I’ll write it up for you.
Your structure makes a little sense. Here is what I do for Kirby.
And for my menu it looks like this:
I’ve just spent the last few hours playing with Kirby and it is fucking amazing (pardon my French). In that time I’ve converted my wordpress blog’s templates to Kirby’s framework, including appropriate snippets and two types of blog post template, set up a blog structure (two in fact, since I used to have two blog streams on wordpress too) and set up the sidebar using markdown.
Seriously, I reckon I could launch it now and have a fully functioning site.
I have never (NEVER) had a CMS that was so intuitive to understand. I’m looking forward to playing with extending functionality via plugins!
To contribute to the thread ;-)…
@wragen22 – where you currently use php includes, consider placing those files into Kirby’s snippets directory. You can then call them in your templates using:
< ?php snippet('file') ?>
It still keeps those re-usable elements separate and in one place, while not depending on a particular path.
The way I would view templates is this: The templates are what get called to fit your content. The name of the text files in your content directory determine the template used. If you have a template named after a text file, then that is called, otherwise the default template is used.
You have a folder called home with a file called home.txt inside it (probably). In your site/templates folder you have a template file called default.php. If you have no other template files, that will be called when you visit the homepage. If you create a copy of default.php and call it home.php, that will be called instead (but only for files called home.txt). Try it and edit home.php.
If you haven’t used templates of any sort before, it might take a while to get used to what you’re doing. However, I really wish I’d learnt those principles on a CMS like this rather than WordPress, and I would urge you to persevere.
I checked out Kirby a few weeks back after @chrisburton mentioned it in another discussion. Looks neat. Straightforward, simple, I bet a lot of people will find it perfect. Seems it’s a good balance for people who don’t need a dead-simple “end user” interface, have some coding ability, and want to be able to easily “tweak” stuff.
I was talking with the author about a bug under php 5.4 where the markdown parser hangs. He said he figured out the problem and is fixin’ it. Until then, I haven’t been getting too deep into it, but I’ve been poking around and it’s nice.
You must be logged in to reply to this topic.