This is a simple project to build a personal blog. We will look at fundamental development methods.
Analysis
Create a system for managing your personal blog. There will be sections to manage categories and blog posts. There will be a page that displays all blog posts in pagination, as well as a detail page for each post where end users will be able to leave comments that will be displayed publicly once approved.
Arrange:
So, here's how the project will be created.
Sl.
Requirements
Method
Technique
Estimation
1
Create admin panel navigations
Interface Builder
XML
5 Minutes
2
Category Management
CategortySet
XML
5 Minutes
3
Post Management
InformationSet
XML
5 Minutes
4
Create Configuration Options
Site Settnigs
XML
5 Minutes
5
Beautify Web Address
Page Router
XML
5 Minutes
6
Create a model for the comment's database table.
MVC
PHP
3 Minutes
7
Develop a frontend that shows blog post details and list views.
MVC
PHP
20 Minutes
8
Develop a frontend for comment submission and viewing.
MVC
PHP
20 Minutes
9
Manage comments in the admin panel.
MVC
PHP
20 Minutes
Action:
Le's go through each step one by one.
1. Create admin panel navigations:
The admin panel navigation is managed by Interface Builder, which is controlled by basic XML code. Create a new file blog.xml in below location.
development/definition/interface_builder
In blog.xml, paste the following code.
<?xml version="1.0" encoding="utf-8"?>
<InterfaceBuilder>
<navigation name="blog">
<parent>
<title>Personal Blog</title>
<action />
<submenu />
<acl>
<group>superadmin</group>
</acl>
<sort_order>7</sort_order>
<icon />
</parent>
<child>
<!-- All Menu goes here -->
</child>
</navigation>
</InterfaceBuilder>
Note: The navigation name "blog" is one of the most important elements in the mentioned XML that will be utilized for generating a page and other connections.
Now, log in to the admin panel, and you'll notice a new tab called "Personal Blog" has appeared.
To have a better understanding, watch the video below.
2. Category Management:
To maintain blog categories, we'll now use CategorySet. Go to the below location.
The system is ready to manage categories. Now, open the blog.xml file as indicated in step 1 to edit the Interface Builder and update the Amin Panel Menu.