[#1905] Showing/hiding pagination in list

13 years 9 months ago #138754 by fdkid
I'm trying to hide the top pagination on the user list, but i want to keep the bottom one.

Controlling the pagination visibility from the back-end (Community Builder List: Edit) will show/hide both pagination divs, top and bottom simultaneously. This logic does not allow to control the visibility of the divs individually, which is fine too. But in my case i want just the bottom one.

In any case, it can be accomplished by hacking comprofiler.html.php, line 856 - 869, by adding display:none to the style tag. Fairly simple but a hack.

It may be a good idea, since these div are already cssed, to add an "id" or a "class" to these divs in order to be able control their properties individually (including visibility)without having to hack core files or altering the logic.

Hope it makes sense. Maybe there is another way to accomplish it? thanks, fdkid

Post edited by: fdkid, at: 2010/07/27 19:58

Post edited by: krileon, at: 2010/07/29 15:46

Please Log in to join the conversation.

13 years 9 months ago #138764 by beat
Replied by beat on topic Re:Showing/hiding pagination in list
Just add that CSS in your site template css file, then it's not a hack anymore ;)

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

13 years 9 months ago #138797 by fdkid
Replied by fdkid on topic Re:Showing/hiding pagination in list
Thanks for your prompt response. Sure it will not be a hack! but i've looked all over the template file (defalt.php) and couldn't locate the code that display it. That's why i came to comprofiler.hmtl.php.

Could you point out for me? many thanks

Please Log in to join the conversation.

13 years 9 months ago #138870 by krileon
Replied by krileon on topic Re:Showing/hiding pagination in list
Currently you can't use CSS to hide strictly the top pagination as the bottom pagination would hide too. Not having a unique identifier to distinguish top from bottom prevents this. For the time being you'll need to use core edits or possible develop a CB Plugin to use CB Triggers and see if list can be altered with a plugin.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

13 years 9 months ago #138894 by fdkid
Replied by fdkid on topic Re:Showing/hiding pagination in list
Hi K, then my suggestion makes sense, and Beat was wrong. Is there any special reason why in the future these two divs cannot be CSS "identified" in the core file, so this case does not have to be a hack? My website is not going away any time soon, so i guess i'll be upgrading CB in the future and would like to minimize core hacks in general. It was just an idea, thanks

Post edited by: fdkid, at: 2010/07/28 22:53

Please Log in to join the conversation.

13 years 9 months ago #138939 by krileon
Replied by krileon on topic Re:Showing/hiding pagination in list

Is there any special reason why in the future these two divs cannot be CSS "identified" in the core file, so this case does not have to be a hack?.

Nope, added a feature request to have unique identifier classes added throughout CB so better customization can be done.

#1905


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.672 seconds

Facebook Twitter LinkedIn