|
|
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.
|
|
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
|
|
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.
|
|
Joined: 10/2/2006 Posts: 325
|
Good catch KI 
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
|
|
Joined: 1/27/2010 Posts: 39
|
The paging in Ektron Product [workarea/few controls] works mostly on the ek_pagesize value.
|
|
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.
|
|
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/
|
|
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.
|
|
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/
|
|
Joined: 9/29/2008 Posts: 51
|
eGandalf,
Thanks for the tip. But that didn't work for the MaxResults on the directory control 
|
|
Joined: 7/10/2006 Posts: 1125
|
set enablepaging="true" and
maxresults= "100" or any other number than zero Rashmi-
|
|
|
|