Hi. I am created new contrib module for category.module.
Its similar to category_views, but much simplier. I was created it because category_views & views module exceed memory limit on my hosting.
My module (category_phpview) using a little patch in category.module replaces standard output of node listing to generated by custom php code.
For example, on my current project I can enter such code:
<?php
$categories = category_get_children($node->nid);
foreach($categories as $cid=>$cat)
{
print node_view(node_load($cid), 1);
}
?>
<br class="clearboth" />
And container displays its categories as custom teasers instead of simple listing.
Does everyone need this module in main category archive?
I can post a patch for current category module if needed or place archive with needed files and instructions somewere.
P.S.: Sorry for my bad English.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | dist.tar.gz | 17.68 KB | radev |
| screenshot_25.png | 31.35 KB | radev |
Comments
Comment #1
Jaza commentedHmmm... I'm reluctant to allow this module into the category package. As with all modules that allow direct PHP input, it's potentially very dangerous if used by people who don't know what they're doing, or if permission to access it is accidentally given to unprivileged users on a site. It also bypasses both the filtering and the caching mechanisms in Drupal core, which would affect security as well as performance on sites that use it.
Please post the module file as an attachment to this thread. Other people can comment on whether or not they think the module should be added to the category package. If there proves to be demand for this module, then I will seriously consider adding it to contrib, and making you a category package maintainer.
Thank you very much for taking the time to develop a new module for the category package. We are always looking for new developers to help out with the category module!
Comment #2
radev commentedOkay with your reasoning for not inclusion in category package.
May be possible to integrate some functionality directly into core category_display.module?
For example, possibility to display image previews or some other teasers instead of simple listings can be useful.
Look at http://revera.ru/authors to see what I am talking about.
Comment #3
bdragon commented