cosmocode / simplenavi

Create a simple navigation tree based on DokuWiki namespaces
http://www.dokuwiki.org/plugin:simplenavi
GNU General Public License v2.0
14 stars 11 forks source link

Separate "Sort by and show the title instead of the ID" #38

Open GoranKocjancic opened 1 year ago

GoranKocjancic commented 1 year ago

Please separate the "sort and show the title instead of the ID" into two options. This way I can use the ID to sort and can display the title instead ID.

splitbrain commented 1 year ago

Why would you want that? Seems like it would cause confusion for your users?

GoranKocjancic commented 1 year ago

I want to sort the pages independently of the titles. I put numbers at the beginning of the page ID to determine the order, but I want page titles without numbers. I think that with one additional setting, the functionality could be significantly more flexible.

Purzelkater commented 9 months ago

I have the same issue after update. I have used the titles to shown as links but the ID to sort.

Here is an example with "ID: title" (ID is the filename and title is the first headline on the file):

01: Table of contents
02: Foreword
03: Chapter 1
04: Chapter 2
05: Attachment

Old style sorting by IDs but showing titles (before the update):

Table of contents
Foreword
Chapter 1
Chapter 2
Attachment

It was perfect. But now I got this:

Attachment
Chapter 1
Chapter 2
Foreword
Table of contents

Show me the book where the Attachment comes at first and the table of contents it's on the end. Sorting by just the titles looks more confusing to me. Using "usetitle" is no option, because then I get:

01
02
03
04
05
sludgeFudge commented 1 month ago

I was also wondering about this? Since dokuwiki can be read like a book, I'd like to sort certain pages according to id and have my Titles displayed with different names instead of part 1, part 2, etc. Is there an option to have this plugin be dependant on the "useHeading" option?

For those who have the nspages plugin, you can do this in the meantime:

<nspages ..:..: -tree -r -exclude:start -sortId -subns -pagesInNs -h1 -textNs="">

Replace ..;..: with whatever namespace you want.

sludgeFudge commented 3 weeks ago

Sorry, just found out about the navi plugin. It does manual sorting just fine.