node

Events happening in the community are now at Drupal community events on www.drupal.org.
midlake's picture

Using rules to set content permissions

I'm a Rules noob with what could be a very common and easy problem to solve, yet I'm stumped. I have a content type called "resource" that I'd like to partially gate so that anonymous users can see the title and teaser, but not the full body or file attachments without logging in. Is it possible to use Rules to make it so that a user must log in to view the full node for a specific content type?

Thanks!

Read more
sagar ramgade's picture

Import/ update nodes from multiple sources.

Hi,

I am using feeds module to import nodes from the xml feed, i want to import some details from one xml and update few details from other xml.
In both xml sources they have a unique id and i had set up that id as the GUID in both the importer.
More info about this at : http://drupal.org/node/828000#comment-3156670
Can anyone help how to achieve this?

Read more
DrupalCuckoo's picture

Call hook_node_access_records() from custom function

hi,

usually the hook "hook_node_access_records($node)" gets called when you hit the save-button on the edit page of a node. I need to call this function outside the edit-form.

I'm building a custom content-privacy module and I need to call this function for all existing nodes filtered by content-type (for example all blog nodes).

The problem I have is that this hook needs a node-object as a parameter. When being on a node-edit page (node/[NID]/edit) this object will be available. But when I don't edit a node I have no node-object available.

Read more
mmartinov's picture

Relevant / Similar content

Those days a friend of mine come up with a question how to display a list of similar content bellow a node. He has researched and tested a bunch of modules, for example the relevant_content project, but it's giving a list of nodes with common taxonomy terms. What he wanted to show is a list with nodes having equal/similar values in their cck fields. I could create such a module but was wondering am I missing something?

Read more
martinshield's picture

Redigera node lösenord

Hej,
Sitter i början av ett projekt där sidan ska baseras på användardata.

Min fråga är:
Hur skulle ni lösa inmatningen av data? Varje node som skapas ska kunna redigeras utav personen som skapat den. Och personen ska inte ha ett inlogg på sidan utan min tanke är att man kan skapa en node och sätter då ett lösenord för noden. Man ska sedan kunna redigera noden med lösenordet.
Ungefär samma lösning som blocket använder sig utav.

Har ni några tankar om hur man kan lösa detta? Ska man börja på en egen modul eller finns det något man kan utgå ifrån?

/Martin

Read more
Rakward's picture

Menus disappearing after saving a node

Description of problem, see here:
http://drupal.org/node/782962

I figure people in this group have some experience with this and thus are better at helping out?

Read more
Hoeven's picture

(Tabbed) profile page based on role - with option on having multiple profiles

Hello,
I am building a site where a user can have one of two roles or for some user both roles. I would like to have a different profile page based on the role and ideally for those users with two roles, have the two profiles pages in different tabs so that the viewer of the profile can quickly switch between the two profile pages.

I have build the two profile pages using Content Profile / CCK / Panels 3

Now I am running into difficulty on how to actually show two profiles as two pages behind tabs.

Any suggestion welcome!

Read more
maxudit007's picture

ODF Import

About Me:

Hello people. I am Udit Sharma from India and I am a Drupal Developer. I am in fourth year of B.Tech. Computer Science from Rajasthan Technical University, Kota, India.

Overview/Description:

I would like to improve the current ODF Import module i.e. http://drupal.org/project/odfimport . Currently, this module supports only ODT import into drupal nodes. I would like to add ODP and ODS import functionality to this module.

Udit Sharma
http://uditsharma.in

Read more
alphex's picture

complicated referencing and specific order of OTHER nodes from inside a node

This one has me itching my head.
I'm working on a project for a client that has events.

These events are sponsored.

There are 3 tiers of sponsors.
Gold, Silver, Bronze.

I have a content type for sponsors.
That content type has .. title, logo, body... (I really only need it for the LOGO)

When making a new Event node, the author needs to be able to select sponsors that are in one of the ranks (gold, silver, bronze...)
"So, that's easy!" everyone says at the same time, "just use node_reference..."

Ah ha! not so fast.

Read more
LizD's picture

Getting custom Theme to work with custom node creation

Thanks to everyone who helped before. I have created my module, installed the new tables for the custom node type with the schema and declared all the form fields using the API. It works fine if I use drupal-get-form, but I need to override the default layout with a custom theme. This is where I keep running into trouble. I have declared the theme using hook_theme and have written a custom theme function (theme_jobapp) and I need to call the new node from a menu item. I have tried every possible combination I can think of to make this work.

My question is: How do I tell Drupal to use my theme and my form definition in a Menu callback?????

Please see below for a list of combinations and errors and code.

Read more
Subscribe with RSS Syndicate content