Possible mixing of page based and hierarchical structure in watchkit - watchkit

The Apple Watch programming guide points that you can not mix page based views and hierarchical structure, but I am not sure if my navigation scheme would fall in this mixing.
The structure I am trying to accomplish is an initial page based navigation. Then, once you tap a page, you navigate into another sub page based navigation.
The structure is shown here:

You are correct that you're not allowed to mix page-based and hierarchical view structures in WatchKit, unless you present the second style modally.
So, in your case, you'd want to use a modal segue or call presentControllerWithNames:contexts: on WKInterfaceController from 1 to present 1a, 1b, and 1c. You'd do the same thing from 2 to 2a, 2b, and 2c.
The reason you can't use a push (hierarchical) segue from 1 to 1a is because the page-based transition from 1 to 1a moves from left-to-right on the screen, and so would a push segue from 1 to 2, breaking the user's mental model about where those pages are located.

Related

How to make an accessible input that's connected to a dropdown

I'm working on identifying accessibility issues with a database-driven web application. One of the features of this web application is that the user can open up a modal window and filter by data columns. I included a couple of images to show what this looks like.
This is incredibly hard to use with a screen reader, mainly because I can't figure out how to associate the relationship dropdown with the input field. If a user selects a relationship (equal to, not equal to, greater than, etc...) I need to let the user know that it's associated with the input field to the right of it. But, I don't even know what this would be called or what I would wrap it in. Can anyone point me in the right direction?

Looking for resources to be able to create a similar layout for multiple and changing ASP.NET links

I'm looking for resources on how to go about creating an ASP.NET layout that will have different data values getting passed to it. Changing the link name and variables daily
For example, I have 3 NBA games I have in a database with a bunch if data. I want users to click a view game button and they all go to their page where the links look like:
.../game1
.../game2
.../game3
But when the page renders, it's the same layout just different data values.
I'm not sure what this is called but I'm trying to look for it. This is for ASP.NET Razor Framework

trouble with creating a breadcrumb in asp classic

I need advice on how to do breadcrumbs in asp classic
I have a company detail page - the thing is it could have been gotten to by a number of ways - through a area or through a list of categories and then companies
I want to show the breadcrumb that this user came to it
(and the same page can be gotten to in many ways)
I tried to build a session variable but if a user clicks the back key then it messed it up
any ideas?
When you design your site you need to work out, in your own mind (best to use a pencil and paper), just how the site links together and which pages can be considered to be related. I know this sounds pretty grey, but this is more a design principal than set in stone.
Word is a good tool to work this out. Flick into Outline View and use this to build up the structure. The arrows on the ribbon at the top left allow you to indent and outdent your structure, and the markers at the beginning of the line allow you to drag and drop sections from one place to another.
Once you're happy about the structure you can update your pages to contain the stepped breadcrumb. Unless you have heavily automated pages that change their structure vastly, or a site that is very fluid (changing it's structure frequently), I would simply hard code the breadcrumb in using an unordered list (<ul>).
It gets more complicated for Classic ASP if you want to be able to automate the breadcrumb. Firstly you'd need to decide what type of automation you want to use; for instance XML, like the .NET version, or a global.asa string/array version, or something that's read from your database... The list goes on.
If you still find it difficult to get around the user's landing page train of thought, try using the search page on a site like the NHS Data Dictionary, or even try navigating using the links on the left. The breadcrumb for this site is in the top banner - watch what happens when you switch between different links.
Hope this helps, but remember there's no right or wrong way to code up your links, it simply depends on the application or site you're creating.

How do I dynamically hide empty categories in toolbox of rehosted designer

We are rehosting the designer and the System.Activities.Presentation.Toolbox.ToolboxControl in an application. We have very many activities, grouped into quite some categories in the toolbox (>300 activities in 50 categories...)
When I type some string into the toolbox search box, I would like to disappear all categories that have no entry shown due to the active search. At the moment, they all show up as headers without any content and more often than not, I have to scroll down to see the activity that I'm looking for - not really usable:
Is there any way to achieve that, e.g. by setting CategoryItemStyle or CategoryTemplate on the ToolboxControl?

how to organize my menu, taxonomy, views, pages in drupal 6

i am try to build a web site, it has a 2 level menu.
global|asia|euro|u.s (this is locaion menu)
about|home|news (this is content menu)
if a web site user clicks on global, it will show global|home page, if
the user clicks euro , it will show euro|home page, clicks on u.s it shows u.s|home page.
global|home , euro|home, u.s|home, all 3 have same format but different content.
for global|about, euro|about, u.s|about, if a user clicks on global , then clicks on about, it shows global|about page, clicks on euro, then clicks on about, it shows euro|about page, etc.
page content is different , but format same.
all things (items, nodes) in this web site have a location taxonomy attached to it.
for example, for home page,we have to show a picture, the picture has location attached to it.
so , when a user click on euro|home, the picture should comes from euro location , for asia|home, the picture should comes from asia location.
My question is, in drupal 6, how to organize my menu, taxonomy, views, pages to achieve the result.
A way to look at this problem would be to think of this as a multi lingual site. You have different languages:
global
asia
euro
u.s
Even if all the actual text is written in english, you can setup your site as though the languages are different. You can make different versions of english, so all the other text doesn't get translated to other languages. What's smart about this, is that you can translate your nodes, like the about page, and Drupal would show the one from your active language. This would be one way of fixing this, and clicking the different regions, would just change the language.
Another way to do this, would be to use taxonomy. Some of the things, like the menu system would be a bit more different to fix. There would be different solutions to solving your problem this way. In some ways, it would be more simple than making your site multi lingual. I think the easiest way would be to make a 4 different menus, one for each menu. Then you could make some logic in your template, that fx looked at the args, or looked at the taxonomy term you had associated to the node being displayed, and based on that, you would display the different menus. It would require much more coding, to get it to do what you want, and it's not exactly an ideal solution, but would make your site less complex.
Another way to solve this problem, could be using sub menus. So you made children to each region in your main menu. Then you could simply show the menu of the active one. This would probably be the easiest and most simple solution to your problem. Most of it, would be purely styling that would be needed to make it work like you wan to. There might be some issues making the right menu show all the time, but depending on how complex your site are, this shouldn't be a big deal.
These are 3 ways to solve your problem, each has it pros and cons, and the best is very much dependent on the nature of your site.

Resources