This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Improving Breadcrumbs with taxonomy_context

I'm looking to update the taxonomy_context module to have taxonomy based breadcrumbs link to designated nodes instead of taxonomy/term pages.

Background

I'm designing a hierarchical site and plan on making good use of the core taxonomy module, taxonomy_access, and taxonomy_context. taxonomy_context is especially useful for hierarchical sites because it:

  • Generates breadcrumbs based on taxonomy, and
  • Allows me to display a description of a term (or vocabulary) on taxonomy/term pages.

Proposal

I'd like update the taxonomy_context breadcrumb links to do more than display the term description along with the normal taxonomy/term pages. I want the breadcrumb links to land on an associated "homepage" node for each taxonomy term. I do not want to see the summary list of nodes that the taxonomy core module provides. For example, if I clicked on an "about" breadcrumb, it takes me to a page node I have associated with the "about" term, not the normal taxonomy/term page.

Replacing the radio buttons and checkboxes with custom images

Hi !
Could anybody help me with the creation of a new module to replace the radio buttons and checkboxes with custom images ?

I have the javascript ready to work but I don't know how to put it in a Drupal module. I've found this tutorial http://drupal.org/node/42544 but.... well I'm not so good with php :)

So here's the script

function chgCB(){
CHKB = document.getElementById('newCB').getElementsByTagName('input');
for(i=0; i < CHKB.length; i++){
if(CHKB[i].type == "checkbox"){
IMG = document.createElement('img');
CHKB[i].parentNode.insertBefore(IMG, CHKB[i]);
IMG.src = "radio0.gif";
if(CHKB[i].checked == true) IMG.src = "radion.gif";
if(CHKB[i].disabled == true) IMG.src = "radio.gif";
else{ // Changing state's behaviours are only applied if the box is clickable
CHKB[i].onchange = function(){
IMG = this.parentNode.getElementsByTagName('img')[0];
if(this.checked == true) IMG.src = 'radion.gif'
else IMG.src = 'radio0.gif'
}
if(!window.sidebar){
CHKB[i].parentNode.onclick = function(){
CHK = this.getElementsByTagName('input')[0];
CHK.checked = (CHK.checked == true) ? false : true;
CHK.onchange()
}
}
}
CHKB[i].style.visibility = 'hidden';
CHKB[i].style.position = 'absolute';

Where is the paypal_framework module?

I've looked in the modules directory list, but can't find it there. I've also Googled it and followed a link to this site which is now dead...Any ideas?

Remind users to post/blog/create content RFC

I have a created a couple sites for people but they are sort of newbies and I would like to be able to have an email be sent to them automatically every so often if they haven't created a node in a while. Otherwise their site can be a bit boring without some new content once in a while. Here is some pseudo-code. I would be glad to hear anyone's comments, especially if there is something that almost does this already.

Caching

Does anyone know how drupal handles its caching? Especially, I'd be interested to know whether node_counter increases when drupal caching is enabled.

drupal_add_js and collapse issues

i have two questions:

using drupal_add_js, is there a way to add my js file after all of the drupal js files? so that my js file can see the changes made to the page.

how can i attach collapsing function of any fieldset to an object other than fieldset's legend? for example when a checkbox is checked/unchecked a fieldset will open/collapse. (the reverse situation is not important: when the fieldset is opened/collapsed by clicking its legend, the checkbox's status may not change.)

thanks.

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions