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

Closed
opened 2025-11-02 07:35:07 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @n194 on GitHub (Aug 24, 2021).

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

Originally created by @n194 on GitHub (Aug 24, 2021). ## 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](https://user-images.githubusercontent.com/67550725/128692524-21bc61ec-4f1b-4a20-8972-b792f779160a.png)
GiteaMirror added the good first issue label 2025-11-02 07:35:07 -06:00
Author
Owner

@zeripath commented on GitHub (Aug 24, 2021):

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.

@zeripath commented on GitHub (Aug 24, 2021): 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.
Author
Owner

@n194 commented on GitHub (Aug 24, 2021):

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

@n194 commented on GitHub (Aug 24, 2021): @zeripath how do you open the Wiki editor with a pre-defined page name?
Author
Owner

@zeripath commented on GitHub (Aug 24, 2021):

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

@zeripath commented on GitHub (Aug 24, 2021): ah you want to add that... that would need a change to routers/web/repo/wiki.go:NewWiki() Probably as simple as adding: ```go if ctx.Form("title") != "" { ctx.Data["title"] = ctx.Form("title") } ``` then you'd need to add `?title=...` to the url
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7742