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

Is it possible to show only 100 characters in aggregated content ?

is it possible to show only 100 characters in aggregated content

Overcoming Limitations in nodeapi::view

Hi All,

I have developed a module that is used to extend a configurable list of existing node types. This modules makes fairly good use of the nodeapi hook.

The problem I am having relates to the nodeapi::view hook. It seems that whatever I do in this hook, I cannot change the content that appears before $node->title is displayed. In my case, I want to change the class specified in the

Best way to change the way user registration works

Hey there!

I'm creating a website where ...

  1. ... the user goes to a registration page ...
  2. ... enters personal information (first/lastname, date of birth, city, etc.) and uploads a picture without having to choose a username/password ...
  3. ... becomes a registered user that can be treated as such.

Now my question is, where to hook a module into:

Is there some simple method of finding the default site language?

I have found that:

$user->language;

returns the language of the currently logged on user, but returns nothing when the user is 'anonymous'.

I'm trying to find some straightforward, simple way of determining what the default site language is (ie the language for 'anonymous'), whether or not the localisation module is switched on. For example, I rather hoped there might be a "$site-language" but there isn't.

Can anyone help me?

How does the Tracker Module work? I want to make pages not get picked up (ver 4.4.2)

Hi,

This seemed the best forum to ask this. Basically I want to add content to our site but I don't want the tracker to pick up the pages as new/changed. We use the tracker to provide a way for users to quickly see what's received comments and been posted that isn't obvious on the front page.

However, this means that whenever I adjust any content, that page appears in the list. Really I want the facility to bring some pages out of the tracker's clutches, or 'spoof' them with incredibly ancient edit times so they go to the bottom of the list.

Creating simple type: needs extra table?

I'm trying to create a very simple type, just to see how things work. I looked at the node_example in the documentation and (almost) understand everything what is going on. I have just a simple question:

node_example stores it's data in a new table (color & quantity). Is it really needed to create a new table to store only one additional field (next to body etc)? Not that it is a big problem to do so, but I'm wondering if it is not a bit of overhead if you only want to store one small text-string. Is there no other table this can be stored in? Eg in {node} table itself?

Pages

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