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

Newbee - get me going

Hi,

First Post, first experience with Drupal.

I have made it through the installation and have even hacked the page template a little, but I"m having some trouble figuring out how to get started.

What I want to do is create some content pages, that will have a custom look (there will be other pages that should look generic) so I"m at a standstill as to how to start.

I've read about flexinodes and taxonomy, customization and such, but it's all a bit overwhelming.

Considering a node structure that will look something like:

Private Download - PDF specific problem

Drupal Download can be set to public access or private (drupal)

When in public, all my blog attachments open successfully.
When in private all blog attachments open successfully EXCEPT PDF files.

This is true of PDF files uploaded before and after the access is switched to prviate. I can see the file in the correct directory (accessed as drupals system/files folder). And all other files being successfully accessed are in the same folder.

Switching to public and files are found...

How to add custom validation to the edit term form

I've just discovered the hook_taxonomy and it works fine to add actions on various taxonomy operations.

But, if I would like to add module specific validation to the edit term form (admin/taxonomy/edit/term/TID), hook_taxonomy doesn't seeems to be of any help.

Any sugestions on how I can achive this?

Patience Required

Howdy Drupalites!

There should be a disclaimer on the "how to create a simple module tutorial" stating that patience and lots of coffee are required. (feel free to replace coffee with beer)

Okie dokie, i would consider myself to be an above average PHP developer and have been doing this stuff for near on 5 years. However i have not read the entire Drupal manual from top to bottom, and do not wish to. So it is at this point i have to admit i'm stumped. I cannot for the life of me get the module i have created (based on the tutorials) to work. The concept is simple. A portfolio node type that has a teaser, client quote, a couple of URLs and a screenshot of the clients site (possibly with some form of resizing tool).

The reason for doing this is as proof of concept for using Drupal for future sites and if i can "master the module" the world is my playground.

The module is detected and works but when i goto "create content" and create a "portfolio" however around this time it doesnt draw the form or even drop into that modules function (portfolio_form) as you will see i've tried my best to get this working.

Here is the module code ... and thanks for your comments in advance ;)

Jon...


<?php
// $Id: portfolio.module,v 0.1 2007/01/15 11:15:28 the_exa_boy Exp $

/**
* Implementation of hook_help().
*/
function portfolio_help($section) {
switch ($section) {
case 'admin/help#portfolio':
$output = '

'. t('The portfolio module is used to create a content post type called portfolio. This will be used to archive the work done by the studio. ') .'

5.x node documentation?

I'm relatively new at Drupal programming and would like to create some new nodes and corresponding modules for it, but after 5 solid days of searching the forums and such I am marginally further along.

The API section has no reference to 5.x currently.

The upgrade information would only apply if you are currently familiar with the 4.7 way of doing things, which I am not. The upgrade information for changes from 4.7 to 5.x is helpful, but doesn't do much for those not already intimately familiar with the workings of 4.7.

The module example documentation is helpful, but does not mention how to create new node types in 5.x correctly.

The 5.x node documentation I have found ultimately ends up in tutorials that are written for 4.7.

I would like to skip over development for 4.7 all together if possible, but at this time it's proving difficult.

I have a relatively complex task and the best logical way I can see to accomplish this task to define a few new related node types in a heirarchy, and inside those node types include existing node types as containers for the content. I can utilize OG for my user divisions, image and filestore for my file needs.

I am at the point of bastardizing the code to get the job done, taking away the real work from Drupal but that kinda defeats the purpose of writing a single location (module) that contains my intended functionality.

Image Module: strange alignment

Hello!

I am having problems with the image module:

  • 1. in the image gallery view the thumbnails line-up in a strange manner, the first two rows are fine and suddenly I get 2 lined-up to the right and on the next line two are on the left... most bizarre...

    2. the image gallery displays the title of each image but the font is so huge it takes up loads of room: can anyone tell me where I can change that particular font setting?

  • Pages

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