Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

SmartyPaginate in Smarty 3 issue

 
Post new topic   Reply to topic    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
boyer
Smarty Rookie


Joined: 08 Apr 2009
Posts: 9

PostPosted: Wed Feb 15, 2012 5:31 pm    Post subject: SmartyPaginate in Smarty 3 issue Reply with quote

Hey all!

I've recently (finally!!) upgraded from Smarty 2 to Smarty 3 (most recent stable). Luckily, the migration was almost completely painless as I hadn't done much in my code that was deprecated in V3, so I was up and running quickly.

However, I'm having any issue with the SmartyPaginate. The template tag is
Code:
{paginate_first id="read"} {paginate_prev id="read"} {paginate_middle page_limit="5" id="read"} {paginate_next id="read"} {paginate_last id="read"}


and the error I'm getting is:
Code:
Syntax Error in template "templates\read.tpl" on line 65 "<div>{paginate_first id="read"} {paginate_prev id="read"} {paginate_middle page_limit="5" id="read"} {paginate_next id="read"} {paginate_last id="read"}</div>" unknown tag "paginate_first"


I realize that this plugin is about 7 years old... but I am using it ALL over the place in my code, and there is still (unbelievably) no alternative to this plugin.

Anyone come across this error, or have a suggestion for where I can look?

Thanks,
Sean
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7366
Location: Lincoln Nebraska, USA

PostPosted: Wed Feb 15, 2012 5:35 pm    Post subject: Reply with quote

Make sure you have all the SmartyPaginate plugins in the plugins dir, looks like you are missing one.
Back to top
View user's profile Send private message Visit poster's website
boyer
Smarty Rookie


Joined: 08 Apr 2009
Posts: 9

PostPosted: Wed Feb 15, 2012 5:53 pm    Post subject: Reply with quote

Boy am I blue in the face... I forgot those existed... Copied them over and everything is working great. Thanks Mohrt!

And thanks for the plugin! It has saved me soooo much time over the years, and despite being 7 years old, it still works great!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Plugins All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP