PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 5/14/2020 9:49 PM by  Will Strohl
How to get the category list in serverside programming
 11 Replies
 1 Subscribed to this topic
 1 Subscribed to this forum
Sort:
You are not authorized to post a reply.
Page 2 of 3 << < 123 > >>
Author Messages





Basic Member






--
5/10/2020 10:02 PM
Hi,
I tried the code
var HccApp = HccAppHelper.InitHccApp();
var allCats = HccApp.CatalogServices.Categories.FindAllSnapshotsPaged(1, 5000);

but it's only returning the default language caption and properties, how I will get different language category property like name and rewrite URL





Veteran Member






--
5/12/2020 12:57 PM
Hello:

Can you please provide some more details about what was returned? I'm not sure I understand. Thanks! :)
Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





Basic Member






--
5/12/2020 5:54 PM
Hi,
Thanks for the reply, I have multilanguage portal English and Arabic. Once I called the product through the server-side API, it is returning me the active language product information. (Like if I am in Arabic the Arabic product data I received and When I am in English the English data is receiving).

But when it comes to categories, whatever the language I selected it's only returning me the English data. I already make sure the translation exists.

I don't know why this is the behaviour of API. Temporarily I collected data from the database but I want to that with API





Veteran Member






--
5/13/2020 11:23 AM
Have you debugged the API call? When you do, please check the code to see if you're specifying the language and also inspect the request to see if the headers are being sent with a language parameter. Even in a threaded context, you should be able to see that by debugging it.
Will Strohl, Upendo Ventures Hotcakes Cloud | Get Support | Code Support Official Cloud & Support provider for Hotcakes





Basic Member






--
5/13/2020 6:23 PM
I found very strange thing :S, Once I tried to deploy the module on the pages which created by HCC wizard, it returning me the correct value, but when i placed the same module in my customer DNN page it is only getting the English URL. In both cases the culture set as ar-SA. I did not get why it is behaving like that.

The setting is showing me ar-SA in both pages.

[img=https://i.ibb.co/kGQYXfx/lanugage-Problem.png]Image problem[/img]
You are not authorized to post a reply.
Page 2 of 3 << < 123 > >>


Loading
  • Sign-up for the Hotcakes Community Newsletter: