Insert html-document into database frontend

Martin68

Well-known member
Hi there,

i am very happy with DaDaBIK, now i want to extend the menu with some html-documents a have already had.

Can i link a html-doc into the menu so that the menu stays when opening this document?

I tried a custom page with an external link and it works, but by clicking at the menu für this external page my dadabik site was left. Any idea how i could fix this?

kind regards

Martin
 
Create a custom page of type PHP and have the php file just do a redirect to the html page?

Another way would be to wrap the html content in an iframe inside the PHP file.
 

Martin68

Well-known member
Thanks for your answer, but I am a no-coder, my webknowledge is nearly zero.

Does a php-Redirect show the html-file in the inner part of the dadabik Site?

Kind regards

Martin
 

deep64blue

DaDaBIK Guru
I got this working using php.

Copy example.php in your/include/custom_php_files folder and call it iframe.php

Edit the contents so it reads as follows:-

[pre]
<?php
/*
This is an example of custom PHP page. You are free to use your own PHP code.

Before writing your code for a custom PHP page, read the instructions in the documentation (chapter "Custom Pages").


*/

// don't delete this line, this must be the first line of your code
if(!defined('custom_page_from_inclusion')) { die(); }


echo "<iframe height=500 width=1250 src='https://dadabik.com/index.php?function=show_documentation' title='iFrame example'></iframe>";

?>

[/pre]

Replace the dadabik link with link to your html page.

Go to Pages in the Admin centre and add a PHP page called iframe.php, save and then edit the permissions to allow access.

You might need to enable PHP in config__custom.php:-

$enable_custom_php_pages = 1;

Good luck!
 

eugenio

Administrator
Staff member
Hi,
the solution explained by deep64blue is correct if the document is external, if you already have the document you can create a php custom page and just copy the html after this part

<?php
/*
This is an example of custom PHP page. You are free to use your own PHP code.

Before writing your code for a custom PHP page, read the instructions in the documentation (chapter "Custom Pages").


*/

// don't delete this line, this must be the first line of your code
if(!defined('custom_page_from_inclusion')) { die(); }



?>
 

Martin68

Well-known member
Thanks for your support. Could work, but i ve only a license for the cheapest version.

Kind regards

Martin
 

Martin68

Well-known member
deep64blue Wrote:
-------------------------------------------------------
> You can create a custom html page from PAGES and c
> opy and paste your html in there then.

Cool idea! Unfortunately for this special website it doesn't word, it is a dynamic website created with "mindmanager", feel free to have a look:

http://ratingen.kommunale-rechnungsprüfung.info/images/Aktenplan.html

Kind regards,

Martin
 

Martin68

Well-known member
Hello everybody how helps,

Just want to let you know, that it works!

Thanks a lot.

Kind regards

Martin
 

Martin68

Well-known member
Another Question:

I am near the end of development and wrote a documentation which i saved as PDF-file.

How can i insert the PDF-file into the DaDaBIK-Structure, can i use an internal link which ist opened in another tab of the browser? How would you solve this?

Kind regards

Martin
 

FRW

Well-known member
Hi Martin,

I've done this with a external link to the folder where the manual is; but this will open in the same tab for default.
And within the "footer.php" using the <div class="powered_by_dadabik"....>
 
Top