dokuwiki-plugin-publish icon indicating copy to clipboard operation
dokuwiki-plugin-publish copied to clipboard

Discussion: Best way to avoid the 'not current revision' message?

Open Chris--S opened this issue 12 years ago • 6 comments

When the latest version is not approved and non-approved versions (drafts) are hidden to read-only users, DokuWiki will show "this is not the latest revision" message, which isn't particularly helpful.

Does it make sense to request a new event in DokuWiki around that message? TPL_OLDREVISION_ALERT

And a config option in this plugin to hide or replace that message.

Chris--S avatar Feb 20 '13 18:02 Chris--S

I wonder if the plugin could simply overwrite the $lang entry for that message. Or this message in a .txt file?

splitbrain avatar Feb 20 '13 18:02 splitbrain

Its a .txt file "showrev"[1]. I think its perfectly valid to show the message when you are truly looking at an old revision. Its only a problem for a reader viewing the latest approved version when there is a later unapproved rev.

Were you meaning on the fly rewriting of that message? In this case 'showrev' could be moved into the $lang strings, its only a single line. It wouldn't be a bad idea to add an event inside p_locale_xhtml(). I have an idea for a language plugin allow substitution of language strings or locale txt files without impacting on upgrades.

In this case, maybe the neatest solution would be to wrap the p_locale_xhtml('showrev') in a <div class="oldrev_alert"> to allow for css control.

[1] https://github.com/splitbrain/dokuwiki/blob/master/inc/html.php#L243

Chris--S avatar Feb 20 '13 18:02 Chris--S

any idea how to properly remove/hide this message?

Finkregh avatar Nov 17 '14 08:11 Finkregh

Had to add these changes manually - how come they are not committed yet?

mccannjg avatar Apr 05 '16 10:04 mccannjg

Any news on this problem ?

3615pipou avatar Jun 12 '17 22:06 3615pipou

This is still a problem for me.

racquetmaster avatar Feb 04 '21 18:02 racquetmaster