WebSite publication

When you are ready to push your pages online, you can generate the website using the Publish Website feature.

You can use any FTP client application to send your web pages online or you can use the publication process to execute your custom PowerShell scripts.

Website generation settings

You can configure the way your pages will be generated. Open the application settings dialog and go to the Website generation section. Options are:

  • Automatically add rel="noreferrer" attribute on external hyperlinks (default is YES)
    It will add a new attribute on all hyperlinks that navigate to an external website (link starting with http or https).
  • Automatically add target="_blank" attribute to external hyperlinks (default is YES)
    It will add a new attribute on all hyperlinks that navigate to an external website (link starting with http or https).
  • Compress generated HTML code (default is NO)
    It will compress (minify) the produced HTML code to speed up page downloading.

Basic publication with FTP

If you just want to publish your website using FTP, click the the Website > Publish website button.

In the Publish website dialog, you can specify the target folder for the generated files and activate the Generate sitemap.xml action.

Complete Publication workflow

Publication workflow is intended to respect your deployment process. You can fully customize the workflow by adding your own PowerShell scripts to copy generated files to a folder, to an FTP server or event launch more complex tasks such as CI/CD pipelines.

Click the Website > Publish website > Advanced publication button to open the Publication workflow dialog.

In the Publication workflow actions section, you can add and edit the steps that PageFabric will run during the publication process.

  1. Click the Add custom action button to add a new action.
  2. Enter your action name in the Action name text box
  3. Select your PowerShell script by clicking the dots in the Script path area
  4. Type the script arguments in the Script arguments text box. Some global variables are available in the Global settings tab.
  5. If you want the process to wait for your validation before to run this action, activate the Wait for approval option.
  6. Click the Save button (disc on top right of each action)

Repeat those steps to create your own publication process.

You can find some PowerShell script examples on Github repos .

When you run the publication process, logs will appear in the Show logs section. It can help you debug your PowerShell scripts.

Start a new publication or continue an existing one

To start the publication process from first step, click the Start new publication button (in yellow in the figure bellow).

If you have set some actions to wait for your validation, they will appear as Pending validation (in red in the figure bellow). You can decide to perform these actions later. The publication status is saved in your Website settings, so you can quit PageFabric and come later to continue your workflow where you left it.

Click the Pending validation, click to continue button to resume your workflow.

Was this page helpful?   Yes   No
Improve your PageFabric skills

Explore user guide

Have a question?

Join us on twitter