(Note: I originally posted this on drupal.org before remembering that I never get a response over there. So, sorry for the cross-posting)
Hello, is there a way (built-in or otherwise) to add preprocessing functions for particular cck node types? I am looking to do some preprocessing of a field within my cck node type. Currently I can ei...
I'd like to take a book menu and just add it right to the primary links. Any way to do that? It can appear alreayd in the Navigation links but I'd like it to expand to deeper child levels.
Also, I'm using a theme (Newswire) that creates a suckerfish menu from the primary links, so if I can automatically add my book pages to the primary...
I have multi-language website in Drupal, but not all content is translated. I want the language switcher block to appear in a content page only if there's a translation for that content.
The language switcher block uses the function translation_path_get_translations to get the path of the translated version of the content being viewed. ...
I have a legacy PHP form that I'm moving over to Drupal 6. I'm trying to make things easy for me as well as the future admins of the site. The below form is the heart of the old site data. So far in cck I have Locations, in taxonomy I have Countries, now I just need to allow these Species data to be added. I would do it in CCK, but I als...
I've got a Druapl-based website with a blog. I'm using a custom view block to list the different tags I've assigned to my posts. Although it lists them just fine (links work fine too), I'm getting alot of duplicates. For example, if I tag 3 differents posts with "sometag", then my block lists "sometag" 3 times in a row.
How do I fix ...
I'm trying to create a menu tree in drupal like this:
- term 1
node 1
node 2
- sub-term 1
node 3
node 4
+ sub-term 2
- sub-term 3
node 5
- sub-sub-term 1
node 6
+ term 2
etc.
(Sub-term 2 and term 2 are toggled closed.)
Some requirements:
Output this using something like JQuer...
Hiya,
I'm attempting to create my own templates for the search pages using drupal 6. When creating these template pages i usually use Drupal Template Suggests but for some reason when creating the files:
search-block-form.tpl.php
search-result.tpl.php
search-results.tpl.php
search-theme-form.tpl.php
None of them seem to override the ...
Suppose I have two content typs, "Job Listing" and "Job Application". A job application has a field (using the CCK module) to reference the job listing (a required field). Suppose the job application has a field "Status" with values like "new", "accepted", "rejected".
I would like to set permissions so that the job application status ca...
Hi, all!
I have a multi-language drupal setup (2 languages, english default). I want users to receive always content in the other language (lets say spanish) on initial page request, but keep english as default language for future language switch. So users will be redirected on initial load to site.com/es, but through the language switc...
Taxonomy term path:
http://api.drupal.org/api/function/taxonomy_term_path
Returns the unaliased path. I used pathauto to give the term alias, how can I return the aliased version?
Thanks.
...
I have a node (node a) with which various other nodes (node b/c/d/e) references.
I can create a view with an argument as the node I'm viewing, (node a), and get a list of the nodes that are referencing that node.
Basically on node a viewing a list of node b-e.
I want to create a views page just for the node references of that node. Bu...
I'm using multisite to host my client sites.
During development stage, I use subdomain to host the staging site, e.g. client1.mydomain.com.
And here's how it look under the SITES folder:
/sites/client1.mydomain.com
When the site is completed and ready to go live, I created another folder for the actual domain, e.g. client1.com.
Hen...
Hello again!
I have a small custom drupal module which crops user profile images:
$folder = 'sites/default/files/profile_pictures/'.$uid.'/';
$filename = $_POST['filename'];
$orig_w = 480;
$orig_h = $_POST['height'];
$targ_w = 150;
$targ_h = 92;
$ratio = $targ_w / $targ_h;
if(isset($_POST['form_sent']))
{
$src = imagecreat...
is it possible to add wordpress theme in drupal? i'm new to drupal and i want to have a blog of mine,
i'm doing it as a free and can't buy wordpress theme, so can i do everything in drupal as wordpress?
...
I have a node type called 'movie' which may contain several subtitle files using the CCK FileField module. Now I'm dealing with FiveStars module, I need to rate each subtitle separately! so the user should rate for subtitles associated with a movie, not the movie itself.
confused enough! any idea?
...
What is the best yet simple CMS for closed-source programming project hosting? I'd like to keep webpage plain and simple, include screenshot, basic features and blog headlines on main page, then have project blog, screenshots gallery, feature list and downloads on separate pages.
My goal is somethong between http://www.videolan.org/vlc/...
i need to display the contents added by that user...
i have designed a view to display the result.. but it displays the results of all users.....
i need to display the contents added by that user...
when i pass the argument of userid it works, but is there any dynamic way to do that....
...
I have a simple click function with the code below, but I can't seem to get the data on the first click.
$.ajax({
type: 'POST',
url: 'test/get/1',
success: function (result) { testit = result; },
dataType: 'json',
data: 'js=1'
});
alert(testit);
In my callback function I simply have return drupal_json('hello'); but it doe...
So, the default actions of panels have them taking the place of a node, or existing like a view outside of the node system.
For reasons outside of the context of this discussion I want to have a panel embeded in a node.
I have yet to find a "Panel Reference CCK" module, or anything that would do something similar.
I've tried creating ...
I've been curious what is the best practice to add custom settings to the admin/content/types (drupal 6.x)
Update:
Jeremy has suggested (unsurprisingly) to use hook_form_alter(). I'll try it out and report back.
...