New Version - With Lots of Options
What is CuteFields?
CuteFields allows you to create custom MySQL fields for your news posts and then be able to call the custom fields through embed variables inside of your templates.
Installing CuteFields
1. Unzip cutefields2.zip
2. Copy cutefields.php to the CuteNews/Plugins directory.
3. Copy mysql.class.php to the CuteNews/inc/db directory.
4. Activate the plugin from the CuteNews admin menu using the Manage Plugins link.
5. Select Activate CuteFields
6. Select the CuteFields options from the admin menu.
7. Create the CuteFields Tables using the button that appears in the top of the options menu.
8. Begin adding custom fields.
Creating CuteFields
1. Within the CuteFields options menu, select from the drop down menu ADD and click the GO button.
2. Enter the name of the new field. This is the name that will appear in your embed variable {cf:name}
3. Enter a description of the field for your reference.
4. Select a field type. You can now choose five options: Text Box, Text Area, Drop Down, Checkboxes and Radio Buttons.
5. Enter the size of the field. The field size represents how many options you would like for your field type.
For example:
A field size of 2 under radio buttons could be used for Male or Female.
A field size of 4 under checkboxes could be used for Dog, Cat, Bird, Fish.
Using CuteFields
Inside your templates you should now see options for your new custom fields. They will appear in the format of {cf:fieldname}. So for example if your custom field name is color the template variable will be {cf:color}. In your template it might look like this:
<td bgcolor="{cf:color}">I like the color {cf:color}</td>
Conditional display is also now available. Using the format like this:
[ifcf:color]I like the color {cf:color}[/ifcf:color].
What CuteFields does NOT do and what I'm working on to add:
1. There is currently no SORTING capabilities YET
2. There is not an option for a 'default' value for your fields.
3. There is no association with categories.
4. This does not work on TextSQL, ONLY MYSQL using CuteNews.ru PHP/MySQL
5. There is no search capabilities YET
Any questions, contact me at drtwister@drtwister.net
This is a first release, so bear with me if you find bugs, issues or have questions. Enjoy.
Update: version 2.1 - Text area now supports full HTML
Update: version 2.1 - Re-uploaded confirmed working version.