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

New to Drupal - Trying to create a simple module (from an existing block)

I'd like to write a simple module that displays a list of files available for download.
I've followed the sample module guide/tutorial, and I've got the basics of this done (very quickly, yay!) - as a block. What I don't understand yet, is how this block could be transformed to show as a page as well.

A little image insight?

I've been using Drupal for a while and love it, but I am confused regarding image galleries / albums. I'm making a MySpace.com type site where I want users to post image galleries / photo albums like the book module.

I've used image.module, album.module, even tried gallery2 and simplealbum.module (for 4.5), but they don't really do what I want or work very well. I want to help developing this functionality, but want to know:

_menu returns Page Not Found

I'm following the "how to create a block" with modifications.

I wrote the following code after getting the block enabled and working as described in the tutorial.
I expected this to return the output defined in the _testBlock_all function when I went to my
.../testblock page, but I get a page not found error. I also tried /?q=testBlock

Did I misunderstand the capability or do something wrong?

Thanks,

Title no linked to the node

Hi, I've just started to use drupal about 2 weeks ago (and PHP) and am getting up to speed, but I feel like a hack. What I want is the ability to have the title of a node link to something other than the node. eg On the front page I'd have an anouncement and I'd like the title to link to taxonomy menu associated to the anouncement not the node of the anouncement.

Now I have come up with a way to do this but it just feels like a hack! I'm sure its been done but my searches have failed to find it :( anyhow this is what I've done.

Say I want to link the title "New reviews just posted" to the URL "Reviews" I'd use this as the title when creating content:

nodelink:Reviews New reviews just posted

Then in the template.php (I'm using phpTemplate) file in the phptemplate_node() function, I'd parse the title for the key word nodelink: and reassign title and url in a similar way to the standalone bit of test code below.

There must be a more elegant solution out there! Any pointers
(maybe this is a theme Q , but it seemed more suited to here)

Note:this is just stand alone proof of concept stuff, not what I've added to template.php!

<?php

$str = "nodelink:Review This is a title";
$str2 = "nodelink: http://drupal.org This is a title";
$str3 = "this is only a title";

$teststr=$str1;

if (strstr($teststr,"nodelink:")){
$pos1=strpos($teststr,":");

Taxomony menu problem

Hello,

I have strange thing with taxanomy_menu module on 4.6. When I press on root term in menu (vocabluary name), nodes are listed this many times each as many terms attached to them (under the same vocab).

As like this http://www.photobanks.info/taxonomy_menu/2

How to fix it? What is the issue?

Any interest in porting webgrab or similar functionality into Drupal?

I'm trying to include a search page from a dedicated catalog server within my Drupal site. Scripts must also be wrapped and the output must be returned into Drupal... sounds tricky.

It seems that Mambo has a "wrapper" that can incorporate external content into the mambo site's pages.

I did find something for another CMS that sounds like it would do exactly what I would want: webgrab-- http://phpcms.de/webgrab/index.en.html.

Pages

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