This is a discussion on dynamically add new php pages? within the Php and MySQL forums, part of the Programming / Scripting / Coding category; I am building a website for a friend and want to add a admin section where you can dynamically add ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| | #1 (permalink) |
| WMT Addict | I am building a website for a friend and want to add a admin section where you can dynamically add new html pages. How is this done, seen it alot in most GPL software that i have installed but not sure how to go about writing the code. Any suggestions or tutorials people could point to me would be good? Thanks. |
| | |
| | #3 (permalink) |
| WMT Addict | Thanks for quick reply; So dublicate an entry in the database and the content will just be a text area form content that is apllied using a variable or something. So i would also have to write a new entry to the navigation file at the same time? Am i on the right track? |
| | |
| | #4 (permalink) |
| Super Moderator | Why not just install something like Joomla and prepare a template, then allow the friend to add content as required. Much easier than building from scratch.
__________________ Alex Monaghan - Monaghan Consultants Ltd Web hosting, ADSL, IT & Database consultancy Custom Web hosting on UK or USA servers using Linux (cPanel) or Windows (DotNetPanel) Mobile Phone Ringtones, Logos, Java Games & more |
| | |
| | #5 (permalink) | |
| WMT Addict | Quote:
All you do is get the content of a textbox and add it to db. It will automatically change the nav page if you do it right | |
| | |
| | #6 (permalink) |
| WMT Addict | Your nav function which is what i have reads the titles from the content table to get the links, so when you add a page into the content table the title is automatically added to the nav bar. Imagine that the nav bar and the content are all read from the same table. I usually have to input boxed when designing a cms. 1) title, 2) content. THe title is then read by the nav function which creates the links. |
| | |
| | #7 (permalink) |
| Newbie | Well as monaghan said, its probably best for you to go with a content management system. You can find them on many script sites such as resourceindex.com, or hotscripts.com. Although opensourcecms.com is a good starting point. Although I agree with monaghan, I think using a CMS like joomla might be too complex for what your looking for. I have had first hand experiences from many CMS systems and I would recommend either: EcwCMS: Website: www.ecwcms.com Requiements: MySQL, PHP5. This is a good CMS that is very simple to administer and incorperate with your templates, the only downside is that PHP5 is required and not many website hosts have upgraded due to the problems associated with it. You can try EcwCMS at opensourcecms.com. Another good CMS I have used is called MiniCWB. Its is small, decent CMS for simple editing and creation of webpages. Its very customiseable and can be found here: www.mini-open-cms.com. The good points about this particular CMS is its very lightweight and it does not require a MySQL database, and it runs happily on either PHP4 or 5. Hopefully that helps, Pho~ |
| | |
| Tags |
| add, dynamically, pages, php |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Linking pages in website ?? | terryd68 | Website Development Forum | 2 | 06-09-2006 17:16 |
| PR5 Homepage + 34 PR5 pages + 214 PR3 pages... | SEOArt | Buy and Sell Ad Space | 0 | 11-08-2006 23:01 |
| If your site map has say more than 100 links on several pages | Paul Wainwright | Search Engine Optimisation (SEO) | 0 | 02-02-2006 08:33 |
| How to create pages depending on previous selections? | lanoak | Programming / Scripting / Coding | 3 | 10-07-2005 17:22 |
| SEO Through Well-Built Pages | Wistow | SEO Articles | 0 | 20-03-2005 13:27 |