[SOLVED] News Module - change {$lastpage} html

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
michaywood
Power Poster
Power Poster
Posts: 280
Joined: Thu Apr 15, 2010 12:27 am

[SOLVED] News Module - change {$lastpage} html

Post by michaywood »

I'm putting the News module in place and wanting to be able to turn {$lastpage}, {$nextpage}, {$prevpage}, {$firstpage} into buttons.

It looks like these {$firstpage} convert to <a> tags. So I could wrap them in a div, but could love to be able to simply add a CSS class to the <a> tag and manage the button that way.

any ideas?
Last edited by michaywood on Wed May 20, 2015 2:54 pm, edited 1 time in total.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: News Module - change {$lastpage} html

Post by velden »

{get_template_vars} is very helpful in those cases.

It would show you - when used in the news summary template - that {$firsturl} and {$lasturl} are available, allowing you to build your own button.
michaywood
Power Poster
Power Poster
Posts: 280
Joined: Thu Apr 15, 2010 12:27 am

Re: News Module - change {$lastpage} html

Post by michaywood »

beautiful. works perfect! thanks!
Post Reply

Return to “Modules/Add-Ons”