Can someone please review this and possibly tell me what I am doing wrong? There should be a horizontal and a vertical menu. I was trying a php include for the first time.
ilala.org/news14/index.html
ilala.org/news14/index.html
Hiya Angie,
I didn't go far into what it may be as I noticed right away that the page name ends in .html and in order to use PHP Includes you need to rename the page to have a .php extension. Try that and see if that fixes it.
I didn't go far into what it may be as I noticed right away that the page name ends in .html and in order to use PHP Includes you need to rename the page to have a .php extension. Try that and see if that fixes it.
I am so lost!!! changing it to php didn't work either
here is what the VSD site looks like:
ilala.org
here is what the VSD site looks like:
ilala.org
The only time I've used php includes on a VSD site, the php include had to be at the top of the html page, even before the doctype! Only way was to publish the site, then use CC's DirectFTP and open the html page and add the include code at the very top. Then save it as a .php as Jo Ann said. It works.
But I have a question about the pages you posted here ... you show a VSD site at ilala.org, but it looks like the other site page was made with something else. Maybe RLM as it has the coffeegrinder.css in it. Or does the html editor use that too? I don't really code a lot. I was just surprised to see 2 different markups.
But I have a question about the pages you posted here ... you show a VSD site at ilala.org, but it looks like the other site page was made with something else. Maybe RLM as it has the coffeegrinder.css in it. Or does the html editor use that too? I don't really code a lot. I was just surprised to see 2 different markups.
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
-------------------------------------
https://sadduck.com
I'm trying to switch from VSD to RLMP. I still want the two menus and figure out to fix to get them to work since the update won't be out for another month or so (per Scott). In trying to avoid having to change the menu code on every pages as the site grows, Eric suggested php include. I'm stuck and I'm really hoping to figure this out soon as I need to update the site.
Okay, so you need to add it to RLM. Well don't lose hope. Eric or Steve should be along shortly with a solution.
Graphics for the web, email, blogs and more!
-------------------------------------
https://sadduck.com
-------------------------------------
https://sadduck.com
Hi Angie,
Be very careful when using your mark up. VSD and RLMP are two opposite programs.
That being said here is how i would address a php include for a website.
I have created an html page that I am going to use in my include. This is the code example I used:
I saved this page in the root directory of my website and I called it nav.html
Then in my project I simply pasted this code everywhere I wanted my menu to show up:
you can view an example of the website I used this technique in http://lucsusedequipment.com/listings.htm
Hope this helps.
Be very careful when using your mark up. VSD and RLMP are two opposite programs.
That being said here is how i would address a php include for a website.
I have created an html page that I am going to use in my include. This is the code example I used:
<ul>
<li><a href="index.htm"><span>Home</span></a></li>
<li><a href="listings.htm"><span>Listings</span></a></li>
<li><a href="leasing.html"><span>Leasing/Financing</span></a></li>
<li><a href="ContactUs.htm"><span>Contact Us</span></a></li>
</ul>
<li><a href="index.htm"><span>Home</span></a></li>
<li><a href="listings.htm"><span>Listings</span></a></li>
<li><a href="leasing.html"><span>Leasing/Financing</span></a></li>
<li><a href="ContactUs.htm"><span>Contact Us</span></a></li>
</ul>
I saved this page in the root directory of my website and I called it nav.html
Then in my project I simply pasted this code everywhere I wanted my menu to show up:
<!--#include virtual="nav1.htm" -->
you can view an example of the website I used this technique in http://lucsusedequipment.com/listings.htm
Hope this helps.
Taking over the world one website at a time!
Steve Kolish
www.misterwebguy.com
YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
Steve Kolish
www.misterwebguy.com
YouTube Channel:
https://www.youtube.com/channel/UCL8qVv … ttneYaMSJA
The php include will save you a lot of time in the future if your navigation menu changes.
Place your navigation code on a page and save it as navmenu.php inside a directory on your site called includes.
Now open your RLM pages in an editor and place the following code in the spot you created in RLM app.
<?php include 'includes/navmenu.php';?>
You may need to alter the above code based on how you export and save your RLM site to your server.
Place your navigation code on a page and save it as navmenu.php inside a directory on your site called includes.
Now open your RLM pages in an editor and place the following code in the spot you created in RLM app.
<?php include 'includes/navmenu.php';?>
You may need to alter the above code based on how you export and save your RLM site to your server.
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
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
Gunsmoke wrote:
The only time I've used php includes on a VSD site, the php include had to be at the top of the html page, even before the doctype! Only way was to publish the site, then use CC's DirectFTP and open the html page and add the include code at the very top. Then save it as a .php as Jo Ann said. It works.
The only time I've used php includes on a VSD site, the php include had to be at the top of the html page, even before the doctype! Only way was to publish the site, then use CC's DirectFTP and open the html page and add the include code at the very top. Then save it as a .php as Jo Ann said. It works.
The php stuff you put on top, before the doctype, is only necessary if you have php code (other than includes) in the page. Php includes don't need that, and they are put directly at the locations where you want the included stuff (menu, header, footer etc) to appear.
Ha en riktig god dag!
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
Inger, Norway
My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com
I would also include that if you want to keep a pages .html extension you will want to setup your host to parse php inside an html page. This can be done with a little .htaccess manipulation.
For web servers using PHP as apache module: AddType application/x-httpd-php .html .htm
For web servers running PHP as CGI: AddHandler application/x-httpd-php .html .htm
In case you wish to do the ASP mimick:
For PHP as module: AddType application/x-httpd-php .asp
For PHP as CGI: AddHandler application/x-httpd-php .asp
For web servers running PHP as CGI: AddHandler application/x-httpd-php .html .htm
In case you wish to do the ASP mimick:
For PHP as module: AddType application/x-httpd-php .asp
For PHP as CGI: AddHandler application/x-httpd-php .asp
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
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.