include one html file into another...

User 184085 Photo


Ambassador
1,707 posts

OK, I have my sdrive site about 85% html5 and css3, but one thing I would like to do is have my menu is one file, and dynamically load it into each page. I can't seem to find the html5 equivilent that will work on sdrive

??? :(
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 122279 Photo


Senior Advisor
14,454 posts

I haven't researched S-drive too much, but isn't it possible to use php includes?
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 184085 Photo


Ambassador
1,707 posts

I'm playing with that now, but somewhere in my memory I thought Scott said awhile ago that we can't go willie nillie with php on sdrive, let's see if it works.
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 184085 Photo


Ambassador
1,707 posts

nope... i created two files, the menu in test.html

<li><a href="http://davidwilson.coffeecup.com">Home</a></li>
<li><a href="http://davidwilson.coffeecup.com/stream.html">Info Stream</a></li>
<li><a href="http://davidwilson.coffeecup.com/innovation2012.html">Innovation 2012</a></li>


and test.php with this added:

<nav id="blackboard" class="shadowblue">

<ul class="menuboard-menu sf-vertical">
<?php include("test.html"); ?>
</ul>
</nav>


but it won't let me upload the php file
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 122279 Photo


Senior Advisor
14,454 posts

Have you tried SSI?

If the S-drive doesn't have any server side scripts like php or ssi, then iframe remains...
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 184085 Photo


Ambassador
1,707 posts

I'll look into iframe.

I thought this might work, I got close but not all the way there.

<nav id="blackboard" class="shadowblue">
<ul class="menuboard-menu sf-vertical">
<object data="test.html" type="text/html"></object>
</ul>
</nav>
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 187934 Photo


Senior Advisor
20,190 posts
Online Now

Here's the only thing that I found that worked.:)
http://progrower.coffeecup.com/include.html
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 122279 Photo


Senior Advisor
14,454 posts

Thanks Eric. I really should have thought of that myself, but well, one is getting older...
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.