Change the "nextPage" function
December 2, 2013 12:00 AM
Hi,
First I'm sorry for my English, I'm a New lectora french user. I've try to find the answer to my question on this forum but without result (probably my English too :) )
So, this is my problème :
I would like to do three "dynamic" buttons.
1st : Go To next Page
2nd : Go To next page +1
3th : Go To next page + 2
Is it possible ?
Thank you very much
Regards
Discussion (10)
Have the buttons go directly to the pages you want them to. Instead of using next page, select the specific page from any of the pages in the title. For example I can have a button navigate directly to the circled Copyright or Welcome page if that's what we want.
[ATTACH=CONFIG]519[/ATTACH]
I understand and appreciate what you're trying to achieve, but it goes against best practice in e-learning and isn't well supported by Lectora functionality.
It is much easier to keep language versions of a course as separate projects and use Lectora's RTF translation functionality to manage the translations.
If you insist on keeping all three languages within one project, you should put them in three different chapters instead of mixing them into FR-EN-ES-FR-EN-ES-FR-EN-ES-FR-EN-ES cocktail. Just branch your learner to one of the chapters based on their choice on the first page.
Thank you for reply Ssneg
If you insist on keeping all three languages within one project, you should put them in three different chapters instead of mixing them into FR-EN-ES-FR-EN-ES-FR-EN-ES-FR-EN-ES cocktail. Just branch your learner to one of the chapters based on their choice on the first page.
I've seen the translation option but sometime it's better to have a multilanguage training.
The problem of your solution it's the learner need to choose the language before start the training. It's impossible to switch language in the middle of the training for exemple and stay on the same page.
Is it possible on lectora to do a custom go to function ?
mouseClick >> GoTO >> "custom value"
Regards
Hello,
Thank you for taking the time to read.
I saw that one could reach directly to a page but it does not have matches what I want exactly.
Take my training example :
I have three pages in the training, but each of them is in three languages and the three flag like button.
Page 1 (French)
Page 1 (English)
Page 1 (Spanish)
Page 2 (French)
Page 2 (English)
Page 2 (Spanish)
Page 3 (French)
Page 3 (English)
Page 3 (Spanish)
I change a variable Lang = EN When I'm in French, UK when I'm in English and SP when I'm in Spanish.
If I do not want to duplicate my flag on each of my pages so I have to create an action type:
if click on the English flag -> GO TO - Next page + 1 (IF lang = EN)
if click on the English flag -> GO TO - Next page -1 (IF lang = SP)
if click on the french flag -> GO TO - Next page - 1 (IF lang = EN)
if click on the french flag -> GO TO - Next page - 2 (IF lang = SP)
if click on the spanish flag -> GO TO - Next page + 2 (IF lang = FR)
if click on the spanish flag -> GO TO - Next page + 1 (IF lang = EN)
I'm not sure I was very clear, sorry again for my English
Regards
Wouldn't it be easier to keep the three language separate even if you have only one course, i.e. instead of organizing your pages like this:
Page 1
French
English
Spanish
Page 2
French
English
Spanish
you could organize them by language
French
Page 1
Page 2
English
Page 1
Page 2
Spanish
Page 1
Page 2
Then you could let the user choose the language at the beginning of the course and direct them to a chapter that contains the respective pages only.
Tim
Not sure exactly what you want to do here, but to a custom web address you can do...
On Mouse Click, Go To Web address ...
If you want to do conditional branching in Lectora based upon language, do this...
1) Make a variable called Language
3) On your first page in the course, there are 3 buttons (English, Spanish, French)
a) for the English button, there are 2 actions on it. 1st action, On Mouse Click, Modify Variable, Language, Set Contents to EN ..... 2nd action, On Mouse Click, GoTo EnglishLanguageChapter.
b) for the Spanish button, there are 2 actions on it. 1st action, On Mouse Click, Modify Variable, Language, Set Contents to SP ..... 2nd action, On Mouse Click, GoTo SpanishLanguageChapter.
c) for the French button, there are 2 actions on it. 1st action, On Mouse Click, Modify Variable, Language, Set Contents to FR ..... 2nd action, On Mouse Click, GoTo FrenchLanguageChapter.
Or, you can make an action group like this and call the action group as the 2nd action above...
Have a action group called GoToLanguageChapter with 3 conditional actions in it.
a) 1st action go to (chapter English) .... condition -> if Language equal EN
b) 2nd action go to (chapter Spanish) .... condition -> if Language equal SP
c) 3rd action go to (chapter French) .... condition --> if Language equal FR
@Dorsey 58466 wrote:
mouseClick >> Goto >> "custom value"
Easy. Use mouseClick >> Run JavaScript >> trivExitPage(YourCustomValueHere,true);
Of course YourCustomValueHere should contain the html page name that Lectora understands, i.e. 'page72731.html'.
thank you for your answers, I think I'll do something like that.
However it is possible that I need in the future to use is kind custom function:
mouseClick >> Goto >> "custom value"
Must give up the idea?
regards
You can always "Go to web adress" and enter a custom value or a variable as "Adress". Or you can run a custom javascript function that goes to the target you want.
Tim
Thank you all,
I think I have all I need to begin my work.
regards
Discussions have been disabled for this post