Welcome close

We've made some changes!

As you may have noticed, we've made some changes to the DevCenter to include the new Exchange site, a code community for Ektron developers. You may use the same username and password to login for both the Exchange and DevCenter. Your DevCenter profile has moved over to the Exchange site. You also may notice we have removed some profile functionality in favor of new functionality, including Activity Streams. We welcome your feedback about the site on the Exchange forum.

SEARCH : searchSite
This SectionSite Wide
API

RSS Feed Print Category View
Having trouble reordering taxonomies having more than 50 items. (version 8.0)
VikramD
Posted: Thursday, February 4, 2010 2:10 PM
Joined: 9/29/2008
Posts: 51


Hi,

 

We are having trouble with taxonomies.

 

We upgraded to version 8.0 (from 7.53) about a month ago.

 

When we try to reorder items in a taxonomy that has a huge amount of items in it, we only see the first fifty items in the reorder box.The remaining items don't show up in that box at all.

 

So if my taxonomy has 58 items in it, I can only reorder the first 50 items. The remaining 8 items don't show up in the reorder box. Even when I can see them in the taxonomy itself.

 

Any help?

 

Thanks,

Vikram.


Rui @ Ektron
Posted: Thursday, February 4, 2010 3:20 PM
Joined: 10/2/2006
Posts: 325


This will require you to modify the workarea code as the default pagesize is 50. (* anything changed in Workarea will need to be redo after upgrade)

 

The file is \Workarea\controls\taxonomy\edittaxonomy.ascx.vb

 

Locate this

 

                Else
                    AllLangForm.Visible = False     ' the all languages checkbox is only valid for categories
                    taxonomy_request.IncludeItems = True
                    taxonomy_data = m_refContent.ReadTaxonomy(taxonomy_request)
                    tr_ordering.Visible = True 'Not showing for items
                    If (taxonomy_data.TaxonomyItems IsNot Nothing) Then
                        TotalItems = taxonomy_data.TaxonomyItems.Length
                        If (TotalItems > 1) Then
                            td_msg.Text = m_refMsg.GetMessage("generic first msg")
                            OrderList.DataSource = taxonomy_data.TaxonomyItems
                            OrderList.DataTextField = "TaxonomyItemTitle"
                            OrderList.DataValueField = "TaxonomyItemId"
                            OrderList.DataBind()
                            OrderList.SelectionMode = ListSelectionMode.Multiple
                            OrderList.CssClass = "width: 100%; border-style: none; border-color: White; font-family: Verdana;font-size: x-small;"
                            If (TotalItems > 20) Then
                                OrderList.Rows = 20
                            Else

 

Add a pageize to it, also, change the OrderList.Rows to a larger number to see everything.

 

                Else
                    AllLangForm.Visible = False     ' the all languages checkbox is only valid for categories
                    taxonomy_request.IncludeItems = True
                    taxonomy_request.PageSize = 100
                    taxonomy_data = m_refContent.ReadTaxonomy(taxonomy_request)
                    tr_ordering.Visible = True 'Not showing for items
                    If (taxonomy_data.TaxonomyItems IsNot Nothing) Then
                        TotalItems = taxonomy_data.TaxonomyItems.Length
                        If (TotalItems > 1) Then
                            td_msg.Text = m_refMsg.GetMessage("generic first msg")
                            OrderList.DataSource = taxonomy_data.TaxonomyItems
                            OrderList.DataTextField = "TaxonomyItemTitle"
                            OrderList.DataValueField = "TaxonomyItemId"
                            OrderList.DataBind()
                            OrderList.SelectionMode = ListSelectionMode.Multiple
                            OrderList.CssClass = "width: 100%; border-style: none; border-color: White; font-family: Verdana;font-size: x-small;"
                            If (TotalItems > 20) Then
                                OrderList.Rows = 100
                            Else



Think outside the box.
Ektron CMS Smart Form XSLT = Great Design Idea w. Control


Killer_Instinct
Posted: Thursday, February 4, 2010 3:58 PM
Joined: 1/27/2010
Posts: 39


Try just setting ek_pagesize value in the web.config to greater value than 50 and you should see the more items.
Rui @ Ektron
Posted: Thursday, February 4, 2010 4:06 PM
Joined: 10/2/2006
Posts: 325


Good catch KI /WorkArea/threadeddisc/emoticons/cool.png

but that will be a global change, if he doesn't mind.



Think outside the box.
Ektron CMS Smart Form XSLT = Great Design Idea w. Control


Killer_Instinct
Posted: Friday, February 5, 2010 8:55 AM
Joined: 1/27/2010
Posts: 39


The paging in Ektron Product [workarea/few controls] works mostly on the ek_pagesize value.

VikramD
Posted: Friday, February 5, 2010 11:08 AM
Joined: 9/29/2008
Posts: 51


Thanks for the response guys. That partially fixed our problem.

 

 

 

 

 

 

 

Killer_instinct: While your suggestion did increase the number of items seen in the taxonomy, it doesn't make any difference when you try to reorder it. We still saw only 50 items in the list when we tried to reorder the taxonomy.

 

 

 

 

 

However, Rui's trick did the work. We are now able to reorder more that 50 items. 

 

None the less, we wanted both, so thanks to  both of you

 

 

 

 

 

 

 

Now, the remainder of the problem is, although we can now reorder all the items in the taxonomy, we can only see the first 50 of them on our actual webpage.

 

This page has a list of links in the middle. This list has about 72 items in it, but we see only the first 50 from the taxonomy. This was never a problem with 7.53.

 

 

 

 

 

 

 

Thanks,

 

 

 

Vikram.


eGandalf
Posted: Friday, February 5, 2010 11:23 AM
Joined: 9/13/2006
Posts: 2367


Hey Vikram,

 

What are you using to display the items on the page? Directory control? Taxonomy API?

 

Either way, there should be a PageSize parameter or something similar.




http://www.ektron.com/services/


VikramD
Posted: Friday, February 5, 2010 11:25 AM
Joined: 9/29/2008
Posts: 51


Here's a 'workaround'.

 

I increased the MaxResults of the directory control to 75 and now I'm able to see ALL items on the page.

 

However, as I understand, if I assign "0" as the value for MaxResults, I should see all anyways.


eGandalf
Posted: Friday, February 5, 2010 11:29 AM
Joined: 9/13/2006
Posts: 2367


Hey Vikram,

 

I've found instances where I thought 0 would work (i.e., CacheInterval on the FlexMenu) but it didn't. In that instance, using -1 did the trick.




http://www.ektron.com/services/


VikramD
Posted: Friday, February 5, 2010 11:49 AM
Joined: 9/29/2008
Posts: 51


eGandalf,

 

Thanks for the tip. But that didn't work for the MaxResults on the directory control


EktronRashmi
Posted: Friday, February 5, 2010 12:57 PM
Joined: 7/10/2006
Posts: 1125


set enablepaging="true" and

maxresults= "100" or any other number than zero


Rashmi-
 

Jump to different Forum... 






Register for Synergy 2010

Articles
Design without Borders, yet with Structure
CMS400.NET and Adobe Flex
GeoMapping
EkML Ektron Markup Language
Taxonomy

[First] [Previous] [Next] [Last]


See All Articles