Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1

TOPIC:

Bootstrap - can't open link in same window 8 years 2 months ago #4001

  • rushworthlee@yahoo.co.uk
  • rushworthlee@yahoo.co.uk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Hi there,

I wondered if someone could help me with this issue I'm struggling with. I've set up some links to other pages on the Bootstrap site but I can only get them to work if I set the target to 'New Window' which isn't ideal. It doesn't want to open them within the same window (Self) and this is also the case when I've tried using the Xerte page link.

Thanks,
Lee

Please Inloggen or Create an account to join the conversation.

Bootstrap - can't open link in same window 8 years 2 months ago #4002

  • Fay
  • Fay's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 229
  • Thank you received: 92
Hi Lee

It looks like there were some fixes a couple of months ago to the way links in Bootstrap projects worked. Using the 'Xerte Page Link' method does work with the current code (does this work for you?... www.nottingham.ac.uk/toolkits/play_15377).

Pasting the page's URL into a normal link won't work unless the page is refreshed (or view freshly in new window).

Fay

Please Inloggen or Create an account to join the conversation.

Bootstrap - can't open link in same window 8 years 2 months ago #4006

  • rushworthlee@yahoo.co.uk
  • rushworthlee@yahoo.co.uk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Thanks Fay. I've set them up as Xerte Page Links but I can't seem to get it to work. If I inspect it, it says 'Navigate to Page not defined'. The one you've attached works fine for me.

I'm doing it via Birkbeck's Xerte portal. Might there be a fix update that they need to run?

Thanks,
Lee

Please Inloggen or Create an account to join the conversation.

Bootstrap - can't open link in same window 8 years 2 months ago #4008

  • Fay
  • Fay's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • Posts: 229
  • Thank you received: 92
It's a good idea for the install to be as up to date as possible (v3.3 was released last week with lots of bug fixes & some new features too)

I think I've just found a workaround that might work for you though (github.com/thexerteproject/xerteonlinetoolkits/issues/426). If you view the source of your text field try adding your link in this format:

<a href="javascript:parseContent(1);">Page 2</a>

The page numbering starts from 0 so a link to page 1 is parseContent(0), page 2 is parseContent(1) etc.

I've just tested it and this still works in v3.3 so should continue working if they do upgrade at some point in the future.
The following user(s) said Thank You: rushworthlee@yahoo.co.uk

Please Inloggen or Create an account to join the conversation.

Bootstrap - can't open link in same window 8 years 2 months ago #4011

  • rushworthlee@yahoo.co.uk
  • rushworthlee@yahoo.co.uk's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 5
  • Thank you received: 0
Fantastic, that's worked. Massive thanks.

Please Inloggen or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ronmjultenJohnSmith
Time to create page: 0.097 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search