In-Depth Getting Started
New to CMS Builder? Not sure where to start? This guide walks you through the exact steps required to set up a basic “News” section. The fundamental concepts demonstrated here can be applied again and again throughout the program.
-
Install CMS Builder
Begin by installing the software. Follow the installation instructions, or request professional installation assistance from interactivetools.com.
-
Add a content section
Sections manage content for specific areas of your site, each with its own editor. To create one:
- Log into CMS Builder and click CMS Setup > Database Editor
- Click Add New Editor…
- Select the Multi Record option
- Enter “News” in the Menu Name field
- The Table Name fills in automatically. It’s used for database management
- Click Create New Menu
The screen shows a few radio buttons and a couple of text fields, with descriptions for each option. See Add New Editor for details on each option.
-
Add fields to your section
After the News section appears in the editor list, click modify to configure its fields.
Add a Summary field:
- Click Add Field
- Enter “Summary” as the Field Label
- The Field Name fills in automatically
- Select “text box” for Field Type
- Click Save
Add an Image field:
- Create another new field with “Image” as the label
- Choose “upload” as the Field Type
- Set Maximum uploads to “1”
- Change File extensions allowed from “gif,jpg,jpeg,png,svg,webp” to “gif,jpg,png”
- Click Save
Finally, arrange the fields logically by dragging the up/down arrow icon next to “Summary” to position it below the “Title” field.
-
Add some content
Click the “News” link in the CMS Builder menu bar. Since no records exist yet, click Create to add your first News record. Populate the fields with text, upload an image, and click Save. Add a few more records before proceeding.
-
Use the Code Generator
Next, generate PHP code to display your content. The Code Generator offers several page types. This guide uses List Page and Detail Page, but others are available, such as Combo Page, which handles list and detail in a single file.
List page code:
- Click CMS Setup > Code Generator
- Choose the List Page generator
- Select “News” for Select Section
- Click Show Code
- Copy the code into a new text file named
newsList.php
Detail page code:
- Return to the Code Generator
- Choose the Detail Page generator
- Select the “News” section
- Click Show Code
- Save the code as
newsDetail.php
After generating the code, CMS Builder displays a message stating that you need to update the Viewer Url settings.
-
Set your Viewer Url settings
- Click CMS Setup > Database Editor
- Click modify for the News section
- Click the Viewers tab
- Enter
/newsList.phpfor List Page Url - Enter
/newsDetail.phpfor Detail Page Url - Click Save Details
-
Upload the pages to your site
Upload both PHP files to your web server’s root directory using FTP. Navigate to
http://www.yoursite.com/newsList.phpto view your News records. Clicking a record’s link takes you to the detail page.
Conclusion
Section titled “Conclusion”From here, you’ll probably want to start using CMS Builder with your own site’s design. You can modify the generated files, or integrate sections of the generated code into your existing pages. See the Working with Generated Code guide for additional implementation details.