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

Menu system vs. Custom URL Rewrite (WRT: caching, performance)

Hello,

I am working on a module to create database stored "sites." In this context, I do not mean full Drupal sites (ie. site/site1, site/site2, etc). For the purposes of this module, a site is a taxonomy term in the "Sites" vocabulary, a nodequeue (to represent the front page), and a theme. All content owned by Site X, is tagged with the "Site X" term. Other sites can share this content, by tagging the node with their tag (e.g. "Site Y").

When a user requests http://www.example.com/dbsites/[site id, eg. 1]/node/123 the user would see the node with nid = 123 in the context of site 1's theme.

If a user visited http://www.example.com/dbsites/2/node/123 the user would see node 123 with the theme of site 2.

My goal is to have any $_GET['q'] string automatically translated for each site. To drupal and other modules, I want this translation to be transparent.

cck: next page, previous page, how do I do it?

I've installed the cvs version of cck. It's working fairly well. How do I add "previous page", "next page" links? I have my posts in as book pages right now and will have to convert them over. How do I add "add a child page" and "add a sibling page" links? I searched on google and drupal.org. I did not even find anyone who asked this question.

Teaser issues in CCK and Flexinode? Please Help

I needed a custom module for my website. I experimented with CCK module, but the whole body goes to front page as teaser. Then I experimented with Flexinode and I marked a field to be used as teaser and only one line from that field goes as a teaser and the rest is ignored.

Can any one help me to make one of these modules work with a teaser ( 5-6 lines ideally) or suggest another module.

BTW am on Drupal 4.7 beta 6
Thanks in advance

Thank you
Regards
Onesimpleman

trying to get my first module working

Hi, I've been following the module developer tutorial, but I seem to be having a problem enabling the module I've just created. Here is the code:

Theme for module

I already asked this question but I am going to ask it another way to try and get some more responses.

get page url from within a block

This is something so simple it is proving difficult to search for. Within a PHP block or module, what would I put within <?php > to spit out the page's url?

For example, say I wanted a link to post this page to del.icio.us:

http://del.icio.us/post/?url=http://drupal.org/forum/4

the html would look like

Pages

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