This forum is for less technical discussions about the Drupal project, not for support questions.

Using relative links with aliased pages

I've searched a lot, but apart from the legendary Problems with using relative path names I can't find much. Which surprises me.

I'm doing a lot of legacy HTML import work, and extending it to full round-trip import/export
And I like relative URLS.
So when my
products/gadget/index.htm page gets imported (along with its legacy alias) and points to products/gadget/details.htm, it does so using a traditional, normal link to just [a href="details.htm"]
Now that Drupal 4.7 has dropped the BASE, this works (yay).

Problem 1. relative to node/*

when products/gadget/index.htm is viewed in its other guise, node/174 or even node/174/edit - those relative links don't make sense. This is particularly annoying when referring to inline images [img src="gadget.jpg"] linking to what used to be products/gadget/gadget.jpg
(Yeah, I know I have to do other magic to make that work - I have, but I can't do it consistantly)

So relative links embedded in pages with aliases can be tricky.
I'm keeping relative links so I can pick up entire sections and move them around. Relative links are semantically better than long rooted ones. I'm developing in sub-sites, so root-relative /paths/beginning-with/slash are not nice.

Tabs on the drupal home page...

I am new to drupal, and I like what I see. I am playing with one of my sites and trying to figure some things out before making the move for the real site. My site has multiple pages much like any other site. What I can not figure out how to do is to create the Tabs at the top much like the drupal page does.

Can someone point me to where I can find that information so that I can continue my testing, and hopefully move the site from my hogpodge of dreamweaver and wordpress, to all drupal

furious.styles

taxonomy_menu module

I could not find the taxonomy_menu module for the version 4.7. It is one of the useful modules but why don't it still use in the version 4.7?
If i downloaded that module from the ver. 4.6 and install in the ver.4.7, will it be compatible or not?

Need help counting the profiles associated w/ a category

please forgive my SQL ignorance... i'm trying to learn. :-)

i have a site where people sign up for a profile, and in their profile they input their Blog URL and select a neighborhood to identify with.

From there, the site has a list of the neighborhoods in my city, and each neighborhood has a number next to it... the # of blogs in that neighborhood. (you click on the neighborhood link, and it displays the list of blogs, etc.) My neighborhood blog list needs to show up like this:

Egan Park: 3
Five Points: 12
Vinings: 9
etc, etc.

My neighborhoods are set up as category terms (stored in "term_data")...

tid, vid, name
142, 4, Egan Park

and here's the table for "profile_values"....

fid, vid, value
22, 6, s:3:"142";

How do i join these and count the # of blogs per neighborhood?

Here is what i have, and it's not working... the $result3 part works fine... it will give me the list of 'hoods... but the $sql3 part is where i need help Counting and Joining :-)

Also, if anyone could explain what "n" and "tn" and "%s" and "%d" means, that would rock. I can't find the info on here anywhere.


<?php
$vocabulary_id = 4;
$result3 = db_query("SELECT d.tid, d.name FROM {term_data} d WHERE d.vid = $vocabulary_id GROUP BY d.tid, d.name ORDER BY d.name");
$items = array();
$sql3 = "SELECT COUNT (n.fid) AS count FROM {profile_values} tn INNER JOIN {term_data} n USING (tid) WHERE tn.tid AND n.value = '%d'";

Drupal and the new Friendster social networking patent....

Just curious about how this would affect Drupal installations with social networking features,
because that is what the goal of my own site: http://www.newfoundnews.com is to be.... eventually....

Anybody with thoughts or opinions ?

External package using Drupal auth

My Drupal is installed in /public/www (http://www.example.com) and my other package is in /public/apps (http://apps.example.com)

I would like to make apps only reachable when a user has login to drupal. So I have created a small script in /public/apps/test.php like so:

Pages

Subscribe with RSS Subscribe to RSS - General discussion