Jump to content

Recommended Posts

Posted

Referencing this page:

https://processwire.com/api/ref/markup-pager-nav/

The options array for UIKit should read as follows for nextItemLabel & previousItemLabel:

// Change options for Uikit "uk-pagination" navigation
$options = array(
  ...
	'nextItemLabel' => "<span uk-pagination-next></span>",
	'previousItemLabel' => "<span uk-pagination-previous></span>",
  ...
);

Otherwise with UIKit 3 the arrows don’t render.

Posted
$options = array(
  ...
	'nextItemLabel' => "<span>next</span>",
	'previousItemLabel' => "<span>prev</span>",
  ...
);
 

Are you sure, that they are not rendered? What happens if you change the code like this above?

Posted

I’m positive they weren’t rendering. I’ve been coding my page for days and couldn’t figure out why there was no output for them.

My code makes the left and right arrows appear. (see screenshot)

And your code shows 'prev' and 'next'. (see screenshot)

I took the code I used from UIKit’s most recent docs. Either execution works for me. Thanks for adding your input.

 

Screen Shot 2021-11-20 at 2.53.55 PM.png

Screen Shot 2021-11-20 at 2.55.13 PM.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...