I’m writing from Paris (France). I’ve just bought a licence and the fotograf theme
It’s a few € or $:scream:
I have very little skills about CSS and html, so I thought that it was very easy to customize… But it’s not really, isn’t ?
For example : how can I add some templates ?
I’ve got very few templates coming from the theme I’ve just bought. that’s nice but not enough. I’ve added some others coming from a free theme but the new template don’t show up. I can’t choose them…
Another big disappointement I’ve tried to activate the multilanguage but nothing happens. My panel does not show an english or french possibility…
If someone could lead me on the right tracks, i’ll be happy
In general, I suggest you read the Kirby documentation, it’s a bit much to answer such a general question here in the forum.
Basically, a template is called automatically depending on the file name of the text files in your content folder, e.g. if your text file is test.txt, Kirby will look for a test.php template. If the template does not exist, Kirby will fall back to the default.php template.
As regards the multi-lang feature, it is not enough to enable the languages in your config.php. You also need to rename your text files for each language, e.g. test.en.txt for English, test.fr.txt for French, etc. You also have to remove all text files without any language code extension, otherwise it will not work. That information is still missing from the docs, but we are working on it.
I know it’s general questions and I’ve tried first to read the docs.
But I’m a bit upset because I’ve read everywhere that we don’t need coding skills to play with Kirby and I’m discovering that’s not true.
Because I know I have limited skills (let’s say I can customize with css that’s all), I’ve paid an extra $35 to start with an adapted theme which is also very limited…
For example : in my menu I just want to add subsection and I can’t do this quickly through the panel… That’s why I’m disappointed…
In fact, if you happen to buy a theme that exactly fits your needs or if the theme developer made it so that it is easily customizable, then that might be true.
If not and you want to adapt lots of stuff, then you do need coding skills, i.e. HTML, CSS and PHP.
We didn’t want to argue. Just curious from where this impression came from. If you are not happy with the theme you bought, I’d contact the theme developer.
This is the place where you need to add your template names. site/blueprints/site.php defines the allowed templates for the root directory. If you want to use your templates as children of other templates, you have to change this setting in the corresponding blueprint file, too.
If you don’t want any restrictions at all and use all templates everywhere, simply change the line (in every blueprint file) to this:
pages: true
Maybe this is a starting point for you. Don’t hesitate to ask, if you have more questions. There are a lot of nice people here around who will try to help you with your Kirby adventure.
You’re right, sorry. I was in a rush and didn’t try to understand. So I will try with my poor coding skills. Sorry for you, I will haunt that forum.
Thank you so much flokosiol for the[quote=“flokosiol, post:10, topic:3316”]
starting point
[/quote]
I’ve followed what you’ve mentionned but I’m still in the Darkness.
Basically, I would like to start with the fotograf theme I’ve bought and add some functionnality (a menu with subsection and slideshow for examples) from an other theme.
So I’ve changed the pages = true as flokosiol said
Then, I’ve added “folder.php” . The code is quite simple :
If you want to make changes to the menu: There is probably a snippet in the snippets folder called “menu.php” or similar that contains the menu. So if you want to make changes in the menu, that is probably the file you want to look into.
A typical menu in Kirby will look like this:
<?php
// get main menu items, i.e. all visible page (folders with a prepended number)
$items = $pages->visible();
// check if there are any items
if($items->count() > 0):
?>
<nav>
<ul>
//loop through the items
<?php foreach($items as $item): ?>
<li><a<?php ecco($item->isOpen(), ' class="active"') ?> href="<?php echo $item->url() ?>"><?php echo html($item->title()) ?></a></li>
<?php endforeach ?>
</ul>
</nav>
<?php endif ?>
For more information on how to create menus with submenus, check out this blog post
Without knowing the way the theme is coded, though, I can’t say for sure.