Copy link to clipboard
Copied
I have created/spawned multiple pages from a page template and made the page templates hidden.
I can unhide any specific page template through JavaScript, "this.getTemplate("Photo14" ).hidden=false;" but I also need the JavaScript code to go to the specific page, this.getTemplate("Photo14" ), or any other page template that is made visible.
Problem: when I unhide several pages templates, consecutive page numbers are automatically assigned so I cannot use a Bookmark, specific page, "this.pageNum = 19;", or Named Destination, "gotoNamedDest("Photo14");". Also, when a page is hidden, the Named Destination page number disappears.
In Page Templates window, I can select any page template, make the template visible, and then click on the "Goto" button that takes me to the sepcific page template; is there JavaScript code that replicates this "Goto" button?
Have something to add?