pelican-plugins / more-categories

Enables nested categories and multiple categories per article

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No descendents nor children

vlajna95 opened this issue · comments

I'm trying to create a hierarchical menu with all the categories. However, whatever I do, I can't access the children and descendents of my categories. The ancestors are there, but the other two simply don't appear. I've set the PATH_METADATA to use the folders for category management.

I have this folder structure:

  • University
    • Languages
      • Spanish
      • Romanian
    • Cultures
      • Spain
        • Andalusia
        • Castilla La Mancha
        • Galicia
        • Navarra
      • Mexico
        • Jalisco
          • Guadalajara
          • Tequila
      • Romania
        • Oltenia
        • Muntenia
        • Dobrogea

Can somebody give me an example of displaying all those categories in a template?

Hi, I had to reinstall my system, so I am working on getting everything working again, to see whether the plugin works with the newest version of Pelican on my own site.

In the meantime, could you tell me what operating system you are using, what version of Pelican you are running, and whether there were any error messages that mention the more-categories plugin?

Hello,
Please sorry for the late answer. Somehow I didn't receive a notification about your comment.
I tried it both on Windows and Debian, with Pelican 4.5.4 and no error messages.

Hi again, the plugin is working on my end. I have created an example website in the example directory of this repo. Could you try to generate that and tell me whether that works with your installation?

Hello!

After the death of my old PC the last February, I completely forgot to come back to this issue. Until now, when I'm working on my Pelican project again.

Well, I must say now everything works fine. But I have a question related to this topic.

Can somebody give an example of a recursive function which would otput a hierarchical, nested menu of all categories? This could be a template tag, ideally. So, it should mirror the folder structure from my first post here. I tried to do it on my own, but all my intents failed (totally or partially).