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

Check_Markup issue?

$check = '<?php print "hello"; 

';
print "Checked: ".htmlentities(check_markup($check, 2), ENT_QUOTES);
print "
Original: ".htmlentities($check, ENT_QUOTES);
?>

Format 2 is the php filter and this code returns:

Checked: hello
Original: print "hello";

Why does it strip the code? This isn't very helpful :o( It used to work when using check_output in 4.6?

Pobster

image_import for 4.7...

4.7

Any eta on when this will be ready? I have a site I need to finish up in the next couple of days and it depends on multiple image uploads since the user will be uploading 30 photo sets daily.

Thanks in advance,
Jeff

Where can I find the "last updated/added" modules?

Hi there!

This is just a suggestion... but it would be very nice if could be an area on the index page, or maybe at the "modules" page, or "downloads" page where we could see the last updates/added modules on the site.

I´ve searched for it and didn´t find it... maybe it is out there and I´m wasting your time asking for this... (in this case, please tell me where it is ;-)

Greetings!

Rosamunda

Accessing Current Node in Block Module

Ok, I am quite new to drupal, so please forgive me if I am missing something elementary. However, I am looking through module source code, the API docs, and this forum, and still haven't found an answer to my problem.

I want to create a module that will produce context-sensitive content in a block in the right-hand column. I am using a taxonomy to assign each node to a content hierarchy. For each node, then, I want to produce sidebar content that is related to it through the taxonomy terms. I would like to configure this like other blocks -- i.e., enable the module, enable the block, and tell it to go on the right.

As far as I can tell, I need to get the current node object to get its terms. But, I can't figure out how to identify the current node without having to parse the URL, and I can't help but think that that seems like a hack. Is this really the best/only way? I have read through a number of other forum posts that express the same sorts of issues, but the solutions all divert from the original intent. My apologies if, in my travels, I simply haven't found the one, true post that contains my answer -- if you know where it is, please let me know!

My compromise right now is to not treat it like other blocks. In my template code, I am just making a call to:

<?php 

// the context-sensitive stuff
print mysidebar_display($node);

// the normal sidebar
print $sidebar_right;

?>

This seems less comfortable to me, but it will work for now. Unfortunately, I cannot intersperse the context-sensitive block within the other sidebar (what if I want it in the middle of the other blocks?). Why is $node not in scope for a module?

-Josh-

flexinode - a simple concept of how to make it more scalable

I like and am challenged by flexinode for all the usual reasons, but have found the following approach useful in solving the database overhead of flexinode that can make it too resource intensive in some circumstances. The basic concept is to 'compile' the flexinode content into the body and abstract in the node table values and only load the flexinode table values when necessary.

Teaser and Body Templates for CCK

In the latest Drupal Podcast, JonBob and I talked about CCK. One of the things that we talked about were the problems getting the CCK field information to display nicely on pages and particularly in RSS feeds. We talked about creating a forum topic so that people could give some feedback on this subject. Here it is!

Pages

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