Creating new pages

I am wanting to create new pages that I can attach to the navigation bar that will use the format of all the other pages. I added a tab to the nav bar by going to the Builder--Navigation Menu. I am trying to understand if I just create a php page and then insert all the includes, save it to the root...then change the properties of the newly added tab to point to that page? Or is there a proper way of doing this.

Jeremy
Quote · 8 Feb 2011

So this is a page you created by hand and not with page builder.

Not that it really matters. Adding a navigation item is the same.

The URL for the item you're adding is relative to the root of your site.

So if the page you created is test.php and you put that in the root of the site. Then the URL you use in the nav builder is just simply test.php

But i have a feeling i am still not understanding what you're asking.





https://www.deanbassett.com
Quote · 8 Feb 2011

Let me see if I can clarify a little bit....I know that much of it...I am wondering if there is some trick to the trade? Is there a certain way I have to put the code in to some particular page or class...do I have to enter a reference in the database anywhere? I am trying to understand how the whole thing works. Once I can get that done, the rest will be a breeze.

Jeremy
Quote · 8 Feb 2011

The page builder in dolphin are the easy way to create new pages. It however does not create a physical page so it has limitations.

Very few blocks are available to insert on new pages via the page builder. But the power of that can be increased dramatically with a mod to insert php blocks. Such as my Deanos Tools mod because PHP blocks can do a lot more than the HTML blocks available in the page builder. Or PHP block types can be added to the page builder as you saw from the last topic you were in. I have a mod for that in the market as well.

There is information on creating pages with the page builder here http://www.boonex.com/trac/dolphin/wiki/Dolphin7Docs

The other way to create pages is by hand. And that process is complex to try to describe. Teaching is not one of my stong points.

There are 2 ways to create pages physically located on the server. One has all code in the page itself. This would be the easiest one to create of the physical page types. You can look at the dolphin page in root named sites.php which can be used as a starting point for this type of page. This page type also gives you the highest level of control over the page content as the entire page is in the coding itself.

The other method allows the page to exist in the page builder and becomes a hybrid where some blocks would be physically located in the code of the page and other blocks like page builder blocks located in the database. This one is complex and requires database entries.

Which method you use depends on how much control you need with the page design and coding.

Unfortunatly there is no decent documentation on this anywhere.

https://www.deanbassett.com
Quote · 8 Feb 2011

Thanks Deano...what i ended up doing was creating the page in php...got it working like I want...then added the includes for the header.inc.php etc....

 

Appreciate the information. Going to do some more reading later tonight when I get to the house.

Jeremy
Quote · 8 Feb 2011

Hi,

I have created new pages but i did them as tests and i want to remove them but i cannot find them on the server to delete them and i cannot find anything on the backed to delete the pages.

How can i delete them?

 

I read the tutorial and it was great the only thing it didn't mention was this.

 

Thanks

M

Quote · 15 Mar 2011

A delete button was added to dolphin 7.0.5. Not sure if it will delete pages created prior to upgrade or not.

All previous versions of dolphin required the pages be deleted manually from the database. The table is sys_page_compose_pages

Make sure all blocks have been removed from the page first before you remove the page from the database.

As with all manual database changes, you must clear the dolphin cache after.

https://www.deanbassett.com
Quote · 15 Mar 2011

Thanks Deano.

Quote · 15 Mar 2011

Thank you.

That worked.

Can I rename pages in the table or will it mess things up?

Quote · 15 Mar 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.