You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this in my code (two different routes, / and /category), both of them are using the same collection and templates (I just want to have different URLS for different queries over the same collection).
The problem I am trying to solve is that when I go to the root (/, /page/:NUM) the second (category) one is called, there is no way to view only the first one.
Hi there,
I have this in my code (two different routes, / and /category), both of them are using the same collection and templates (I just want to have different URLS for different queries over the same collection).
The problem I am trying to solve is that when I go to the root (/, /page/:NUM) the second (category) one is called, there is no way to view only the first one.
`this.ShowProducts = new Meteor.Pagination(Products, {
route: "/page",
router: "iron-router",
routerTemplate: "ShowProducts",
homeRoute: ["/"],
itemTemplate: 'IndividualListProduct',
routerLayout: "MasterLayout",
templateName: "ShowProducts",
fastRender: true,
perPage: 100,
infinite: false,
sort: {
num_comments: -1
},
});
this.Category = new Meteor.Pagination(Products, {
router: "iron-router",
homeRoute: ["/category/"],
route: "/category",
routerTemplate: "ShowProducts",
routerLayout: "MasterLayout",
templateName: "ShowProducts",
perPage: 100,
infinite: false,
});
`
The text was updated successfully, but these errors were encountered: