Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

Get content that is available in the currently selected language?

$
0
0

We have a block that pulls in content and displays it on our page. Right now, no matter what language I select in our language switcher, this is not being honored by our block.

As I am new to EpiServer and C# I think I have identified the following line of code as being the one that pulls in the data?

ServiceLocator.Current.GetInstance<IContentLoader>();

Can I rewrite this to only get content in the language that is currently selected by the user?

Thank you for any help.


Viewing all articles
Browse latest Browse all 9076

Trending Articles