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

Plugin does not always display data correctly #262

Open
srossross opened this issue Aug 7, 2014 · 2 comments
Open

Plugin does not always display data correctly #262

srossross opened this issue Aug 7, 2014 · 2 comments

Comments

@srossross
Copy link

I have defined a plugin:

class MyPlugin(Plugin):
    def __init__(self, site):
        self.site = site
    def node_complete(self, node):
        node.menue_items = generate_menue(node.resrouces)

Which iterates over node.resources and assignes a custom node.menue_items.

I am experiencing a lot of difficulties when generating a menue from this object. Hyde seems to intermittently drop the node.menue_items in the template.

Do you have any suggestions?

@navilan
Copy link
Member

navilan commented Aug 8, 2014

Hello,

If you are using this plugin to generate a menu, then you should add the code to the begin_node event.

If you still have issues after that, please do add the snippet from the template as well.

@llonchj
Copy link
Contributor

llonchj commented May 25, 2015

@srossross, do you have an update on this issue?

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

3 participants