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

Need access to the parent Page #1

Open
thany opened this issue Mar 13, 2014 · 4 comments
Open

Need access to the parent Page #1

thany opened this issue Mar 13, 2014 · 4 comments

Comments

@thany
Copy link

thany commented Mar 13, 2014

To display a list of menu items that are siblings to the current page, one needs access to the parent page in order to display its children... I don't see that that's possible current, so can this please be added?

@ahti
Copy link
Owner

ahti commented Mar 16, 2014

I am not sure I understand what you are referring to. The parent lis of the current page already get the current-parent class.

Or do you want to display only the siblings of the current page and not their common parents etc.?

@thany
Copy link
Author

thany commented Mar 17, 2014

Exactly, I'm after the siblings. So I'll need the parent first and then iterate over its children.

Maybe there's another way to approach this problem, but I'm not seeing it ATM...

@ahti
Copy link
Owner

ahti commented Mar 23, 2014

Iterate sounds like you are doing something programatically (javascript) rather than in css?

If so, you can already select the first parent of the current page via the :has pseudo-selector.

@thany
Copy link
Author

thany commented Mar 24, 2014

Iterate in the template.

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