Fullscreen
Loading...
 
Skip to main content

File Gallery backlinks are a dysfunctional mess

Status
Closed
Subject
File Gallery backlinks are a dysfunctional mess
Version
10.x
11.x
9.x
Category
  • Usability
Feature
Backlinks
File Gallery (elFinder or standard UI)
Resolution status
Fixed or Solved
Submitted by
David Carter
Lastmod by
Ushindi Gedeon
Rating
(0)
Description

I want to use backlinks in File Gallery to show me what wiki pages reference the files. This is how I can identify orphaned files. However, this function is so broken that it is unreliable.

What I would expect from this feature is the following behaviors:

  1. Each file referenced in a wiki page has a single backlink to that page recorded in the File Gallery that contains the file
  2. Backlinks to wiki pages are uniquely indexed, so that even if there are numerous references to the same file on a page, there is only one backlink to that page shown in the File Gallery, rather than multiple backlinks to the same page
  3. Removing a reference to a file from a page will remove the backlink to that page from the file in the File Gallery
  4. Deleting a wiki page will delete all backlinks to that page in the File Gallery


The behaviors I have been able to duplicate in the demo wiki (http://demo.tiki.org/11x/tiki-list_file_gallery.php?galleryId=6Question) are as follows:

  1. Linking to a file in a wiki page will create a row in the tiki_file_backlinks table for that page in the File Gallery every time you save the page, even if there is already a row for that page
  2. If you edit the page and then save it, the backlinks to the referenced files are sometimes incremented, and sometimes not
  3. Removing the link to a file in a wiki page and then saving it does not remove the backlink in the File Gallery to that page
  4. Completely removing a page from the wiki that is referenced by backlinks in the File Gallery will not remove those backlinks, but will instead leave orphaned backlinks to non-existent pages
  5. There is no reindex or cleanup function built into Tiki for File Gallery backlinks, and no way to manually fix or remove bad backlinks (other than directly editing the database tables)
Solution
Workaround
Importance
6
Easy to solve?
3
Priority
18
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4608
Created
Friday 26 July, 2013 20:49:27 UTC
by David Carter
LastModif
Sunday 05 July, 2026 11:55:47 UTC


Show PHP error messages