Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

smartyPaginate - styling active page

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Plugins
View previous topic :: View next topic  
Author Message
thiebo
Smarty Pro


Joined: 16 Jan 2005
Posts: 144
Location: Paris

PostPosted: Sat Apr 11, 2015 3:09 pm    Post subject: smartyPaginate - styling active page Reply with quote

Hello,

Using smartyPaginate, works like a charm. Just one little problem...

I could style the links of the pagination results, since the plugin returns <a href class="page">...blablabla.

But I would like to apply css to the active page. The plugin doesn't return any html code to which I could apply css.

This is the source code of my page now :

Code:
<span class="pages_resultats">     1   <a class="page" href="cherchevoca.php?table=latin&amp;lettre=i&amp;next=6">   2   </a></span>


<a class="page" ...> is the output of the smartyPaginate plugin. But how can I apply a style to the letter 1 that is standing there all alone... ?

I hope my question is clear,

Many thanks is advance,

Thiebo
Back to top
View user's profile Send private message Visit poster's website
thiebo
Smarty Pro


Joined: 16 Jan 2005
Posts: 144
Location: Paris

PostPosted: Sun Apr 12, 2015 2:25 pm    Post subject: Reply with quote

Hi there,

My question isn't clear ? Or inappropriate .. ?

Thanks,

Thiebo
Back to top
View user's profile Send private message Visit poster's website
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1785

PostPosted: Sun Apr 12, 2015 6:16 pm    Post subject: Reply with quote

Your question has been asken on saturday.
Which is a blessed holiday in many countries, and a rightful vacation day in even more.
Have patience. If someone know your answer, they will reply. In the meantime, I suggest to go back to reading plugin documentation at http://www.phpinsider.com/php/code/SmartyPaginate/
Back to top
View user's profile Send private message
thiebo
Smarty Pro


Joined: 16 Jan 2005
Posts: 144
Location: Paris

PostPosted: Mon Apr 13, 2015 4:15 pm    Post subject: Reply with quote

You're absolutely right. And by the way, I was taking a good nap myself after asking that question.

I've re-read the documentation, but the answer wasn't there.

Smile
Back to top
View user's profile Send private message Visit poster's website
mohrt
Administrator


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

PostPosted: Tue Apr 14, 2015 1:36 am    Post subject: Reply with quote

That plugin has not been updated in just over a decade Shocked

You could add the classes directly to the plugins, or another option, wrap the plugins with html classes you can find with CSS/JS. Example:

Code:
<span class="paginate_first">{paginate_first}</span>


Then you can apply your css/js to elements inside this span. example, applying css to all links:

Code:
.paginate_first a { ... }


jquery:

Code:
$(".paginate_first a").onclick( ... );
Back to top
View user's profile Send private message Visit poster's website
thiebo
Smarty Pro


Joined: 16 Jan 2005
Posts: 144
Location: Paris

PostPosted: Wed Apr 15, 2015 6:00 am    Post subject: Reply with quote

just over a decade. Means it is really good. I've been using it for 6 or 8 years. Works fine Smile

I have done what you describe, but than the gives a property to the link, not to the active page. I have found something for the active page, but that applies to the entirety of the results.

I guess that makes it a CSS problem Smile

Thanks mohrt,

Thiebo
Back to top
View user's profile Send private message Visit poster's website
AmbroseLee
Smarty n00b


Joined: 06 Oct 2015
Posts: 1

PostPosted: Tue Oct 06, 2015 10:50 am    Post subject: Reply with quote

You Can Create styling active page in CSS :active Selector - W3Schools Its Possible

__________________
Thank You!
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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