Skip to content
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

No descendents nor children #6

Open
vlajna95 opened this issue Jan 9, 2021 · 4 comments
Open

No descendents nor children #6

vlajna95 opened this issue Jan 9, 2021 · 4 comments

Comments

@vlajna95
Copy link

vlajna95 commented Jan 9, 2021

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?

@oulenz
Copy link
Collaborator

oulenz commented Jan 19, 2021

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?

@vlajna95
Copy link
Author

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.

@oulenz
Copy link
Collaborator

oulenz commented Feb 21, 2021

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?

@vlajna95
Copy link
Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants