Creating a New Page

  • Creating custom pages can help you make your site unique for your users and guests. SocialEngine PHP provides you tools that make the process simple to create custom pages and add them to your menu.This article shows you how to create new pages from the Layout Editor in your admin panel.

    Creating the Page

    1. Login to your SocialEngine admin panel.
    2. Navigate to Appearance > Layout Editor.
    3. From the “Layout Editor” page, click the “New Page” link. 
    4. Specify a title, “Page Name” for the page. Choose whether to duplicate an existing page or create a blank one, and then click “Create Page”.  
    5. Click the “Edit Page Info” link and specify a value for the “PAGE URL” option (for example, "mypage" or “mygame” as our example shows). You can also restrict the page you create by user level. Click "Save Changes". 
    6. Click the “Edit Columns” link to specify a layout for this page.
       
    7. Next drag blocks from the “Available Blocks” list into the “Layout Editor”. To add custom HTML, drag the “HTML Block” widget to the page. You can have multiple HTML widgets on the same page. 

      Note: Please keep in mind that not all widgets can be placed on user-created pages. For instance, profile blocks cannot be added to the pages you create. For more information, please see the list of Which Widgets are Allowed on Which Pages
    8. Once you have finished creating your page, remember to click “Save Changes” at the top of the “Layout Editor”.  

    View the Page

    First, you need to know whether mod_rewrite is turned ON or OFF.

    If the path to your SocialEngine admin panel contains an "index.php" (ex: http://www.domain.com/index.php/admin/), then mod_rewrite is turned OFF. Your new page will be accessible by going to the URL:

    https://www.domain.com/index.php/pages/[PAGE_URL]

    where [PAGE_URL] is the value specified in step 5.

    If the path to your SocialEngine admin panel does not contain an "index.php" (ex: https://www.domain.com/admin/), then mod_rewrite is turned ON. Your new page will be accessible by going to the URL:

    https://www.domain.com/pages/[PAGE_URL]

    where [PAGE_URL] is the value specified in step 5. 

    You may want to add a link in your menu to your newly created page. To do so, follow the instructions provided in the Adding/Editing Menus tutorial. When adding a new menu item, be sure to use the full URL path to the page (ex: https://www.domain.com/pages/[PAGE_URL]). Here’s what our settings look like with our “MyGame” page from the above steps.