An Automatic Nodetitles PHP Snippet to automatically create titles based on taxonomy terms and date fieldsFri, 2009-05-15 23:22 — victorkane
So the political situation is heating up in Argentina just like Paris, France, and class struggle organizations and political parties are taking part in the current electoral process in order to focus on the struggles and issues facing the challenge of making the bosses pay for the crisis instead of the working class. So, helping out here, on a certain website I am using a content type to publicize events. The content type happens to be called "event" and happens to be used by the Event module (a long standing and ancient module created and maintained by many Drupal masters). Most of the events concern the visits of an electoral candidate to a specific physical location. So the best thing would be to have the title reflect that.
So the socially conscious webmaster justifiably got sick and tired of entering the candidate and location into taxonomy term fields, entering the date into the start date field, and then repeating all of that in the title.
Filtering Drupal Views Dynamically (or, "Leverage the big CMS and web application frameworks! Only losers start from scratch!)"Sat, 2008-05-03 17:18 — victorkane
First make a dynamically filtered view on the fly like the big boys do!
Then, stick it in a panel! There are other ways of doing it, but by using this simple method you can easily:
- List all car dealers whose monthly sales volume falls within a series of different ranges: http://example.com/dealers-that-sell-between/500/1000
- List all jobs with salaries falling within different ranges with http://example.com/jobs-that-pay-between/100/200.
From the client's spreadsheet data to browseable content -- how to create, populate and manage your business objects in DrupalTue, 2008-04-08 07:45 — victorkane
[Note: This is a somewhat detailed description of how to leverage content types and views in Drupal, most useful for beginner to intermediate experience level in Drupal Web Application development, or to those evaluating Drupal. It is designed to show how the power of the framework is only apparent after gaining just a little experience with its features].
Panels 2, the quiet revolution indeed! This tutorial will go through a series of detailed exploratory steps to achieve a dynamic jCarousel panel whose content is derived from the attached files of the node context of a panel page configured for node override. That is, the jCarousel pictured in the following image contains the thumbnails of all the images attached to the node providing the context to the shown panel page. And this is achieved by overriding theme_panels_pane(), the default theming function for individual panels in a panel page.
OK, so I'm producing a couple of sites now that need browser side validation... And there is one of these great jQuery plugins called Validation. Now, Drupal uses jQuery, right? So, is there a contributed module out there that integrates this great little plugin? Woot! Yes there is a Santa Claus... enter jQuery plugins, looks like we're in!