Farmers helping farmers farm better through collaborative efforts.
|
NavigationUpcoming events |
Recipe for Classifieds in Drupal 4.7If you are an Active Farming member or visitor, I'm sorry but this page has nothing to do with farming. This is a technical page about the platform we use. Recipe for Classifieds in Drupal 4.7. This is a recipe on how to get Classifieds in Drupal 4.7 like: http://www.activefarming.org/classifieds Overview: This recipe uses these (up to date) items:
1) The first thing you need to do is create a custom flexinode. Create the fields that you want people to be able to enter. Some recommendations are: Title, Description, Name, Email, Phone Number, Price, and Pictures. Do not create fields that you would want people to be able to filter the classifieds by (state, category etc). 2) Create Categories (taxonomy) with the terms you want people to choose from and assign your flexinode as "type". I would suggest having at least:
3) Create a custom template.php file in order to use a custom node-flexinode-*.tpl.php file. 4) Customize your node-flexinode-*.tpl.php file where * is your flexinode number. Be sure to add your taxonomy "categories" to the node in a way that will make sense to the end user. 5) Create a custom "view" using views.module. Make it a "Page" and "table view." Next, choose the "fields" you want shown on the classified table view. Next, choose the filters you want the type to be able to be filtered by. Choose which filters you want to "expose" to the end user. Next modify all the permission and misc view settings to get it to appear the way you want. 6) Next, edit your style.css file to get the classifieds to look the way you want them to. You can adjust the tabs, colors, padding, etc... 7) Visit "access control" and make sure you set role permission for creating your classified ads. 8) That's about it! This is my first attempt at creating a "recipe" for drupal. If you have any questions or if I'm not clear enough on a point, please let me know. I'm sure I'll have to make some changes to this once I get some feedback from other users. Once I get a more final copy, I'll submit this to the Drupal Handbook. I may also be willing to install a classified on your site if you need help for a fee. Contact me for information. |
User loginNew forum topics
Recent Farming Articles
|