Ok for the moment please try the following:
1. Select the first icon in your bootstrap project and add an optional script property
2. Add the following code to that script box either below or replacing the default //javaScript / jQuery
function x_navigateToPage(force, pageInfo) { // pageInfo = {type, ID}
var pages = $(data).find('page');
var links = ['[first]', '[last]', '[previous]', '[next]'];
var linkLocations = [0, pages.length-1, Math.max(0,currentPage-1), Math.min(currentPage+1,pages.length-1)];
// First look for the fixed links
if ($.inArray(pageInfo.ID, links) > -1) {
parseContent(linkLocations[$.inArray(pageInfo.ID, links)]);
goToSection('topnav');
$('html, body').animate({ scrollTop: 0 }, 'fast');
}
else { // Then look them up by ID
for (var i=0; i<pages.length; i++) {
if (pages[i].getAttribute("linkID") == pageInfo.ID) {
parseContent(i);
goToSection('topnav');
$('html, body').animate({ scrollTop: 0 }, 'fast');
break;
}
if (pages[i].childNodes.length > 0) {
for (var j=0; j<pages[i].childNodes.length; j++) {
if (pages[i].childNodes[j].getAttribute && pages[i].childNodes[j].getAttribute("linkID") == pageInfo.ID) {
parseContent(i);
goToSection('page' + (i+1) + 'section' + (j+1));
break;
}
}
}
}
}
}
You can see this working via
xot.xerte.org.uk/play.php?template_id=138
Please report back whether this does what you want?
This should work as a temporary solution for you for now but I don't want to commit this as a change to core Xerte code yet because longer term we need to add a choice so that if someone want to add a page link to a specific page but also a specific section or tab in a page that they can choose to do so e.g. it might not always be the case that you want to jump to the top of the destination page.
HTH
Ron