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
filter on style (or: all options/fields) #169
Comments
Mhh, I think this is already possible by using Something like this should work (untested)
This should give you access to every option. But yes, it's totally undocumented. |
This sounds oke, BUT: It does not work I got the following error As it is undocumented, is kind of hard to see which version I should use. But I have Thanks again |
Tested it with current version and it is working as expected. Used this code for tests: .. needtable::
:filter: style == "red_border"
.. needtable::
:filter: "red_border" in style Both But You can see all available "vars" for a filter string by using the
|
Currently a filter as
"red_border" in style
is not possible, as only a few "variables" (see https://sphinxcontrib-needs.readthedocs.io/en/latest/filter.html#filter-string) exist.My request is to add "style" to that list.
Or better to add ALL options as variable -- as I can't see why some are more useful as others.
Suggested syntax:
option.$NAME
(or:field.$NAME
) where $NAME is any option/field that is set in a directiveThanks
BTW, I know, it is possible to add it myself, but this seams very generic
The text was updated successfully, but these errors were encountered: