
Topic `display_order`
New model control to set topic ordering in the workbook
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
um I can do a quick sort of a PSA demo um so week and a half ago uh we released topic files so keeping our um to organizing our topic code into files as opposed to oh I don't think this is the one you guys want uh as opposed to in the model file and uh previously when they were in the model file we were able to let's see which window do I want I guess we just screen too uh the display order in the workbook UI picker uh field picker for topics was based on whatever order the topics were in in the model file well when I move them into their own files uh the ability to explicitly declare the uh the display order
went away and I I maintained the old order with the idea that we wouldn't break existing people who had explicitly ordered stuff um and I thought that would buy me a few weeks uh to to put in this feature but we heard some folks who were a little disappointed that they were added a new topic and they weren't able to put it in the right order and and uh so kind of pulled forward some work to to add a new uh property to topics called display order we already have display order on fields and Views but I've now added it to topics uh so for the demo I've just got us in uh the history view so you can see what I did to this
model to accomplish this new display order uh and I'm currently actually spanning um the entire Branch history for this so you can see my whole Branch history uh so I've added a display order to a few of these topics and I've also added a group label and these are new extend topics just to give us a couple extra topics to work with but um if we now jump over to the workbook UI you can see that the topics in this uh in the Picker are following the display order defined there and felt like it was worth sharing this because uh there's a little bit of nuance to it so if a topic is in a group label it's in a topic Group by a group
label then that group groups always get sorted to the top and that the group gets the display order the lowest display order of any Topic in its in its group uh and then the other thing to show here is that um if there's no display order display orders always supersede no display order and then we fall back to alphabetic so if I come into say here and we look at uh I've given this guy a display order of 21 and this guy display order of 20 so we're going to see the order items topic before the extends order items Topic in here uh even though the label alphabetically it would would be the other way around in this case I actually uh didn't give a
this one's got a display order uh and it's actually a lower display order than any of the the display orders in these topic groups but because it's not in a group it's sorted after but it gets the highest precedence and then we fall back to alphabetic so I just wanted to kind of give a quick walk through of the new display order parameter for topics and kind of the Nuance behind how it works in conjunction with alphabetic sorting and uh grouping and what have you