Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 513 Bytes

templating.md

File metadata and controls

18 lines (14 loc) · 513 Bytes

Templating for Fluent

On the front end of the website you can include the LocaleMenu.ss template to provide a simple locale navigation.

<% include LocaleMenu %>

If you are using partial caching then you will need to ensure the current locale is a part of the cache key.

<% cached 'navigation', List(Page).max(LastEdited), $CurrentLocale %>
	<% loop Menu(1) %>	  
		<li class="$LinkingMode"><a href="$Link" title="$Title.XML">$MenuTitle.XML</a></li>
	<% end_loop %>
<% end_cached %>