Page 1 of 1

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

Posted: Wed May 20, 2015 3:07 am
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?

Re: News Module - change {$lastpage} html

Posted: Wed May 20, 2015 8:03 am
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.

Re: News Module - change {$lastpage} html

Posted: Wed May 20, 2015 2:53 pm
by michaywood
beautiful. works perfect! thanks!