Adding php program to a site and layout grid

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
galatai
 
 
Posts: 15
Joined: Thu Sep 24, 2015 10:28 am

Adding php program to a site and layout grid

Post by galatai »

Just wondering whether there is a quick way to insert a php program (menu) onto a site within a specific layoutgrid. I have a menu and large site and only want to change the php instead of re-publishing the whole site and changing the master page. If I change the php menu then the whole site (60+ pages) wil be changed. Have tried several ways but not successful so far!
Any assistance appreciated... Thanks
User avatar
BaconFries
 
 
Posts: 6305
Joined: Thu Aug 16, 2007 7:32 pm

Re: Adding php program to a site and layout grid

Post by BaconFries »

You can add scripts (custom) such as php using the following
Adding HTML, Javascript or PHP to a web page
You can use one of the following to be able to use one object ie your menu on multiple pages and if it requires updating you only do it once and the changes will be made to all
How to use Master Frames?
How to use Master Pages?
How to use Embedded Pages

Note if using PHP then will not be able to preview locally you will need to publish first to see the results.
galatai
 
 
Posts: 15
Joined: Thu Sep 24, 2015 10:28 am

Re: Adding php program to a site and layout grid

Post by galatai »

Thanks but this is not what I am after... I need to place a php install command and then the webpage (.php) at a certain point on a page within a layoutgrid
User avatar
Pablo
 
Posts: 24698
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Adding php program to a site and layout grid

Post by Pablo »

Are you asking to change the extension of the page to PHP?
You can do this for each page individually in the page properties.

After changing the page extension. You will need to republish the page and all pages that are linking to that page.
User avatar
AliGW
 
 
Posts: 700
Joined: Thu Dec 19, 2024 3:41 pm

Re: Adding php program to a site and layout grid

Post by AliGW »

If I understand correctly, the OP wants to have a PHP-driven menu appear on a page in an iFrame. By doing this, they hope to be able to limit the amount of uploading when changes are made to that menu (it would only require an upload to the page displayed in the IFrame). The OP doesn't want to use a master page, as that means republishing all pages associated with that master page when something changes.

Hope I have interpreted the requirement accurately.
Ali
Retired, but still loving to learn & very busy.
https://alisongwright.me.uk
Novice with WWB, but was an avid user of Serif WebPlus before.
Fairly expert at Microsoft Excel (but not VBA) & Affinity by Canva (for page layout).
galatai
 
 
Posts: 15
Joined: Thu Sep 24, 2015 10:28 am

Re: Adding php program to a site and layout grid

Post by galatai »

Thanks for all the input. I do not want to use an iframe - I have done this and it does not work due to iframe restrictions. I need to put the php install part into a layoutgrid so that it is flexible enough. The coding would be <?php install ('https://.....') ?> and that is all I need to do but apart from hand coding it into the site once published there does not appear to be a solution. Have tried adding it as html to a grid but this fails miserably! I realise that WYSIWYG webbuilder is not an html editor as such but there must be a way of putting this coding in. The main reason for doing a menu this way is so that different pages can have different options when they are called and can be changed extremely easily with a little php coding. If there is another way then please suggest without publishing the site every time there is a change (60+ pages). Thanks for responses to this.
User avatar
Pablo
 
Posts: 24698
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Adding php program to a site and layout grid

Post by Pablo »

You can use a HTML object to include PHP code into a Layout Grid.

If this does not work then the code is either incorrect, incomplete or it conflicts with other code on the page.
Any code that woks elsewhere will also work in WWB.
User avatar
BaconFries
 
 
Posts: 6305
Joined: Thu Aug 16, 2007 7:32 pm

Re: Adding php program to a site and layout grid

Post by BaconFries »

I realise that WYSIWYG webbuilder is not an html editor as such but there must be a way of putting this coding in.
As previously mentioned by myself and now by Pablo you can add scripts (custom) such as php using the following (HTML Object)Adding HTML, Javascript or PHP to a web page then simply insert into the Layout Grid as you would any other object(s)
Post Reply