Correct simpletest syntax for adding tags to a story/page form?
Hello everyone!
I'm having problems when trying to add tags to the story/page creation form using simpletest.
I have a vocabulary which uses FREE TAGGING, and I want create a new page with the tag "cat". The vid of the vocabulary is stored in the class attribute 'free_tagging_voc'. What I've been trying to do is the following:
$edit = array();
$edit['title'] = $this->randomName(10);
$edit['body'] = '';
$edit['taxonomy']['tags'][$this->free_tagging_voc] = 'cat';
$this->drupalPostRequest('node/add/page', $edit, 'Submit');Dynamic Block
I'm hoping to get some help from the group on this. My last request was a little off the Drupal Subject, this one should do a little better.
I'm developing a site for an Applied Technology College that have a Jobs section where jobs will be posted and associated with each program. I'd then like each program to display a block with all of the jobs pertaining to that program. Any ideas? I thought this would be something very straight-forward, but it's not as easy as I thought.
Read moreIs There A Way To Display Only Part of a Vocabulary?
Hello Everyone,
Is there a way (a view, an existing module, a swell hack), to limit the display of a vocabulary in a node editor?
For example:
Countries (Vocabulary) - Africa - Kenya - South Africa - Asia - Japan - ThailandRead more
Library API
After spending hours with Taxonomy trying to use it to construct a single tiered Library, The problem was that the module of taxonomy was too specific to what it does. I also saw that with in my code, I was running multiple select statements that were unnecessary. In addition my library was small, and I feared using a growing database full of taxonomy data would hinder the performance of my script. Simply put, Taxonomy was to high level for what I needed, and didn't provide the low level functionality and flexibility that I wanted.
I needed to write my own library routine, and modifying taxonomy was not an option. I wasn't using this to classify content, but as a simple place holder for strings. I then went off to write taxonomy 2.0, but found the task was too large on its own to complete in a reasonable time.
Read moreWant issue tagging? We're now one step closer.
A while back catch created a feature request for the Project issue tracking module to allow free tagging on issues (see http://drupal.org/node/187480). The use case he indicated was to be able to attach certain labels to issues, for example benchmark, needs re-roll, needs doxygen, etc. Other use cases would include tagging issues that need testing in certain ways (eg. MySQL, PGSQL, Javascript, IE, etc.) and tagging issues that are good for certain audiences (eg. newbie, GHOP, DROP, etc.).
Read moreAdding images to taxonomy terms to create fancy custom taxonomy menu
There is a tutorial up at alldrupalthemes explaining how to "create and awesome looking taxonomy menu, using Imagecache, Taxonomy Image, Views, and some SQL."
http://alldrupalthemes.com/blog/6-steps-fancy-custom-taxonomy-menu-term-...
This seems like a good feature to implement in a photo gallery.
Read morePathauto taxonomy
Hey all,
To get strait to the point.
Pathauto creates alias for taxonomy/term/1 and you can set it to be [vocab]/[catpath].
What if I would like to create more aliases for the same vocabulary like for soccer/[catpath] to be soccer/[catpath] ?
I took a look at pathauto_taxonomy.inc and tried to hard code it in but with no luck.
I would like that so I can rewrite Views urls. Now you can say that I can pass a taxonomy term to a view and solve that.
For some reason it's just not the solution I'm looking for ...
Can anyone help me with this ?
Cheers!
Read moreAdvantages/disadvantages of using "Content types" vs. using "Taxonomy"
Hey everyone!
Thanks again to Matt V., Jonathon, and Sam for their wonderful presentations last night and for the excellent hosting!
Also, I'm trying to recollect some of the comments made last night. If I heard correctly, Matt primarily used "Views" and "Taxonomy" for his presentation; specifically, he used "Taxonomy" (mysite.com/admin/content/taxonomy) to classify content into categories and subcategories. Jonathon, on the other hand, primarily used "Content types" (mysite.com/admin/content/types) in lieu of "Taxonomy" to classify content. Is that correct?
Read moreTaxonomy blacklist - because not all terms are created equal
I have release a new Drupal module regarding taxonomies, called Taxonomy blacklist.
This module lets administrators blacklist a set of terms on vocabularies. This is useful if a vocabulary can be modified by your end-users (prevents bad words from polluting your tags on a social-networking site, for instance) or if the vocabulary is feeded automatically (for instance with keywords extracted automatically through the Yahoo Term Extraction module).
Research tool for categorizing Drupal site content
This semester I've been involved in a research project at BYU studying the effects of using web2.0 tools powered by Drupal in the classroom (See http://isyscore.byu.edu/drupal). Now that our first semester with our pilot site is coming to a close, we're moving into the data gathering / analysis phase of research. To aid our research I've written a tool which let's an research easily categorize content created on a Drupal site.
Read more




