Including one file into another - Page 1

User 184085 Photo


Ambassador
1,707 posts

In the past I've created pages and used code like:

<?php include("content/page_header.php"); ?>


and

<!--#include virtual="menu/menuscript.html"-->


to load page sections into a master page layout.

SDrive doesn't like php so does anyone have any ideas for me to try that is html5 embed and object seem to be more related to media types.

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


Senior Advisor
14,649 posts
Online Now

I think I read something about S-Drive not being able to handle server side scripting languages, so that excludes php and probably ssi too. What about iframes, or old fashioned framesets?
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 122279 Photo


Senior Advisor
14,649 posts
Online Now

Here it is: http://www.coffeecup.com/help/articles/ … irect-ftp/
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

Yup php off limits, that's why I'm exploring alternate suggestions :)
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 187934 Photo


Senior Advisor
20,271 posts

David, Look at my site.:) Include statement java script.:)
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 184085 Photo


Ambassador
1,707 posts

Possibly the code I can see is after the include has been used so I see the resulting generated code, can you post a sample?
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 187934 Photo


Senior Advisor
20,271 posts

There's a link at the bottom of my include page of a complete html setup.
http://progrower.coffeecup.com/pageinclude.html

I post code on the pages as examples for users. I thinks that's what your seeing.:cool:
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 184085 Photo


Ambassador
1,707 posts

Thanks for the idea, gonna play around a bit because this works, but I am hoping for a simpler solution, something like my one line of code I use to use.
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 184085 Photo


Ambassador
1,707 posts

I'm thinking as inger mentioned iframe is the way ahead here
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 187934 Photo


Senior Advisor
20,271 posts

I probably would use an Iframe to for anything really complicated. I just happen to have that example after helping another VSD user.:)
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

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.