Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Added example of page transition events

...

 

Advanced Tables - Table Plus
width55%

eeeeeeee

Type

Cache Duration

Changes to Umbraco Content

Up to 30 Minutes

Changes to FTP Content

Up to 10 Minutes

...

Code Block
languagejs
titleWait For 3rd-Party Script Before Using It
( function _trackerScript() {
                if (typeof (MyTracker) == "undefined") {
                    setTimeout(function () { _trackerScript(); }, 500);
                } else {
                    MyTracker.TrackOrder(PF.orderSummary.confirmation, PF.orderSummary.total);
                }
   })();

 

Page Transition Events

Since the Photo Finale site is a Single Page Application (SPA), there aren't traditional page fetches from the server as the user nagivates the site.  If you wish to attach code to a particular page, you need to listen for the $pf-url-visited event and use the url parameter to identify the page the user has navigated to.  For example:

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

...