Closed (fixed)
Project:
Pagerer
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Mar 2013 at 14:18 UTC
Updated:
22 Jul 2020 at 16:50 UTC
Jump to comment: Most recent
Comments
Comment #1
mondrakeHi Bernsch,
and thank you for your interest in Pagerer.
You can do that in coding, calling directly the theme functions and passing the needed 'tags' array variable. More info here.
But, not through the admin UI, sorry, not at this stage. This is something I have been thinking about, but I would like the text strings to be translatable for multilingual sites and for the time being I have no clear mind on how to achieve that.
If anyone has ideas, or even better, can contribute developing a patch, it will be very welcome.
This is something you can do with CSS styling. A good explanation is in #583044: Custom Arrows, which in fact refers to the Minimax pager module for Drupal6. But the class names used are the same in D7, so the concept is still valid.
Comment #2
Bernsch commentedAnd how can i override this theme function in pagerer.module file in my template.php?
Comment #3
mondrakeHi,
you do not need to override that - that function is there to set default values if the 'tags' array does not contain values already.
What you can do is implement in template.php a hook_preprocess_pagerer_xxxx() to set the 'tags' values you need. xxxx should be replaced with the specific pagerer theme you want to address.
Example:
Comment #4
Bernsch commentedOh OK! Thank you! It works fine :-)
Can you write the example-code in your documentation site pleace?!
lg, bernsch
Comment #5
mondrakeGood idea. I will make a reference to this when releasing version 1.1.
I am leaving this issue active anyway, since at one point I would still like to have a admin UI solution for this.
Comment #6
mondrakeIt looks like that in Drupal 8, after converting pagerer presets to configuration entities, it will be possible to use the config_translation module to translate the configuration in multilanguage sites. So an admin UI to edit the 'tags' array will be implemented on the D8 version.
Comment #6.0
mondrakeadd text: Also what would be great yet --> add a icon/image to or instead of the link titels :-)
Comment #7
mondrakeChanging the text elements of the pager through the UI is now implemented in the Drupal 8 version of the module, in the development branch.
Comment #9
markusd1984 commented#4 worked a treat in a custom module but that customisation in the UI would be easier, especially for the popular slider :) Love this module!