web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Portal webpages in multiple languages

(0) ShareShare
ReportReport
Posted on by

I have a custom web page which I'm showing the entity list in the form of tiles using the web template like below:

{% for item in entityview.records %}							  								
									
	<item>										
	   <div id="deviceList" style="display:inline-block; width:250px;">								
		Model: {{ item.model }} <br/>
		Date Purchased:{{ item.purchasedate }}<br/>
		Serial Number:{{ item.deviceserialnumber }}<br/>
	    </div>
	</item>
	
{% endfor %}

My issue is : This portal has to be enabled for 15 languages. If this a OOB entity form, I'd have used entity metadata to add the labels in different languages.

But this is a custom page. The only solution I could find is to create 15 page templates and 15 web templates and put them in the corresponding localized content of the web pages. 

Is there any other solution than this? A more effective and less regressive way of doing things?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    oliver.rodrigues Profile Picture
    4,052 on at

    Does your attributes also change according to the selected language? for example, would you have an attribute Model for English, another attribute let's say Model_FR for french etc?

    if not, I would suggest that you create a Content Snippet for every label in your Entity List page (because the only difference would be the labels and not the content)..

    than you call your snippets within the Web Template:

    {{ snippets['YOUR SNIPPET HERE'] | default: 'DEFAULT VALUE' }}


    this way you would have 15 (1 per each language) snippets per attribute/label/static texts in your page.. so yeah it would be a large number of snippets.. but you would have only 1 web template.. so any maintenance would be only in one place

    if you need to select different attributes according to the language.. you have two options:

     - keep 1 Page Template.. and have actually 16 Web Template.. the first one would only verify the selected language.. and call the appropriate localized Web Template

     - or create the 15 Page templates/Web templates as you mentioned 

  • Sahithi Profile Picture
    on at

    Hi Oliver,

    Content snippets idea sounds good to me, because then I don't need to maintain that many templates.

    Wouldn't there be a problem, like loading issue if we have too many content snippets in CRM?

  • Suggested answer
    oliver.rodrigues Profile Picture
    4,052 on at

    hi Sahithi.. liquid happens at a server-side level, so I wouldn't see a big performance issue here

    overall the Portal does not have an amazing performance, but this would be cached anyway, and after the 1st time it would load faster

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans