Page manager project
pieterh wrote on 16 Sep 2009 17:28
I'm going to make a page manager that somehow combines the best of Erich's file manager and Gerdami's plain theme list. My goals:
- a single page that can be trivially included in any site (aimed to become a CSI / cross-site include)
- full navigation via content:
- select a category, show pages in that category
- select a user, show pages created by that user
- select a date, show pages created on that date
- 1-click edit, rename, delete of pages
- view trash and empty trash with one click + confirmation
- show preview of page via hover over page title
- show history of page via hover over revision count
- click page title to get noredirect page content
- sort by date, page size, creator, ascending / descending
A lot of this needs extensions to ListPages, and I think when we're done we'll have most of the new ListPages done.
Comments: 16
page revision: 2, last edited: 27 Sep 2009 07:54
So, does this mean that the "delete" button for pages will actually rename them to deleted:original-page-name, and then they can be deleted completely via a separate option?
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
That's my idea. 1-click delete (move to deleted:) and then trash collection.
Portfolio
Hi folks, I've been building a proof-of-concept of the page manager on this site (you may have seen the edit notifications). It's at system:page-manager.
This still lacks actions on pages, I'll add those later.
My intention is to include this in all Iron Giant sites using a CSI. There are still many aspects that don't work properly but the structures are in place. I've used Gerdami's technique of including the table header in prependLine; this could eventually be replaced with a header block in the ListPages body.
Feel free to copy/hack that page.
Portfolio
The improvements to ListPages has opened up lots of possibilities. One very very minor thing to look at: the up and down arrows just need to be consistent, perhaps with the up arrow on the left and the down on the right. At the moment it varies.
Really good stuff Pieter and very useful.
Rob
Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.
The sorting arrows are a conundrum. I've tried various styles. The various columns have different natural sorts: for names, alphabetically, for dates and numbers, descending. Ideally just clicking on the name would reverse the sort but that won't work. I'll try a single down-arrow to mean 'reverse' and make the name clickable to mean 'natural sort order'.
Portfolio
It's certainly not a crucial thing or something you need to spend much time on, merely something I'd noticed. You should stick with what works best. By the way, I really like the styling of the table.
Rob
Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.
I just had a chance to look closely at this project. This is really cool, Pieter!
My 2 cents on the sorting thing: I'd prefer to see the sorting link removed from the column heading text and link to ▼/▲ to indicate descending/ascending. It seems a bit odd to click a down arrow on the date, size and talk columns to sort ascending.
As Rob says, it's not crucial and is a minor quibble.
Did I mention that I think this is really, really, cool! ;)
-Ed
Community Admin
Glad you like it: but it's really just a mix of what Gerdami did with themes, and Erich did with his file manager package. It's really great that we're able to mix and share ideas like this.
I've tried so many thing with the sorting, including up/down arrows. They felt too heavy. What I really need is a symbol for "reversed", so there's a natural order, and the opposite, whatever direction those are.
There's going to have to be a bunch more changes to ListPages before it works properly. I'm treating this as a prototype for other types of manager (file manager, member manager, etc.) that we can make in user space the same way once we get ListFiles, ListMembers, and so on.
Portfolio
Could you post the code here, enable view source or allow the page to be edited by members please. I'm not going to change anything, I just wanted to look at the syntax. Thanks.
Rob
Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.
You can join this forum as a member (system:join and password). I'll enable source viewing too, that should be standard on system: pages.
Portfolio
I was already a member but as you'd got the options switched off there was no way for anyone except you and Shane to see the source syntax. Thanks for enabling that.
Rob
Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.
I've promoted all the blackbelts on the forum to admins.
Portfolio
Thankyou!
Thanks Pieter.
Rob
Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.
A small issue. "created_by" is truncating the username for those of us with a space in our name. To see what I mean, hover over Ed, James or my name and see the link generated. It's something like "/created_by/Ed", which does not filter on the user's rows if you click on it - there are no results displayed. The name is displayed weirdly in the table column also.
@Sue, yes, this is what prompted me to write http://blog.wikidot.com/design:14. There is no way to do selection on user names with spaces, until we get a fixed link grammar.
There are other things that don't work, e.g. "Mine" assumes a %%user%% variable we don't have, yet.
Portfolio