-
-
Notifications
You must be signed in to change notification settings - Fork 615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help ! Completely lost for theming with categories #438
Comments
There were some breaking changes in Pico 2.0 towards theming. Please refer to the current WIP version of Pico's upgrade docs at http://phrozenbyte.github.io/Pico/in-depth/upgrade-pico-20/ to see what has changed and how to make your theme compatible with Pico 2.0. Furthermore it seems that you're using the |
It's because it's the previous version of the code but I've changed my yaml content header because thought the "category" meta was from the core based on #414... :-/ Initially, here what a supcategory index.md:
And here is the category meta index.md:
My theme on v1 renders that : http://momh.fr/parcours/M1 But, with v2, it doesn't show anything but the title. |
So, I'm trying to use in my |
You are not required to use Pico's new page tree system if you had a working solution before. Your old solution should work with Pico 2.0 without any changes necessary. #414 is a completely different approach, you can't mix this solution with your solution. If you really want to use Pico's page tree system, refer to the current WIP version of Pico's page tree documentation. The |
The thing is: what worked doesn't work anymore... I was using the AdvancedMeta plugin and declared some meta this way:
|
Unfortunately I can't help you if you just give me "it doesn't work anymore" 😉 The plugin with this config shouldn't make any difference here. |
Of course :-) It was more kind of a question: do I have to keep with the version 2 of Pico the AdvancedMeta plugin, or is there a way to let it aside ? But, of course, I wasn't clear --" Thanks :-))) |
There were some changes regarding the handling of meta headers that weren't registered by a plugin. See the 5th paragraph of http://phrozenbyte.github.io/Pico/in-depth/upgrade-pico-20/#amazing-new-features-for-theme-developers. You should access the meta value "Category" using The Theme developers don't have to register meta values. You just have to make sure that you use the exact same keys, i.e. if your theme uses |
Ok... But in my
Of course, it doesn't produce any result. Any idea ? Thanks :-) |
Try debugging which values the variables |
Thanks ! It seems that the But:
Thanks again ! |
What does |
Here it is:
It seems that the version doesn't show anything, isn't it ? |
Yes, that's because this is no Pico 2.0 installation 😉 You said that you were trying to "move from version 1 to the latest Pico's development", but you're still using Pico 1.0. You can download the latest beta of Pico 2.0 here: https://github.com/picocms/Pico/releases |
Hum... I don't understand... |
You've cloned the You can download the latest beta of Pico 2.0 here: https://github.com/picocms/Pico/releases. Pico's pre-bundled release is basically just a Composer installation packed in a ZIP archive. There's virtually no difference between a pre-bundled release and a Composer installation, both use |
Hum... --' Sorry... So, I'm now running the latest beta of version 2. in my twig category template:
And here the result:
And here is the meta header of my content file:
I can't give you the result of the |
That's how it is supposed to work.
The reason why you can access the unregistered meta header |
I have this parameter set on default in my
|
Sorry ! too fast reading |
Made it working ! ... --' |
Hi,
It's been a while but I'm trying to move from version 1 to the latest Pico's development.
But I can't make my theme working :-(
I have a three levels folder system:
I've read #412 and #414 but I can't make anything work :-(
My old theme is here and https://github.com/bricebou/pico_momh
Here are some questions:
Thanks in advance !
The text was updated successfully, but these errors were encountered: