-
Notifications
You must be signed in to change notification settings - Fork 2
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
option to turn off ifauthex <p> tags #15
Comments
Hi! In fact that depends on the PType of the plugin. I wonder whether someone relies actively on the fact that it creates a paragraph every time. I would imagine this is not the case, but I will experiment with the |
Thanks for the update. Changing a default behaviour is maybe going to do the wrong thing for some people, i.e. if someone has a bunch of ifauthex statements in a page and you were relying on the So, probably stuck with it as the default for the immediate future. Since a lot of dokuwikis also support things like markdown / alternative markup, possibly removing the tags wouldn't end well if ifauth is embedded in markdown, for example. If there is a config option or parameter to change the behaviour to |
Unfortunately I do not think it's possible. I'm not a DW expert, but I believe that the ptype of the plugin is assumed to be constant, based on the fact that there is no indication of when it is queried. It looks like we would need to have two different syntax plugin implementations for that.
On the other hand, I'd prefer to have both inline- and block-based behavior rather than not, and to have one tag and one syntax to support rather than two (see above). I need to test how the
In the very immediate future, yes, mainly because I will be accumulating some more changes before doing a release. However, if that is the behavior you seek, why not installing a modified version of the plugin? It's (theoretically) a single-line change. If you are interested I can give you more details on how to do that. |
Thanks for the response. I appreciate it. AIUI, it's line 70:
Change to So - DW calls that function to get the PType. Looks like it's possible to have plugins with multiple components: https://www.dokuwiki.org/devel:plugin_file_structure Maybe the answer is to do something like:
etc. So that it can have more than one syntax tag and reuse the common code between the two. I will experiment if I get time. (Though my php foo is quite basic!.) |
Hello,
Really like ifauthex - it has allowed me to do what I need and build some navigation etc. based on groups.
I would like to use it to show or hide items in a top slot navigation menu (bootstrap/combostrap template), but
ifauthex seems to wrap output in
<p> </p>
tags, which breaks the layout of the top navigation bar.Is it possible to have an option to suppress this?
Thanks.!
The text was updated successfully, but these errors were encountered: