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

Retrieving and displaying Flexinode fields in a costumized way

Hi all..

I'm developing a web site for a bruchure site that want to marketize their products online..
Eventually the site will also be an ecommerce, but this detail is not relevant at the moment..

I've decide to use the flexinode module.. I think its a wonderful module..

Say I create a new Content Type and call it 'Flower Variety'.. Every node of this typw will have a certain number
of fields.. For example: "Primary Image", "Details", "Size", etc. etc..
And everynode will be displayed using a particular node.tpl.php template file.. In my case I'm using a
node-flexinode_1.tpl.php template file for the rendering of my "Flower Variety" nodes..

My doubt now is... How am I going to access all the fields of nodes belonging to my new content type?
My current ideas are now:

1) write a module that does it all, including the rendering of the HTML code that will place all
values in a purely HTML structure (The style would come from the CSS)

2) Do it inside the node-flexinode_1.tpl.php itself accessing somehow the fields of the nodes
(in this case I guess I would have to write all queries to get the flexinode fields inside the template
code.. which does not sound appropriate..)

I would really like avoiding writing a module but dont know if there is a simple way of accessing all fields of
my new node..

I've even tried to call the function:

var_dump($node);

db_query Question

I can get this to work:

db_query("INSERT INTO {term_node} (nid, tid) VALUES (%d, %d)", 200, 300);

But this does not:

$nid = $node->nid;
$tid = 134;
db_query("INSERT INTO {term_node} (nid, tid) VALUES (%d, %d)", $nid, $tid);

Can anyone see what I'm doing wrong?

Here's the query in context:

form_mail module?

Does anyone know if there is a form_mail like module that's current? I see one that hasn't been updated in a while. I have a fairly customized contact form that's written in html (with radio buttons and many fields), and since I don't know php, it's difficult for me to customize the feedback module to meet my needs. Any ideas?

Playlist RSS feed not working properly

I just installed the audio module and the playlist module. These modules worked so nicely that I decided to transfer my pre-existing podcast to drupal. However, now that I have everything transferred, I noticed that the RSS feed created by the playlist module is confusing to RSS readers. I've tried subscribing to it through iTunes and Google Reader, but neither one has been able to read the RSS file properly. iTunes can only pick up the podcast title, and Google Reader picks up the title and details of each episode, but rather than linking to the audio file itself, it links to the node page, which means that it doesn't let you listen to the audio like it should.

Here's the link to my playlist, followed by the link to my RSS podcast feed:

http://treesong.org/yourcommunityspirit/?q=node/3
http://treesong.org/yourcommunityspirit/?q=node/3/podcast

At first, I couldn't figure out why it wasn't working. Now, upon further review, I think it may have something to do with the fact that I don't have "clean URLs" enabled. (Dumb hosting at GoDaddy.) Is it possible that iTunes etc. reject an enclosure's URL if it's got ?'s in it? Another possibility that comes to mind is that the makers of the module have formatted the RSS improperly. But it looks okay to me. To be honest, I'm kinda mystified as to why it's not working. The internal workings of the modules themselves are pretty smooth, but none of the readers seem to like the RSS feed.

member messaging functionality?

Does anyone know if there's a functionality or module for members to send messages to each other while logged in and get e-mail alerts when they receive a new message? I looked around in the module list, and didn't see one.

Meta tags are dead?

Hi, guys

I'd like to get back to the meta tags Drupal 4.7.* seems ignore by default. It was discussed already while ago on http://drupal.org/node/4647 , but first, it seems outdated (2003), second all important links on the thread are dead:

Pages

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