This topic is locked
[SOLVED]

 Hyperlink within record being "Viewed as HTML"

1/12/2020 7:00:30 AM
PHPRunner General questions
R
rfischerjr authorDevClub member

Working on a knowledge base app starting with the Knowledge Base Template.
Storing HTML in the documents contents field to serve using "View as HTML".
Some documents refer to a second document and I would like to link to the second document directly from the document being viewed (without having to use "Back to List" and then search for the new document.
Is this possible?

R
rfischerjr authorDevClub member 1/13/2020



Working on a knowledge base app starting with the Knowledge Base Template.
Storing HTML in the documents contents field to serve using "View as HTML".
Some documents refer to a second document and I would like to link to the second document directly from the document being viewed (without having to use "Back to List" and then search for the new document.
Is this possible?

Sergey Kornilov admin 1/14/2020

Maybe it makes sense to use Runner.displayPopup() function to display that other page in popup without leaving the current page:

https://xlinesoft.com/phprunner/docs/how_to_display_any_page_in_a_popup.htm

R
rfischerjr authorDevClub member 1/14/2020



Maybe it makes sense to use Runner.displayPopup() function to display that other page in popup without leaving the current page:

https://xlinesoft.com/phprunner/docs/how_to_display_any_page_in_a_popup.htm


Each record in the documents table has multiple links embedded in the document - I figured out that using a link such as "For more information see <a href='document_view.php?editid1=5'>Shop Drawings</a>" works well. I have to manually add the link ID's - but since they are static and will be infrequently edited it should work. Using View as HTML for the initial View page gives the first document, then clicking on the HTML link pops up the linked document. Now I just need to add a custom button, store the initial page setting (i.e. departments_list.php) and have the button return the user to the list page. Still working on that...