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

link submitter

Hi I'm looking for a link management plugin where users to submit their links so they can share it with everyone and I will need to approve them and it gets automatically added to the collection of links. It's a sharing link community. For example http://www.shareparadise.net/community/linksys/index.php

how to best customize the taxonomy/term page

I want to add some info to the taxonomy_term_page (path taxonomy/term/TID).

One simple solution is to add it directly inside the taxonomy_term_page() function but this makes it hard to maintain across updates of the taxonomy module etc.

So I would like a way to accomplish this from a separate module similar to what can be done to nodes with hook_nodeapi().

As a first atempt I tried this:

First i "override" the menu settings in my test.module

    $items[] = array('path' => 'taxonomy/term',
		     'title' => t('Taxonomy term'),
		     'callback' => 'test_term_page',
		     'access' => user_access('access content'),
		     'type' => MENU_CALLBACK
		     );

And in the callback i add my xtra info and calls the original taxonomy_term_page() function

function test_term_page() {
  $tid = arg(2);
  $result = db_query(db_rewrite_sql('SELECT description FROM {term_data} WHERE tid=%d'), $tid);;
  $data = db_fetch_object($result);
  $output =  '<div class="term-description">' . $data->description . '</div>';
  print theme('page', $output . taxonomy_term_page($tid));
}

If you don't want to affect all vocabularies I guess the module field of the vocabulary table togehter with taxonomy_term_path() function could be useful but I've not tried this.

multiple pages

Hi guys,

modified module not updating?

I just have a quick question regarding modifications to modules.

I have a module installed which creates a specific page with an iframe, and it's causing a bug with the rest of the site. To work around this, I've edited the module to add an additional div tag encapsulating the iframe.

However, even though I've edited the .module file, the changes have not become apparent when I view the resultant page.

Is there anything I need to do to flush the old page and get the module to output my new code?

Load only teaser data via node_load

I have a custom node module that loads some additional data for the node via mymodule_node_load. Most of the data is not displayed in the teaser though, so what I'd like to do is when a teaser is displayed, only load the data needed for the teaser (this will save me a few table joins), but when the full node is displayed I can load everything. Unfortunately, node_load has no knowledge of whether or not a teaser is being displayed.

Is there any way to accomplish what I'm after, and perform a limited node_load query for teasers?

thanks
jonathan

bulk update of nodes by ordinary user

could I allow an ordinary user to bulk update the state of his/her nodes without any custom code? I would like to present the same interface to them as in the administer nodes page.

Pages

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