WebSite X5Help Center

 
Trevor M.
Trevor M.
User

Control content in a page cell from a link in another cell  en

Автор: Trevor M.
Просмотрено 1573, Подписчики 2, Размещенный 0  

I would like to be able to click on a link in a text object in a page cell and have that link open the resulting data in another cell on the same page. Is this possible in Website X5 17 Pro?

I assume it could be done using code but I am not sufficently experienced at code writing to achieve this. My site is a reponsive site.

Alternatively, a pop-up window with the results would be OK. 

Размещено
3 Ответы - 1 Корректно
Andre E
Andre E
Moderator

There is no pop up, but you can do this using the anchor function.

Set an anchor on the OBJECT, you want to go to on this page. If you want this to be a special part that part needs to be 1 object, so if it is a part of a larger piece of text, split the text up in 2 text objects and make the one you want to go to the anchor one. Give the anchor a name.

now you can set in the link option a link to that page, and then set on the same page the name of the anchor. that's it.

Let me know if you need more information, or check the help file.

http://help.websitex5.com/en/v17/pro/ancore_ht.htm?zoom_highlightsub=anchor

http://help.websitex5.com/en/v17/pro/ins_link_tab1.htm?zoom_highlightsub=anchor

Best regards

Читать больше
Размещено От Andre E
John S.
John S.
User

Hello Trevor

If an iframe is not too much code for you, then an iframe could be used.

See an example here: http://calendarforum.dk/examples.html

Click on the links above the QR-code, and you will see the display window be changed according to the link you click.

There is also not much code for the links. The upper link is this :

<a href="http://www.bramminginfo.dk/kalmus/display1kommende.php" target="display">Display1 - Museum</a>

The name and  ID of the iframe is "display" and therefore the content will be replaced with the defined URL.

The iframe can be of any size you specify.

Читать больше
Размещено От John S.
Trevor M.
Trevor M.
User
Автор

Thanks for you help I have tested both and both serve to help me. IFrame is the best solution but Andre's solution is also ok.

Читать больше
Размещено От Trevor M.