-
Notifications
You must be signed in to change notification settings - Fork 102
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
Cheat Sheet: Mention Definition Lists only or also good ol' table for references? #57
Comments
Josef, I added 2 links to your post. I grepped the TypoScript reference and the only page using the definition list (with dl-parameters) is FLUIDTEMPLATE. The second example (definition list) does convey more information: It includes default values and if the parameter is optional. I agree, we should agree on one best practice and remove the other from "Writing Documentation". |
To summarize: There are several directives in use for TypoScript reference:
|
https://docs.typo3.org/m/typo3/docs-how-to-document/master/en-us/WritingReST/DefinitionLists.html |
.. container::ts-properties I saw this in the Example Extension Manual:
|
https://docs.typo3.org/m/typo3/reference-tca/master/en-us/Ctrl/Index.html#label-alt-force That one was preferred by Lolli, and therefore everything was migrated to this syntax on all manuals he reworked. |
My take on this is:
My conclusion and advice: |
To sum it up: I am completely confused now. Sorry, Martin. You explain things well. I am undecided about what to do. Discussing about things like this takes away time that is needed desperately for other things. On the other hand, using various constructs inconsistently makes things more difficult for contributors. People are still struggling with reST. If they come across new things on every corner, it doesn't make it easier. If we can decide on a smal subset of directives and ways to do things we can remove the unwanted directives from "Writing Documentation" and the manuals. Makes it easier for everyone. So, is this really a problem? People usually extend what is already there. If things are done consistently in one manual, that is already a good thing. I think it would still be preferable to dumb things down (if that can be done without getting rid of useful features) and use a smaller subset. Use one thing consistently. Also, if we can't even decide on one convention to do this or on how to indent ... Current status quo:
|
I think the proposal by Martin (in previous comment) is very good: It is simpler to write. You use generic markup. You don't have to add additional aspects or tables which are more tedious to write. How this is styled, can be decided in the theme, which is cleaner. I created a new issue in the theme repo to address this: TYPO3-Documentation/sphinx_typo3_theme#48 |
From team meeting today: #57 (comment) Proposal is to use confval directive. Please ignore previous comment.
Example
|
I tried this out with the Data Processors I am currently working on. The syntax is so much more clear and easy to adapt. I really love it!! ` :Required: false If the condition is not met the data is not processed ` if If the condition is not met the data is not processed |
One other feature I am missing is, how do we create an automatic overview of properties like here:
doesn't seem to work with the directives: |
Funfact (me playing stupid): @linawolf Did you know, that just by using the Just to mention: It is even possible to not only have 'confval' meaning 'configuration value' but something else like 'tsconfval' with meaning 'TypoScript item' additonally, because the 'confval' directive is defined in our |
@marble @linawolf Looking at this again after some time. Would you be so kind as to summarize the status quo now? Has this been resolved and decided or not? What is the syntax that is to be used now and can you link to example pages and add screenshots? Has that been resolved, what Lina wrote in #57 (comment)
What I find important is that we agree on and focus on what we want to achieve:
|
The confvals are documented in the reference |
Yesterday I reviewed https://docs.typo3.org/typo3cms/HowToDocument/WritingReST/CheatSheet.html and I was thinking about the "table markup" which is used in many core reference manual sections like https://docs.typo3.org/typo3cms/TyposcriptReference/ContentObjects/CoaAndCoaInt/Index.html
I like the result of this approach. If you have many options like in TypoScript it is easier for me to scan those options until you find the right one. (my personal opinion!)
Using Definition Lists "nicely-styled"
is a bit harder to consume (for me). It offers more possibilities.
My question are
.. ### BEGIN~OF~TABLE ###
also in this documentation?The text was updated successfully, but these errors were encountered: