IMAmuseum / tap-cms

Authoring tools for the TAP mobile application software platform, built on top of Drupal. Learn more about the project at TAPintoMuseums.org.
https://github.com/IMAmuseum/tap-cms/wiki
GNU General Public License v3.0
24 stars 8 forks source link

Option to not display a Stop Group in the 'stop list' view? #43

Open prash-nk opened 9 years ago

prash-nk commented 9 years ago

Is this currently possible? In my config I have the following set:

navigationControllers: {
    'StopListView': {
    label: 'Stop Menu',
    filterBy: 'code',
    sortBy: 'code',
    displayCodes: false
    }
},

I do want the stop list menu to show the stops without codes, but I rather not have it display the Stop Group itself. I know by default it only displays the Stop Groups, with above code it changes to displaying all stops including the stop group. Is there a way to have stop group itself be hidden?

Or maybe have a way to add a css class to the Class Group so I can set it to display: none via css?

Thanks,

prash-nk commented 9 years ago

I am unable to find a way to display just the stops with codes on 'stop menu' view. I can hard code it to go to a single tour, but the problem is that I have multiple tours and they all have a stop group associated with it.

kjaebker commented 9 years ago

I’m not sure I understand what you are trying to achieve. The stop list has two modes, one that displays all stop groups and one that displays all stops with codes. IF you want something different than that, you would have to modify the StopListNavigation view.

Kyle

From: Prash notifications@github.com<mailto:notifications@github.com> Reply-To: IMAmuseum/tap-cms reply@reply.github.com<mailto:reply@reply.github.com> Date: Tue, 31 Mar 2015 09:55:43 -0700 To: IMAmuseum/tap-cms tap-cms@noreply.github.com<mailto:tap-cms@noreply.github.com> Subject: Re: [tap-cms] Option to not display a Stop Group in the 'stop list' view? (#43)

I am unable to find a way to display just the stops with codes on 'stop menu' view. I can hard code it to go to a single tour, but the problem is that I have multiple tours and they all have a stop group associated with it.

— Reply to this email directly or view it on GitHubhttps://github.com/IMAmuseum/tap-cms/issues/43#issuecomment-88170705.


This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact Kyle Jaebker by reply email and destroy all copies of the original message.

prash-nk commented 9 years ago

Simply put, on the list that shows up when you hit the 'stop menu' button, is there a way to NOT display a stop group? Client wants the view that only displays just the stop without the stop group itself when the Stop Menu nav button is pressed (similar to as if we went back to stop group view)

Edited to add:

Consider these cases:

-In the case that config says filter by StopGroup - This only displays stop groups. -In the case that config says filter by Code - This displays stops with codes AND the stop group associated with some of those stops (even without a code assigned to the stop group)

In the second case I want to know if its possible to not show stop group.

kjaebker commented 9 years ago

Based on the current setup, you would have to modify the code to remove stop groups from the list.

The only way to do that in its current form would be to remove stop codes from the stop groups.

Kyle

From: Prash notifications@github.com<mailto:notifications@github.com> Reply-To: IMAmuseum/tap-cms reply@reply.github.com<mailto:reply@reply.github.com> Date: Mon, 6 Apr 2015 07:39:20 -0700 To: IMAmuseum/tap-cms tap-cms@noreply.github.com<mailto:tap-cms@noreply.github.com> Cc: Kyle Jaebker kjaebker@imamuseum.org<mailto:kjaebker@imamuseum.org> Subject: Re: [tap-cms] Option to not display a Stop Group in the 'stop list' view? (#43)

Simply put, on the list that shows up when you hit the 'stop menu' button, is there a way to NOT display a stop group? Client wants the view that only displays just the stop without the stop group itself when the Stop Menu nav button is pressed (similar to as if we went back to stop group view)

— Reply to this email directly or view it on GitHubhttps://github.com/IMAmuseum/tap-cms/issues/43#issuecomment-90083082.


This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact Kyle Jaebker by reply email and destroy all copies of the original message.