editor icon indicating copy to clipboard operation
editor copied to clipboard

Enhancement: URL option for internal page linking

Open mynameisfreedom opened this issue 6 years ago • 7 comments

The main thing currently missing is URL option for internal linking. Only absolute URL is possible, what is, of course, a terrible solution.

screenshot-localhost-2019 08 21-10_57_55

mynameisfreedom avatar Aug 21 '19 09:08 mynameisfreedom

I see that as necessary too. Nice solutions are these:

  1. https://github.com/medienbaecker/kirby-link-field
  2. https://github.com/OblikStudio/kirby-link-field

thomasfahrland avatar Oct 24 '19 14:10 thomasfahrland

I know that the solution is not perfect yet, but it's not true that you can only save absolute URLs. Relative paths are possible as well.

bastianallgeier avatar Oct 24 '19 14:10 bastianallgeier

I was previously using SylvainJule's Kirby Markdown Field which has additional options for linking to other pages on your project. I can't wait for this to happen in the Editor.

luxuryluke avatar Nov 05 '19 18:11 luxuryluke

And maybe option to link to files as well…

texnixe avatar Dec 13 '19 18:12 texnixe

The problems that are constantly in the back of my mind also include persistent page and file linking. I know autoid plugin can/could help, but sometimes native funct is better. Link checking becomes a big issue.

luxuryluke avatar Dec 13 '19 18:12 luxuryluke

I know that the solution is not perfect yet, but it's not true that you can only save absolute URLs. Relative paths are possible as well.

Unfortunately, there is no possibility to link top page from subpage if Kirby install is in the subfolder. Except with absolute URL.

EDIT: Well, pardon me, there is solution. From subpage relative link for top page is: ../toppage

I didn't know this can work for URLs, tested it for fun, and it does. :-)

mynameisfreedom avatar Feb 28 '20 09:02 mynameisfreedom

Adding the possibility to link to an anchor within the page ( hash on <h_n_> for example) would be great too.

Nice to have: Take advantage of the enhancements to add:

  • a target option (or checkbox for "Open in a new window")
  • a rel option (for noopener, noreferrer, nofollow)
  • a class option

hermanch-arhs avatar Jun 08 '20 13:06 hermanch-arhs