I got asked if there was a way to force Producer to always start a presentation at the beginning. The help system says you can do this by appending #TOCEntry=nn to the hyperlink. Entry number 1 is the first slide.
But that doesn't work if you're launching a file on a local PC as a shortcut to a file can't include the #TOCEntry part. It also wouldn't force the presentation to start from the beginning if someone accessed the file directly.
I think you can force the playback to always start at the beginning by changing line 64 of gogoprod.js as follows:
Before:
{var szCookieTime=ReadCookie(CONST_TIME_COOKIE);var fCookieTime=parseFloat(szCookieTime);if(fCookieTime>0.0)After:
{var szCookieTime=ReadCookie(CONST_TIME_COOKIE);var fCookieTime=parseFloat(szCookieTime);<strong>fCookieTime=0;</strong>if(fCookieTime>0.0)What this does is force the playback system to ignore the value it retrieves from the cookie and sets it back to zero. Zero means the beginning.
It seems to work ok! We were actually wanting this feature for the new work training system that I'm setting up, so the timing of this question was pretty handy.
The attached file contains a modified gogoprod.js file that contains the above code. This file is also compatible with my customised template that lets you show and hide the table of contents panel.
| Attachment | Size | Hits | Last download |
|---|---|---|---|
| gogoprod.zip | 20.61 KB | 30 | 27 weeks 21 hours ago |