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

Content preview bug(?) Please Help

I am having an issue with both custom modules and the standard, out of the box modules where whenever a user selects the "preview" option on the create content screen the message "your was created" is displayed and an empty node is created in the databse. I had hoped that upgrading from 4.7.1 to 4.7.2 would fix this error, but no such luck. If anybody knows anything about this kind of problem or needs to see some code to help let me know. Thanks for all your help.

story_load

hi,

how can i add values to node (nodetype: story) other than add story_load function to story.module? i mean, is there any way not to touch the original module an doverwrite such function? (so i wont forget it next version upgrade :)

thx in advance

/h

Display search results as HTML in _search_item

I've started working on my first module, so be gentle. Actually, it's a modification of the swish.module, where I am attempting to bring back highlighted hits. I believe anyone who has been able to bring back results in a search, regardless of the module, will be able to answer this.

Basically, I've put in a hook that takes the search request and does a socket call to a site that is returning html code. That html is coded to display the highligted hits. The problem is that what is displayed on the Drupal page is the html source code, and I want the html processed and displayed as laid out in the code. How do I accomplish this?

The code in question is here:

/**
* Overrides the _search_item hook.
* Returns a nice html output of each found item.
*/
function swishpdf_search_item($item){
global $base_url;
$output = $item['title'];
return $output;
}

$output should be displayed like this:

1 SDSSdtSearchSetup.pdf -- rank: 1000
SDSS dtSearch Subscription Server Setup The current SDSS dtSearch Subscription Process requires dtSearch Web and Authentix products. Please note that the requirements and setup for the SDSS dtSearch Subscription Process are the same as for the SDSS Authentix Subscription Process. Please print out and review the SDSS Authentix installation and configuration documentation located here: http://client.scbbs ... The following components are required in order to establish an SDSS dtSearch Subscription Process on Windows NT or 2000 machine. ...

Correctly Handling RSS and HTML Teasers

I have a question about how to have a module correctly handle HTML and RSS teasers. I can't find the answer anywhere, and lots of modules seem to get it wrong, so it seemed like a good idea to iron it out!

Snippets for different pages with short url paths?

I'm using Drupal 4.7 and I was wanting to know if there is a script that will pull snippets for each page that you use? For example, I'm using path auto.

For ex:

Say I have created a PAGE with the short url path 'Bio', and another PAGE with the short url name of 'Guests,' and I wanted a teaser for each of the pages on the main page. Is there a way I can do that?

If not, does anyone know how I can just do snippets in general? The listhilightnodes script that I used for version 4.6 doesn't work for 4.7. Thanks!

[removed all caps title]

Job Search Module

Has anyone used the job search module http://drupal.org/node/27586/release ? Any demonstration sites that are up? Do the patches work for all versions of drupal - I am running 4.6.5

Thanks in advance!
Ken

Pages

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