Create .HTML, .CSS, .JS, .PHP, etc File Extensions Using Webpage Builder (FTP Alternative)
Brilliant Directories allows users to create and save .HTML, .CSS, .JS, .PHP, .TXT etc file extensions using the Webpage builder. The best approach towards this setup will be to first create the document as a widget and then save the page with the Page Type Custom Widget as Webpage.
To get started navigate to Toolbox - Widget Manager and create a new widget with the file content. For this example we will create a CSS file to be used to set the style of the page:
Click on Create New Widget
We recommend adding the file type to the corresponding tab, since in this case we are adding a CSS file, the content is added to the CSS tab:
Once the content has been added, save the widget.
The next step will be to create the static page, we recommend setting up the page type for these pages that have different extensions, as Custom Widget as Webpage
Once the page type has been selected, and the widget created, the option to select the new custom widget will show up in the dropdown:
Advanced Tip For Developers:
The Select Content Type setting will allow users to specify the content type
This should only be selected if the content type needed is known, otherwise can be left as default. If the content type is not listed, the header at the top of the custom widget can be customized with the content type of choice.
The next step will be to save the static page with the correct file extension. In this example, we will save the file as "newstyle.css"
Once the webpage has been saved, it can be referenced or linked to using the full URL path.
These pages can be excluded from the Sitemap if needed by checking the Exclude from Sitemap option under Page Options.