Development #cms#php#programming 1 min

Creating new pages integrated with Blog:CMS (NucleusCMS)

Translation of the original in Catalan. Read it in: CatalàCastellano

Reading the Blog:CMS forums I have come across a very interesting note. Basically it is about being able to create new web pages inside our portal as if they were embedded in the personal CMS (Content Managment System) system itself.

So what is commented is that two things have to be done:

1st) A new skin has to be created, a good idea for example is to copy the skin called "About", the idea is that the content of the new skin be similar to this: ("MyNewSkin")

<%ExtraSkin(header)%><div id='items'><h2>New Title</h2>Your Content here</div><%ExtraSkin(shortsidemenu)%><%ExtraSkin(footer)%>

2nd) We create a PHP file with the following content: ("NewBlankPage")

<?php$CONF = array();$CONF['Self'] = "index.php";include('./config.php');selectSkin('MyNewSkin'); selector();?>

Now we only need to access http://host/path/NewBlankPage.php and we will have a page that will look as if it were properly from Blog:CMS, whatever theme we use.