Hi all! I use a customunipager that inherits from the unipager. How to make the NextPageTemplate inaccessible if there are no further pages? I ovveride method OnInit and I configure NextPageTemplate so NextPageTemplate = TransformationHelper.LoadTransformation(this, "[<li class=\"paginator__item\"><a href=\"{%NextURL%}\">Next</a></li>]");
NextPageTemplate = TransformationHelper.LoadTransformation(this, "[<li class=\"paginator__item\"><a href=\"{%NextURL%}\">Next</a></li>]");
I configure the PreviousPageTemplate so
PreviousPageTemplate = TransformationHelper.LoadTransformation( this, this.CurrentPage != 1 ? "[<li class=\"paginator__item\"><a href=\"{%PreviousURL%}\">Previous</a></li>]" : "[<li class=\"paginator__item paginator__item--inactive\">Previous</li>]");
I need such a result
I believe you can set a property by default to say hide or show next/prev automatically. I don't remember the property name but I know it exists so no need to rewrite the code
Please, sign in to be able to submit a new answer.