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

Views join question...

I want to expose attached images to the views module... To do so, I need to associate the current node with the image_attach table, then with the file table. I've gotten as far as adding both tables and the necessary fields in the views_tables method (see below).

I can already display the attached image's nid in the view. Can anyone explain how I connect the two joins and get the filepath from the current node id? Do I need to modify the query in a handler?

I intend to use this in conjunction with an attached image filter that i've added to the image_filter module.

Affiliate module working details

Hi,

I was going through the code of affiliate.module and affilate.install and had some queries.. regarding the table design and working logic

table: affiliate_details
aid - affiliate id (same as drupal user id) ??
enabled - is this affiliate enabled at the moment ??

URL as an argument within a URL

I have a callback function which is called using the path 'http://mysite.com/module/function' in the normal way. I want to pass a url to this function from outside of my site, so I have tried the standard approach of sending arguments eg. 'http://mysite.com/module/function/url'.

However, the url contains characters that have special meaning within drupal (eg. : / ? & etc.).

looking for an address book type module

hello all I am working on an internal only Law Firm Drupal installation which requires a listing of their clients, plus status, who's working on it, if paid, etc. Am considering using Profiles for this function but am posting this to request for alternatives if any.

thanks in advance, gary

Category Issue- Site Design

Hey Guys,

I'm designing a site with the Category module, and things can get a little confusing (as I'm sure those familiar with the module know). The site I'm building has multiple types of content (blog posts, book reviews, news stories, etc). Further, it has 2 types of "tags"- Industry (what industry does this content relate to?) and Category (which topic does this content cover (ie., People, Purpose, etc)?). The lists of possible choices for Industry and Category are very large and have many levels (around 5 each).

CCK-less, separate-textarea-teasers without hacking core

Buh-bye "break" command and thank you but no thank you cck (no offense I'm sure you've got some great uses, but you also confuse the heck out of me and I see no documentation that anyone this side of a systems engineer can figure out).

After much futtzing, I've figured out how to implement teasers as a seperate textarea from the "body" field using on the exceprt module and contemplate (barely).

A few caveats first:

* This is tested for 4.7.3.
* It is more convenient to set up with a new site, but it is doable on an old one (*see comments at the bottom for more)
* There are no code hacks to anything, but because of the way this solution uses existing functions you should expect to accomodate some special needs when it comes to updating your installation since this uses the existing "teaser" and "body" columns (within the node revisions table) in a different way than a stock installation does when teasers are autogenerated or created with the break command.
* Teaser length settings in admin/settings/node will have no effect on any content type which is set to have a manual excerpt. What you enter in the teaser text area is what gets output. Am planning to add a character limit on the teaser at some point. If someone beats me to it - that would be awesome.
* It is possible to undo these changes, but you would need to take care of any teasers (e.g., get them transfered from the "teaser" table cell to the "body" table cell in the node revision table) which you generated while this setup was active.

So (finally) here it goes (if you are trying this on a site with pre-existing content read the addendum first):

1. Get the 4.7 version of the excerpt module. There are some patches people have put up in the issues threads. Don't use these - they seem to break the "read more" functionality. The module works great as is. Or you can download this one which I've modified slightly for my needs.

2. Get the 4.7 version of the ConTemplate module (another fabulous creation by JJeff)

3. Install both modules

4. Turn on excerpt functionailty (e.g. seperate textarea for teaser) by going to /admin/settings/content-types and selecting each content type and turning on/off "Manual excerpt" for each one.

5. Once you're done with that go to /admin/node/template to set up contemplate. You'll be greeted by a screen which lists all of your content types and has a link which says "create template" next to it. Click this link for each content type you want to enable a seperate teaser for, scroll down to where it says "Body Template", paste in the following:

print $teaser; print $body;

Pages

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