Drupal is up and running but how do I ...?

Automatic Context Links?

I'm working for a newspaper site using Drupal. In addition to news posts, we have a group of informational articles about significant people, places, events, etc. What's the best way to scan news posts for certain terms (i.e. the titles of those informational articles) and link them automatically to their associated article?

I'm new to Drupal, so I'm sorry if this has already been asked about before.

Insert a Javascript into a 4.6 Module?

I'm trying to make a new module, just like the xtracker.module, only including a cut-and-paste javascript at the top of the page body. The javascript displays a clickable map of the US with tooltips showing the states' names when you hover over the states. No database functions or changes are needed.

I copied the xtracker.module as a starting point, and renamed it xtracker_map.module. Inside the module I renamed all instances of xtracker to xtracker_map and tested it. Everything works just fine.

Now I want to add the javascript, which includes a .js file, a .css file, and some HTML on the page. I've got the javascript working fine on a static webpage, separate from my drupal site. It even works fine just putting all of the code (HTML, CSS and Javascript) on the same static HTML page.

This topic almost got me there: http://drupal.org/node/40352

From that page and studying the API docs on this site I gathered that:

1. hook_view can be used inside of a module (as in node_example.module) to add something extra onto the pages rendered by (only) that module.

2. hook_nodeapi can be used inside any module to add something extra to the pages rendered by any module(s), on a selective basis.

3. Drupal 4.7 has some built-in javascript and some instructions in the handbooks on incorporating javascripts and ajax in drupal 4.7, but I assume it doesn't apply to 4.6.

a few how do I's from a newbie

ok so I've decided to give drupal a spin to see if it can fit my needs for what I want to do for my website idea. It's basically a site similar to myspace. Somethings I'm trying to figure out.

- require a picture upload on registration

- user profile comments: I want people to be able to leave comments to each other on their pages, where everyone can see them

- restrict certain forums to certain access roles

taxonomy_block How do I make one After I set it up?

I installled the mod, and I ran the SQL, with no issues...

It is turned on in the modual menu...

But, where do I make one of these blocks? I do not see anything in my block menu... If I have to add one, what do I put in the fields?

In short, I am tring to make a catagory menu, for a blog...

THANKS!

Getting in to PICTURES folder under files?

I want to add a default picture for users without pics. I added one, but it only shows the defeault pic under user comments.

I'm guessing this isn't showing in all the other nodes because I don't have it in my files/pictures folder? How can I get to it? I try to change the permissions in the ftp, but it won't let me. What should I do?

Thanks!

create custom blog-it link for image nodes?

Hi there,

How would I go about coding a "blog-it" link (using a blog-it icon) to include in image nodes? These are custom flexinodes that consist of nothing but an image.

I'd like the link to return a blog entry page with a duplicate of the image at the top of the textarea. It needn't even include an "if (module_exist('blog') && user_access('edit own blog'))" statement, since it's a specialized site with restricted members who all have blog access.

Pages

Subscribe with RSS Subscribe to RSS - Post installation