Changer l'affichage de la pagination

More
13 years 1 week ago #20483 by kim
Bonjour,

Je dois être neuneu (nuts pour le traducteur), mais je ne trouve pas le fichier où je peux modifier la pagination de Flexi.
J'ai bien vu le fichier fcpagenav.php dans les plugins.

Comment fait-on pour supprimer Suivant Fin » et ne garder que les numéros de pages?

Merci.

Kim.

Please Log in or Create an account to join the conversation.

More
13 years 6 days ago #20488 by ggppdk
This is done by using standard joomla pagination code not FLEXIcontent code, i am not sure if it is editable the way you describe without hacking joomla core files.

So the simple would be to use css to hide them, something like (for joomla v1.6/v1.7):

#flexicontent .pagination-start,
#flexicontent .pagination-end,
#flexicontent .pagination-prev,
#flexicontent .pagination-next {
display:none;
}

for J1.5 there are no css classes,
you best chance would be to use str_replace or preg_replace on the $this->pageNav string inside the
components/com_flexicontent/category/tmpl/default.php
NOTE: BETTER CREATE a joomla template override
Code:
$this->pageNav = str_replace('/<span>Start</span>/', '', $this->pageNav);

But you will need to create a replacement for every language


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 6 days ago #20496 by kim
Ok, i understood, i'll do that if i have the time, i'm very busy...

Thanks again.

Kim.

Please Log in or Create an account to join the conversation.

More
13 years 5 days ago #20511 by ggppdk
Forget everything i said above.

You can do a template override for the pagination.

Please read here how to do it:
docs.joomla.org/Understanding_Ou ... _Overrides

So ...
1. Copy file e.g. /templates/rhuk_milkyway/html/pagination.php to the root folder of your joomla template.

2. Then open the pagination.php file and go to function pagination_list_render($list)

3. Comment out all lines:
Code:
$html .= $list['start']['data']; $html .= $list['previous']['data']; ... $html .= $list['next']['data']; $html .= $list['end']['data'];
by adding to slashes backward slashes: //
note the above lines appear twice (4+4=8 times)

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
13 years 4 days ago #20532 by kim
Oyé, very simple, i'll do that.

Thanks.

Kim.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.327 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline