WebSite X5Help Center

 
Hugh S.
Hugh S.
User

Drop down menu links to php not html  en

Autor: Hugh S.
Visited 1397, Followers 1, Udostępniony 0  

I am still confused by, and having trouble with, the coding of pages as php as opposed to html.

On my latest update to a specific page the update does not show on the page listed as .php, but does appear if I change the suffix to .html.

https://www.douaiabbey.org.uk/prayer-list.php

https://www.douaiabbey.org.uk/prayer-list.html

The drop-down menu links to each page as .php not as .html.

Why are the updates not showing on the .php version of the page? Or should I change the drop-down menu to link to .html pages? If so, how?!

Many thanks.

Posted on the
3 ODPOWIEDZI - 1 POMOCNY
John S.
John S.
User

Hello Hugh

A page can be either a html or a php. The page you link to is the page that has a setting for html or php.

If you change the page-type from html to php, the html-page will still exist.

If you on the server delete the "old" page with the page-type that should not be there, then you will eventually see an error.

This is because the "old" page is still in the browsers cahce. Clear the cache and you should see the correct page.

You might have to refresh all the pages that has a link (via the  menu ) to the page.

The pages and menu are automatically updated to show the actual page, but the caching can do that you see something "old". 

Czytaj więcej
Posted on the from John S.
Paul M.
Paul M.
Moderator

Hello Hugh,

To resolve your current issue:

  • Highlight the prayer-list page in the sitemap in Step 3 by clicking on it once (page will turn blue)
  • Then click the Properties button on the toolbar above the sitemap
  • In the new screen which appears click on the Expert tab
  • Change the File Name Format field from .html to .php
  • Hold down the CTRL key whilst entering the Preview mode
  • Export the project to the server in Step 5

When you build a website with WebSite X5, the software usually sets the File Name Format for each page automatically.  New pages start out with .html extensions as default.  If WebSite X5 detects a need to alter this then it will normally do so without user intervention (there are some exceptions, but ordinarily you can let the software take care of this for you).

In the case of your prayer-list page we can safely say that it has to carry a .php file extension, as there is clearly PHP code showing on the page (Latest News section).

The menus which WebSite X5 creates will automatically point to either the .html or .php version of any page, dependent on how you set the File Name Format for each page as specified above (there are other file extensions available too by the way).  In other words there is nothing else you need to do, and indeed there is no other mechanism by which you can change the file extension each menu item points to.

Please let us know if you continue to have difficulty with this.

Kind regards,

Paul

Search the WebSite X5 Help Center 

Czytaj więcej
Posted on the from Paul M.
Hugh S.
Hugh S.
User
Autor

Mea culpa! I now see that I failed to delete the html versions of the page on the server. This seems to have done the trick. I guess this is a problem I never got to grips with after changing versions of Evolution.

Thank you both!

Czytaj więcej
Posted on the from Hugh S.