Create your own Custom List

Potential lists to add to the existing array

Re: Create your own Custom List

Postby crshortt » Wed Apr 27, 2011 11:17 am

O.K.Thanks John.

Rick
User avatar
crshortt
 
Posts: 63
Joined: Mon Jul 12, 2010 9:05 pm

Re: Create your own Custom List

Postby John Kirk » Wed Apr 27, 2011 11:42 am

The number/text combination in #1 should be taken care of btw - let me know if it isn't working as expected.
User avatar
John Kirk
LoJ Architect
 
Posts: 1580
Joined: Sun Jan 02, 2005 1:04 am
Location: Lakewood, CO

Re: Create your own Custom List

Postby crshortt » Wed Apr 27, 2011 1:47 pm

It appears to work now, with a couple caveats that may be unavoidable. Any row with text becomes left justified. Two different scenarios occur.

If I have a list of peaks that are in numerical sequence and I put the text in front of one or more numbers, that number or those numbers move to the bottom of the list and become arranged alphabetically by the text, but out of sequence numerically. This is on the "sort by 'custom field name' " option on the member page. On the main list, not from the member page, the same rows move to the top of the list, apparently arranged by elevation, then prominence like your default for other lists on the site.

If I put the text after the number, all remains in place as desired numerically, but the line with the text becomes left justified while all the other numbers without text remain right justified. A minor detail that only affects appearance. But if all the numbers could be left justified, it would look nicer. Either way, this option will work for what I hoped to be able to do, at least as far as conveying the desired information goes:)

But even the first scenario could be useful if it would put the rows with text at the bottom on all lists and not at the top. Such as a list of 50 peaks + 10 contenders. One could add text to move "error range" contenders on a list to the bottom of the list, like a footnote, while those with "proven" prominence, elevation, etc. would remain at their proper place on the list.

Here are links to examples so you can see for yourself. I will leave them this way until I know you have seen them, then move all text to after the numbers.

http://listsofjohn.com/PeakStats/Content/customlists.php?lid=287

I can't get the actual link for this list, so you'll have to click Sort By: Rank By Prominence
http://listsofjohn.com/PeakStats/Content/clist.php?lid=287


Thanks,
Rick
User avatar
crshortt
 
Posts: 63
Joined: Mon Jul 12, 2010 9:05 pm

Re: Create your own Custom List

Postby John Kirk » Wed Apr 27, 2011 2:51 pm

Configuring application of the sort field to handle different use cases as it currently exists is too complex.
Desired numeric vs. alpha vs. alphanumeric sorting is going to vary by user/list.

I think either of the following will more broadly address varying individual user requirements:
1) A sort order field (hidden on list displays) indicating the order to return rows in (then type doesn't matter)
or
2) A second custom field (with a sort option and option to make visible vs. not). Here a user can set the field to numeric sort order as above or use for another purpose.
User avatar
John Kirk
LoJ Architect
 
Posts: 1580
Joined: Sun Jan 02, 2005 1:04 am
Location: Lakewood, CO

Re: Create your own Custom List

Postby crshortt » Wed Apr 27, 2011 4:30 pm

I like the second option! There have been times I wished for a second custom field but was hesitant to ask. Seems like that would work wonderfully though and have a lot more flexibility.

Rick
User avatar
crshortt
 
Posts: 63
Joined: Mon Jul 12, 2010 9:05 pm

Re: Create your own Custom List

Postby John Kirk » Wed Apr 27, 2011 6:24 pm

crshortt wrote:I like the second option! There have been times I wished for a second custom field but was hesitant to ask. Seems like that would work wonderfully though and have a lot more flexibility.
Rick


Ok - I'll try to get this done in the next couple weeks - could be sooner.
User avatar
John Kirk
LoJ Architect
 
Posts: 1580
Joined: Sun Jan 02, 2005 1:04 am
Location: Lakewood, CO

Re: Create your own Custom List

Postby John Kirk » Fri Apr 29, 2011 11:54 am

I added a second custom field and unit tested basic functionality, but haven't done super-detailed testing. I'd recommend not mixing numeric and alphanumeric content and split text and integers to separate columns.
Essentially Custom Field 2 functions identically to the first custom field, and one can activate a sort on either custom field 1 or 2. I chose not to enable a hidden option for the field as that has the potential to create confusion on sorted results.

Let me know if something isn't working as expected
User avatar
John Kirk
LoJ Architect
 
Posts: 1580
Joined: Sun Jan 02, 2005 1:04 am
Location: Lakewood, CO

Re: Create your own Custom List

Postby crshortt » Fri Apr 29, 2011 7:57 pm

Awesome! I'd say you beat two weeks rather handily! I will try to check this out before I turn in. If not, I'll do it tomorrow evening.
User avatar
crshortt
 
Posts: 63
Joined: Mon Jul 12, 2010 9:05 pm

Re: Create your own Custom List

Postby crshortt » Tue May 03, 2011 10:28 am

Just added a second field of numbers after an existing text field, using an ascending sort by the second field as the default view. Worked fine.

Rick
User avatar
crshortt
 
Posts: 63
Joined: Mon Jul 12, 2010 9:05 pm

Re: Create your own Custom List

Postby John Kirk » Tue Dec 04, 2012 4:38 pm

I've now added an option to change the visibility of custom fields - turns out I've been finding more cases where I want to hide the ugly numeric sort order column. There was also an issue I corrected with any custom field data containing quotes not appearing in the "edit" mode for custom fields
Code: Select all
value=""text""
rendered blank instead of showing "text" to the browser - not sure if anyone ever noticed this or had a use-case for handling quotes...
User avatar
John Kirk
LoJ Architect
 
Posts: 1580
Joined: Sun Jan 02, 2005 1:04 am
Location: Lakewood, CO

Previous

Return to Lists in the Works

Who is online

Users browsing this forum: No registered users and 1 guest