moin icon indicating copy to clipboard operation
moin copied to clipboard

Setting a global default markup

Open sebix opened this issue 1 year ago • 4 comments

When creating a new page, the user sees a long page of available markup languages: image For advanced users, this can be very handy. Beginners and users with average technical backgrounds need help figuring out what to do here. The usability can be improved by defining a preferred markup language system-wide. This is also very handy to enhance consistency in some setups.

sebix avatar Feb 09 '24 12:02 sebix

There is also issue #1500 related to limiting the available content_types. Wiki administrators may prefer to restrict the markup language to a specific one, as users are trained to use that particular language.

The solution is still under development and is not documented. You can comment out the following line if you want to test it:

https://github.com/moinwiki/moin/blob/7792aa9b03d215bf323be0f5d3ae649f6e659f07/src/moin/items/content.py#L82

The result looks like this:

MoinMoin_NewItem_2024-02-09

UlrichB22 avatar Feb 09 '24 13:02 UlrichB22

This is a nice feature, although not configurable in the settings, as far as I can see. Could we move ENABLED_CONTENT_TYPES to wikiconfig.py?

sebix avatar Feb 09 '24 14:02 sebix

This dialogue is NOT about markup, but about content-type (which includes text, image, video, audio, ...).

So while the list could be shorter or differently worded, it must include all sorts of CTs, not just text markups. Not offering something the user wants might be a bigger problem than offering some additional stuff the user does not want.

ThomasWaldmann avatar Feb 09 '24 16:02 ThomasWaldmann

This dialogue is NOT about markup, but about content-type (which includes text, image, video, audio, ...).

Yes, it is related to the issued I described, but not a 100% solution.

So while the list could be shorter or differently worded, it must include all sorts of CTs, not just text markups. Not offering something the user wants might be a bigger problem than offering some additional stuff the user does not want.

yes, it depends on the use case and audience

sebix avatar Feb 09 '24 16:02 sebix