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

How to replace the search module?

I would like to replace the Drupal searh box with a form that posts to our intranet search server, not the drupal server. To do that, I was thinking of rewriting search.module. My question is, do I need to keep the module name, search.module, and/or the function names inside the module as they are now?
I.e. if I give it a new name, say mysearch.module, then I would have to change the name of some function such as search_help() accordingly to follow the function naming convension. If I do that,

How can I write PHP code to check category OR node id?

I need to display a nav block based on category OR a node id. I've got the category part working, but when I view the content for this node (http://www.example.com/?q=node/1), the block is not displayed. Any ideas on what I'm missing?

Display Navigation Based on Category Not Working

I am working on displaying a custom menu block based on all of the pages belonging to an assigned category. The problem is that the block is showing up on every page, not just the pages in the category. I've selected the correct option and put in the code below - "Show if the following PHP code returns TRUE (PHP-mode, experts only)".

Since I only need 1 category specified, I'm using this code with the category specified as "my_category". Then in my list of categories, I have a category named "my_category". (no quotes)

My BBCode Filter

I've written a BBCode filter for drupal and while I'm waiting to get CVS access I thought I'd do a quick post here so that people can test my parser if they want.

Advanced Aggregator Module

I just recently got serious about Drupal after leaving Joomla ... Drupal rocks!!!

The only feature I am disappointed in (and probably just because of my needs, not because of the module) is the aggregator module.

I would like an aggregator similar to Joomla's in that the aggregator block shows the link (which links back to the news supplier) ALONG WITH the text supplied with that link. Joomla allowed for (and were able to customize the choices) the display of the name of the syndicator, their logo image if supplied, and images related to the news feature. I really do not want my readers to click on a link, simply to be taken to another local page to read one line of text and have to again click on a link to be taken to the full story.

Since I know I have a tendency to ramble, maybe I should show graphically what I want.

A block which shows:

-- Name of Syndicator (if option selected) --
-- Image of Syndicator (if option selected) --

-- image with story --
-- link to full story at syndicator site --
-- text supplied by syndicator --

-- link to full story at syndicator site--
-- text supplied by syndicator --

-- link to full story at syndicator site --
-- text supplied by syndicator --

...

End Block

The number of links should be selectable too (which is how it is now)

Is there such a module out there, or is someone out there able to edit the aggregator module to do that? I am proficient with php, but need to learn the mechanics of Drupal yet.

CCK - using field-based and node-based templates together?

hello everybody,

I am using the CCK module and have a question regarding theming: is it possible to use field-based templates together with node templates?

I have a content-type "content_test" which has a field called "field_test".
Now I want to theme the field "field_test" and therefor have created a template file called "field-field_test.tpl.php". I also have template "node-content-test.tpl.php" for general styling.

Now, when I call $field_test[0]['view'] in "node-content-test.tpl.php" my customized field template does not seem to be called.

Pages

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