Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] filtering functionality #1

Open
samoftheanna opened this issue May 16, 2014 · 1 comment
Open

[question] filtering functionality #1

samoftheanna opened this issue May 16, 2014 · 1 comment

Comments

@samoftheanna
Copy link

the way this creates separate sections for "Magazines" and "Specials" seemed like a decent starting point for mimicking the filtering functionality that is available in the default library view, but I am having NO luck adapting this code to create a collection based on filter text.

i'm a complete novice at this type of thing, but I have a few questions:

  1. why isn't the filtering functionality a part of custom storefront templates?
  2. is there an easier way than doing something like you are doing here?
  3. if there's not an easier way, how can I adapt this code to use the filter text on folios?

Thanks!!

@derek-lu
Copy link
Owner

  1. Filters weren't available when this template was first made.
  2. At the time, this was the easiest way to implement the tabs.
  3. You can update initialize() in MagazinesCollection and SpecialsCollection to add folios to each collection based on filter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants