This post is continued from previous post: Introduction to Pods Framework
We are going to create wireless key directory with Pods Framework.
If coffee shop and mamak restaurant are your usual hang out places, There are chances that this is one of thing you would need often. It would be nice if you can collect it and share with your friends right?
So here it is, It will be a single table module and there are no target audience, but if you know database or you can do programming it would be much easier for you.
Creating new pod from Pod Admin
This is how I create new pod to manage list of wireless key.
Login to Admin Dashboard .
On your left side should have list of menu. Under menu named Settings, you should see
Pods Admin menu, click on it
Click Setup and you will be headed to setup page.
Click Add New to create new pod.
You will see this page, click Create New to create new pod.
You will see page below. Enter same values like what you see below, after you are done, click Next Step to proceed:
Now new pod has been created.
Adding required fields
You will see this page after creating new pod.
I guess that would be easier to understand, Field label is what we see in form , Field name is exactly what we see as table column name.
This is how the database table look like in PHPMyAdmin
Table name will have prefix wp_pods followed by underscore _ and your newly created pod name, which is wireless_keys
Simple enough, now we are going to add required fields for this pod.
This is how I create fields for this pod.
Below is list of fields we need for this pod:
- Location Coffee shop, Mamak, Mosque, Hospital, Police Station etc
- Key Wireless key / password
- Key Type Type of wireless key, WEP, WPA etc
Note:
The wireless key type should be in another table, to put list of key type, so in the future when you have many wireless keys stored in database, there will be no chance you will see list of key type like below:
- wep
- WEP
- wPe
Since we are just starting I think this will be enough as long we can write and retrieve data.
Now point your mouse on Label named Name , and click Edit to edit.
We will replace Name with Location which is location of wireless access point , it could be mamak, coffee shop, or even mosque.
Fill in the field values like what you see below:
Click update when you are done. That how you update field value.
Now we are going to create field for Key and Key Type . Both of this fields required to let your friends know what is the wireless key and what type it is so they can connect to wireless access point.
Click Add Field to add new field , to make it easier below is what my Key and Key Type looks like.
Now we are done with creating fields. On the right side of page should have Save Pod . Click on it to save this pod.
After saving pod, you should see on the left side should have new menu named: Wireless Keys , it is under menu named Comments and above menu named Appearance. Click on it.
You will see this page (See image above). You can add , edit, or delete wireless keys on this page.
Now if you add new wireless key, it will list it like below:

This is not what we expect to see. You can change it to show Location instead.
To show Location instead of ID, go back to page Setup , and click edit Wireless key .
Scroll down and you will see Advanced Options , click on Pod Options .

You should see last field contain ID , instead of Location .

Change it to Location and click Save Pod .
Now if you go back to Wireless Key page, you will see it shows Location instead of ID .

We are done with this part. We will continue this module on next part. We will cover this topic on next post :
- Create new page to show wireless keys
- Create template file and use Pods Frameworks functions to retrieve and show wireless keys