Home Page
Your Cart
Your shopping cart is empty!
How to Create a Custom Page
Printer Friendly Tell a Friend
How to Create a Custom Page
Price: This product is FREE. No payment is required.

Qty:

 Description

Requirements:
You need to make sure you have the correct set up and that you can login to the admin panel.

 

You can create a page using an existing Dolphin page by updating the Language Keys. By updating or changing the key, you can then administer the page via the Dolphin admin

1. Set up the keys that you will be using in your custom page. We will need to set up the following keys:

Key
String
Category
Where on Page
_My Custom Page My Custom Page Misc db only
_MY_CUSTOM_PAGE Your info here Page texts Main content area
_MY_CUSTOM_PAGE_H My Custom Page Page titles Browser Page title
_MY_CUSTOM_PAGE_H1 My Custom Page Page titles Box Page title

Each of the keys above play a role in what information gets displayed and where. They are used by the custom page to determine the info that will be shown on the page.

 

2. Open up an existing Dolphin page, for example, we will use the "about_us.php" found in the root directory as our starting point. Make sure you make a back up of this file.

 

Setting up the Language Keys
1. From the admin panel go to Settings > Language Settings.
2. In the Language strings panel click on the "Add a new language key" link.
3. A page will pop up asking. Fill out this form like this:

 

New language key name: _My Custom Page
Category: Misc

Click save changes. Now do the same for the remaing keys in the list I gave you earlier in the tutorial. Namely:

 

Key
String
Category
_My Custom Page My Custom Page Misc
_MY_CUSTOM_PAGE Your info here Page texts
_MY_CUSTOM_PAGE_H My Custom Page Page titles
_MY_CUSTOM_PAGE_H1 My Custom Page Page titles

 

 

After you've done that, do a search for the new language keys you just created. We want to make sure that they are in the database. Go to the Search for stings panel and enter "my custom" in the search box. Click on the Search button. Your keys should show up.

 

The next step is to edit the keys by adding some verbose content. What we want to do is allow you to see how these keys interact with your page. We do this by literally assigning the name of the key as the string value. You can change it later on, but by doing this it will give you a better grasp on how the keys are targetting your custom page.

 

For the first key, _My Custom Page click on the edit link. A pop up shoud appear. Enter "_My Custom Page Misc" for the value and click save.

 

Do the rest the same way using the following info:

 

Key
String
Category
_My Custom Page My Custom Page Misc (We just did that one.)
_MY_CUSTOM_PAGE Your info here Page texts
_MY_CUSTOM_PAGE_H My Custom Page Page titles
_MY_CUSTOM_PAGE_H1 My Custom Page Page titles

 

After you've done that, do a search for the new language keys you just created. We want to make sure the new values are in the database. Go to the Search for stings panel and enter "my custom" in the search box. Click on the Search button. Your keys should show up. It should look something like this:

 

Boonex Dolphin Tutorial - How to create a custom page

 

Now let's make our custom page.

 

Setting Up the Custom Page
1. Go to your root directory and find the about_us.php page. Make a backup and then resave it as my_custom_page.php.
2. We will be replacing the following lines of code with the keys we just made. On or about line 41 you will find this bit of script:

 

 

You want to either delete it or comment it out. In this tutorial will copy it, comment it out and then put in our custom keys so it looks like this:

 

 

If you noticed, I also include "jt note". It is a habit that I have so I can find the places in the scripts where I've revised. It's handy when you want to find out where you've done customizations as well. Just do a search for it.

Now for the main content. On or about line 64 you will find this bit of script:

 

 

Once again, we comment it out the parts we are replacing and inserting our own keys so that it now looks like this:

 

 

Save the file and upload it to your server.

 

When you view the page it becomes apparent where the keys are being used. You can then go back and update those parts all the while keeping in mind you know where the info will be showing.

 

You can then go back and modify the key values by going to Settings > Language Settings. Do a search for the key values and then use the edit functions.

 

One last thing. You will notice that the system will not allow you to add a picture or items such as Google Adsense. There is a way around this.

 

For example, if you want add a picture to your custom page, you can update edit the function PageCompMainCode like this:

 

 

With a custom page, you can do all kinds.

Copyright 2000 - 2009 EyeWay - KMD - 346 South Street Gorham Me. * NEW: 207-956-9662

. .