Jump to content

CMS


fatmart

Recommended Posts

Hello everyone,

 

I am looking to do a CMS on my own instead of using joomla and such.. What I want to do, basically, is to be able for me to login as admin and change the content of my page from there using a text box. I found some tutorial and scripts on the internet, but nothing really similar. The closest that I have found : http://www.php-mysql-tutorial.com/cms-php-mysql.php . But I don't need to add articles or stuff like that, I need to be able to add links in my menu and add content into them. Could anyone help me with a link or something ? :) It would be much appreciated.

 

Regards and thanks in advance

 

Mart

Link to comment
Share on other sites

How much PHP experience do you have? A good way to start is read up on the model-view-controller design pattern. It may be intimidating but in the long-run you'll have a high quality content management system. That is if your going to this at a object oriented approach.

 

To add links and content to a menu I suggest you build a menu class. For example:

 

<?php

$menu = new Menu('menu1');
$menu->AddLink('Google', 'http://www.google.com');
$menu->AddLink('Yahoo', 'http://www.yahoo.com');
$menu->draw()

?>

This will generate a div will handle style information and the such. You can then create style sheets with a menu class to handle how the menu will look and be positioned or even create methods that position the menu.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.