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
Use Existing Iron-Router Route? #104
Comments
+1 for first question. If you have existed route with some logic in data, waitOn functions there's no obvious way how to integrate it with pagination. |
Same question here. |
Using your own route is possible, although you'll need to set up your own navigation controls. There's currently no way to let Currently, you could do the following:
<a href=prevLink>Previous</a>
<a href=nextLink>Next</a> function getRoute(d){
if(!d)d = 0;
pageNumber = Pages.sess("currentPage") + d;
if(_.isNaN(pageNumber)) //just in case sess("currentPage") is not yet defined.
pageNumber = 1;
return "/my/route/" + pageNumber;
}
Template.myTemplate.helpers({
prevLink: _.partial(getRoute, -1), //getRoute with d set to -1
nextLink: _.partial(getRoute, 1) //getRoute with d set to 1
}); |
yep yep, would be nice if this was on the README.md |
did anyone try this out, yet? does it work? |
How do you override the Meteor-pages package routing? For example, I get:
Updated Solution: // Configure the base route
homeRoute: '/my route/' |
Just don't use the router option. There's no routing by default.
|
Thanks! I configured routing with your API with 3 lines, thanks for such a robust package! |
I can't figure out if it's possible to use existing route, If I use existing one it will throw an error saying it's already exists, The thing is I want to include the table inside existing route inside that theme in some part of it. The examples don't really show you how to do it... Thank you!
Also another small question, I want a table. I also want to include checkboxes + action column where will be 2 buttons edit/remove. I should try not to use the table and try to create it with template helpers myself? If thats possible
The text was updated successfully, but these errors were encountered: