Skip to content

Bring single page title in line with other DW practice#223

Open
andreasferber wants to merge 1 commit into
lpaulsen93:masterfrom
andreasferber:pagetitle
Open

Bring single page title in line with other DW practice#223
andreasferber wants to merge 1 commit into
lpaulsen93:masterfrom
andreasferber:pagetitle

Conversation

@andreasferber

Copy link
Copy Markdown
Contributor

When exporting a single page, the ODT plugin uses the page ID as the title of the generated ODT document. This is contrary to general Dokuwiki practice, which uses the first page heading, or (in the absence of that) the page name without the namespace as the page title.
This patch recitifies that by generating the title in a way more consistent with for example many navigation plugins.

Generally, in Dokuwiki either the first page heading or (in the absence
of that) the page name without the namespace is used as the page title.

@lpaulsen93 lpaulsen93 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the default should be the page ID and the decision to use the first heading should be based on the config. E.g. see function tpl_pagetitle() in file inc/template.php.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants