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.