$Id
This tutorial will introduce you to drupal's taxonomy feature, as well as the contributed views and panels modules. We will build a home page that contains columns of blocks with classified ad headings and categories similar to those found on craigslist.
Download the following files:
Install, enable, and configure the newswire theme:
- Install the newswire theme under sites/all/themes.
- Enable it and make it your default under Administer > Site building > Themes.
- Disable the Logo under Administer > Site building > Themes > Newswire > configure.
Enable the following modules:
- Chaos tool suite (ctools)
- Chaos tools
- Page manager
- Views content panes
- Other
- Panels
- Mini panels
- Panel nodes
- Panels
- Views
Create the vocabularies:
Create the following vocabularies (personals, for sale, etc.) under Administer > Content management > Taxonomy, and then add the appropriate terms (strictly platonic, women seeking women, etc.) to each vocabulary:
- personals
- strictly platonic
- women seeking women
- women seeking men
- men seeking women
- men seeking men
- misc romance
- casual encounters
- missed connections
- rants and raves
- for sale
- appliances
- arts+crafts
- antiques
- auto parts
- baby+kids
- barter
- beauty+hlth
- bikes
- boats
- books
- business
- cars+trucks
- cds / dvd / vhs
- cell phones
- clothes+acc
- collectibles
- computer
- electronics
- farm+garden
- free
- furniture
- garage sale
- general
- household
- jewelry
- materials
- motorcycles
- music instr
- photo+video
- rvs
- sporting
- tickets
- tools
- toys+games
- video gaming
- wanted
- jobs
- accounting+finance
- admin / office
- arch / engineering
- arch / engineering
- biotech / science
- business / mgmt
- customer service
- education
- food / bev / hosp
- general labor
- government
- human resources
- internet engineers
- legal / paralegal
- manufacturing
- marketing / pr / ad
- medical / health
- nonprofit sector
- real estate
- retail / wholesale
- sales / biz dev
- salon / spa / fitness
- security
- skilled trade / craft
- software / qa / dba
- systems / network
- technical support
- transport
- tv / film / video
- web / info design
- writing / editing
- [ETC]
- [part time]
- housing
- apts / housing
- housing swap
- housing wanted
- office / commercial
- parking / storage
- real estate for sale
- rooms / shared
- sublets / temporary
- vacation rentals
- services
- adult
- automotive
- beauty
- computer
- creative
- event
- farm+garden
- financial
- household
- labor / move
- legal
- lessons
- pet
- real estate
- skill'd trade
- sm biz ads
- therapeutic
- travel / vac
- write / ed /tr8
- gigs
- adult
- computer
- creative
- crew
- domestic
- event
- labor
- talent
- writing
Create the views:
Create the following views under Administer > Site building > Views:
- The personals view
- Go to Administer > Site building > Views and click the Add tab.
- Enter personals as the View name, and select Term as the View type, then click Next.
- In the Basic settings set the Items to display to 99.
- Add a field by clicking the plus sign under Fields.
- Select Taxonomy under Groups, and click Taxonomy: Term, then click Add.
- Delete the Label: Term, and select Link this field to its taxonomy term page, then click Update.
- Be sure to click the Save button.
- Add a filter by clicking the plus sign under Filters.
- Select Taxonomy under Groups, and click Taxonomy: Vocabulary, then click Add.
- Select personals under Options.
- Be sure to click the Save button.
- The for_sale view
- Do the same thing you did before, but substitute for_sale for personals.
- The jobs view
- Do the same thing you did before, but substitute jobs for personals.
- The housing view
- Do the same thing you did before, but substitute housing for personals.
- The services view
- Do the same thing you did before, but substitute services for personals.
- The gigs view
- Do the same thing you did before, but substitute gigs for personals.
Create the panels:
Create the following panel page under Administer > Site building > Panels > Create new... Panel page:
- Enter Ad categories as the Adminstrative title, and ad_categories as the Machine name and the Path.
- Click the Make this your site home page, then click Continue.
- Select the Three column 33/34/33 panel layout, then click Continue.
- Create a left column panel:
- Click the Left side region gear and set the Region style to No style.
- Click the Left side region gear and click Add content.
- Select Views > personals, then click Continue.
- Click Override title and enter personals, then click Finish.
- Click the personals pane gear and set the change the style to System block.
- Click Finish, then Update and preview.
- Be sure to click the Save button.
- Create a middle column panel:
- Click the Middle column region gear and set the Region style to No style.
- Click the Middle column region gear and click Add content.
- Select Views > for_sale, then click Continue.
- Click Override title and enter for sale, then click Finish.
- Click the for_sale pane gear and set the change the style to System block.
- Click Finish, then Update and preview.
- Be sure to click the Save button.
- Create a right column panel:
- Click the Right side region gear and set the Region style to No style.
- Click the Right side region gear and click Add content.
- Select Views > jobs, then click Continue.
- Click Override title and enter jobs, then click Finish.
- Click the jobs pane gear and set the change the style to System block.
- Click Finish, then Update and preview.
- Be sure to click the Save button.
- Create a left column panel:
- Click the Left side region gear and set the Region style to No style.
- Click the Left side region gear and click Add content.
- Select Views > housing, then click Continue.
- Click Override title and enter housing, then click Finish.
- Click the housing pane gear and set the change the style to System block.
- Click Finish, then Update and preview.
- Be sure to click the Save button.
- Create a left column panel:
- Click the Left side region gear and set the Region style to No style.
- Click the Left side region gear and click Add content.
- Select Views > services, then click Continue.
- Click Override title and enter services, then click Finish.
- Click the services pane gear and set the change the style to System block.
- Click Finish, then Update and preview.
- Be sure to click the Save button.
- Create a right column panel:
- Click the Right side region gear and set the Region style to No style.
- Click the Right side region gear and click Add content.
- Select Views > gigs, then click Continue.
- Click Override title and enter gigs, then click Finish.
- Click the gigs pane gear and set the change the style to System block.
- Click Finish, then Update and preview.
- Be sure to click the Save button.
The finished product:
The completed home page should look something like this: http://aswapathy.com/ads/
Please register and log in if you wish to add a comment.
And click Contact Carl if you need help with your website.