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

Request for example codes for Coding in Drupal

I want some example codes in Drupal so that I can code my self. I want clear description for all the lines of code clearly so that I can easily understand. I am interested in coding for new modules

products taxonomy with ecommerce module

Is there a way of assigning a taxonomy to products nodes using the ecommerce module?
I need to have different product categories like groceries, sports equipment, clothes and more.

Sitemap Module

I am looking for a good sitemap module that can list all the posts neatly , to make it easy for SE to see them.

thx lots

Modifying the event module for school daily notices

Hi everyone,

I'm somewhat a newbie to drupal and PHP but I've been learning fast!

I've been charged with the task of creating an online daily notices system for our school which staff can add to, and after extensive searching on the web I decided upon Drupal with the event module. I've actually got it to the point where it is functioning, but there are a few wrinkles to iron out.

How it works is that notices are submitted via the drupal site and the output is obtained by pointing an RSS to HTML script at the RSS feed (this one here if you're interested: http://www.feedforall.com/free-php-script.htm). This is important because the notices are printed each morning for staff to read out in class, and it needs to be one notice per line or it doesn't fit on one page.

I've successfully added a piece of code to event.module which truncates the $body tag (in order to get each notice on one line), however the next issue is somewhat more complex. The problem is that the RSS feed only displays notices that are in the future, ie if a notice is set to end at 8am, someone reading the notices at 9am will not see it. One solution would be to instruct staff to make sure they set notices to end late in the day, however I would rather get the module to display all notices from the current day.

The function I've been modifying is event_calendar_rss, and at first I thought I would simply be able to modify the $stamp variable, however that appears to only take into account days anyway, and ignores hours and minutes. Thus I believe the line I need to modify is this one:

refresh won't referest

Hi,

I'm developing some modules. I've installed apache on my machine and that has been working just fine, but as I've been refereshing my screen to see my modules I've noticed the browser has quit updating when I refresh!!!.

So I just keep seeing the same 'ol same 'ol. What would cause drupal to do this? Does anyone else have this problem. I have never had this problem with anything before so thought maybe Drupal had some sort of band width saving feature programmed in.

thanks for the help, this is frustrating and weird. :)

Q: Edit path alias

Once somebody creates a node with a unique path alias is it possible to lock that alias so they can never change it again?

I want them to be able to choose what they use when the create the node, and I want them to be able to go back and edit the content. I don't want them to be able to change the path alias once it is created though.

Any ideas?

Thank you!

Pages

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