-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
Consider making GetMatch etc. smarter for bundled resources #4583
Comments
/cc @kaushalmodi @regisphilibert and gang |
I think So instead of having 2 ways of doing the same thing, the |
It is obviously there to stay. But from a shortcode, there is currently no simple way to say "give me the resources in this bundle". I cannot always look in |
I tend to agree with @kaushalmodi here. By leaving the resources method on the .Parent, which is intuitively identified as the Page Bundle (mother of all resources), it avoids a complexification of the doc. Those two informations are not intuitive and will have to be detailed in the doc.
The current state is very intuitive and doesn't need any explanation. Proof is that someone readily brought up #4582 |
You mean |
It works fine, but the shortcode then needs to know where to look. And that is currently impossible. From |
Yes I get it now. Even if we were to add a special test function for that we shouldn't have to add the following for every shortcode needing resources.
So yes I agree this is needed, thanks for clarifying. |
Makes sense. Then we need to make sure that the documentation of |
I wanted to write my comment in #4582 but as it has been closed. But if I understand correctly to get a parent section we now need to use (from a page resource) We will also have to update Page Variable's .Parent definition:
I'd rather we introduced a new dedicated Page Variable called something like |
What |
I see, as long as a given page is included in another's page For a page resource though, the logic is a bit different, as I think it is a bit confusing that a page resource follows the same "family line" as conventional pages. But I cannot come up with any problematic scenario. So I'll concede it's just a matter of updating the doc :) |
Maybe, but I think it would be even more confusing if we invented |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
See #4582
Which made this work:
However, it would be nice if we could just do this in both cases:
The bundled page does not have resources on its own and if it ever will, we can just expand the definition of
GetMatch
./cc @onedrawingperday
The text was updated successfully, but these errors were encountered: