ASPX templates
Version 7.x > ASPX templates > Unipager not showing Direct Page Transformation View modes: 
User avatar
Member
Member
cucumber-carol - 11/8/2013 4:05:50 PM
   
Unipager not showing Direct Page Transformation
I anm trying to get the direct pager template to work in the Universal Pager, but it never seems to display for me.

I have put the following code into it's transformation to test:

<span class="results-count">Results 1 - 12 of 100000</span>

and it doesn't show on the page, or when I view source.

I then tried adding the following code to the layout of the unipager:
<cms:UniPager ID="pagerElem" runat="server" >
<DirectPageTemplate>
<span class="results-count">Results 1 - 12 of 100000</span>
</DirectPageTemplate>
</cms:UniPager>

This also does not show on the page.

How everything is hooked up:
I have a custom table datasource,
Filter,
basic repeater,
and 2x unipager (one on top and one underneath the basic repeater)

The filter repeater and datasouurce work fine, and I get results and filtered results when required. The uni pager shows the correct number of pages, as well as the next, las buttons etc.

It' sonly the Direct Page Transformation that isn't working.

Am i missing something?

User avatar
Member
Member
cucumber-carol - 11/10/2013 4:34:20 PM
   
RE:Unipager not showing Direct Page Transformation
Maybe i should mention i am using the ASPX + Portal templates

User avatar
Kentico Consulting
Kentico Consulting
Kentico_RichardS - 11/12/2013 3:09:57 AM
   
RE:Unipager not showing Direct Page Transformation
Hi,

Thank you for your message.

I believe that the transformation is not showing because you have not setup the the Layout -> Pager layout transformation property of the Uni pager. This may cause some confusion, however I tested it and it should be working with the following setup:

Set the Direct page transformation to: CMS.PagerTransformations.General-DirectPage
And set the Pager layout transformation to: CMS.PagerTransformations.General-PagerLayout


Now it should display a text box with along with page numbers. Can you please let me know how it works?

Kind regards,
Richard Sustek

User avatar
Member
Member
cucumber-carol - 11/14/2013 1:51:39 PM
   
RE:Unipager not showing Direct Page Transformation
Thanks for that!

That info solved the issue. I worked it into our existing solution successfully now.

Cheers!