Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added language selection section

...

Code Block
languagejs
<script type="text/javascript">
	$(document).on("$pf-url-visited", function (event, url)
	{
		console.log(url);
	});
</script>

 

Language Selection

The Photo Finale Web platform is currently localized into French, Spanish, Italian, Finish, Norwegian, Swedish and Japanese.  The site is designed to automatically select the most appropriate language based on the user's operating system locale settings when they first visit the site.  However, it is a good idea to also provide a language selector on the page, often placed in the site footer.  Once a user selects a language, that choice is stored in a cookie and will be utilized on future visits to the site.

To add your own, stylizable, language selector to your site you can use: 

Code Block
languagejs
<li><select id="language-selector"></select></li>
 
<script type="text/javascript">
	$(function() {
		PF.ui.languageSelect("#language-selector");
	});
</script>


Alternatively, you can utilize our default language selector on your custom page by using:

Code Block
languagejs
<language-selector dropup="true/false"></language-selector>


You can force a user into a particular language by calling:

Code Block
languagejs
<script type="text/javascript">
	PF.ui.setLanguage('fr-CA');
</script>

 

Scheduling Page Publishes

It is possible to schedule the publishing of a new page or update to an existing page for a future date/time.

...

Info
titleNote

Due to local caching on the web servers, changes may not propagate to all web servers for up to 30 minutes from the time scheduled in Umbraco.

...

 

Tips

...

  • Put a ‘My Projects’ button in even for anonymous users. For anonymous users, they are stored via cookies, just like the anonymous user's shopping cart. 
  • Use relative links. Relative links are best.
  • Linking to products/groups. For the best SEO and future-proofing, always use links to products and categories as shown in the Web Links page of myLab.
  • Newsletter signup.  html can’t have a <form> within a <form>. The site is already wrapped in a <form> so any others get tossed out. The submit would need to be scripted or pop something up.

...