Skip to content

Add UI hints to create a Wiki sidebar and footer #16800

@n194

Description

@n194
Contributor

Description

Mentioned in #16719 and lost in #16655, this issue is about adding UI hints on the Wiki from which a user with edit access can quickly create a sidebar or footer.

Screenshot from GitHub

wiki-add-sidebar-footer

Activity

zeripath

zeripath commented on Aug 24, 2021

@zeripath
Contributor

This would be a simple change to templates/repo/wiki/view.tmpl around line 63 + change to options/locale/locale_en-US.ini for localisation.

n194

n194 commented on Aug 24, 2021

@n194
ContributorAuthor

@zeripath how do you open the Wiki editor with a pre-defined page name?

zeripath

zeripath commented on Aug 24, 2021

@zeripath
Contributor

ah you want to add that...

that would need a change to routers/web/repo/wiki.go:NewWiki()

Probably as simple as adding:

if ctx.Form("title") != "" {
  ctx.Data["title"] = ctx.Form("title")
}

then you'd need to add ?title=... to the url

locked and limited conversation to collaborators on Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @zeripath@n194

      Issue actions

        Add UI hints to create a Wiki sidebar and footer · Issue #16800 · go-gitea/gitea