HTML, CSS, PHP and More

?view=page&help=goldfish4&language=en

Extend the functionality of Goldfish with HTML, CSS, PHP and more. Goldfish is very flexible for web developers.

In Goldfish you can embed small HTML snippets or develop large webapps. Goldfish offers full flexibility in the development of web applications of all kind.

Small snippets of code like a Google Maps map can be easily integrated and placed on a page with an HTML Code item. Please read the chapter of the HTML Code item for more information. The HTML Code item is part of Goldfish Standard and Professional.

For more options use the Code view. Here you can insert your own code at any point in the document. Select the page on which you want to insert code and click on Code from the toolbar.

Goldfish displays the source code of the current page. Write your own code directly into the source code. The added code appears in red. Click on the Delete button to delete all added code.

Delete all custom code from the page

When you edit items on the page and for example delete an item, to that you have added your own code, Goldfish can't place this code into the generated source code any more, because the corresponding point is deleted. In this case, the message Own HTML code could not be automatically inserted. will be displayed.

Not automatically inserted HTML code

Then click on the button Not automatically inserted HTML code and delete the code from there or copy it to the desired location in the document.

In the Code view, you can insert code at any point. However, deleting the from Goldfish generated source code is not possible.

With Goldfish it is also possible to integrate individual files and folders into the project. You can embed all files and scripts that are required by your application. Click on + below the project list.

Add External File...

Add External Folder...

Click on Add External File... to add an external file from your computer to the project and with Add External Folder... a folder with files. All added folders and files can be moved up and down on the project list like a page.

Inserted files and folders are only shortcuts and are not embedded into the project. That means changes in this files are recognized from Goldfish. Do not move or delete added files, otherwise they can't be found any longer by Goldfish when creating the website.

For some applications like PHP it is necessary to change the file extension of the pages that are generated by Goldfish (default is html). Click on PROJECT on the top left of the project list and change Project > Suffix of Code Files in the properties.

If you choose the file extension php, you can enter php code in the Code view directly and develop PHP applications.

By default, Goldfish generates the HTML code for the page to that you can add your custom code in the Code view. If you want to write the complete code of the page, the generated code from Goldfish is not needed. In this case, enable Page > Disable HTML code output from the properties of the page. A blank page will be displayed in the Code view then. You can fill it completely with your own code.

Overwriting Goldfish Generated Files and Scripts

If you don't like the default-generated images in the folder support or you want to make changes to the scripts, you can overwrite individual files from the folder support.

  1. To do this, select File > Export > Website in Downloads from the menu.
  2. Drag the folder support from the generated website folder to the directory with your project file.
  3. Replace there particular pictures, with your own, or edit the scripts.
  4. Delete all other files and folders to which you have not made any changes.
  5. Add the folder support from your project directory with + and Add External Folder.

If you have changed the name of the support folder in the properties at Project > Name of Support Folder, you have to drag the folder with the new name from the generated website (step 1).


Did this help page answer your questions?

If you need additional assistance regarding this topic or if there's missing some information in this chapter, please write us.