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

Rendering a block from within a module

Hi all,

I'd like to know if there is a wat of rendering a block from within the callback function of a menu item ...

My module's menu_hook implements the menus and their callbacks; In one of the callback functions (one menu item) I want to render in the same page the contents of a block..

The block is defined through a view (Views module) and picks up certain nodes which I want displayed when the menu item in consideration is clicked.

I've searched the API but couldn't find a lot. maybe variable_get()?

Sorting nodes in a View depending on popularity?

Hi,

I'm displaying a list of teasers in a View. I'd like to display the most popular node (in views) first and the least, last.

Is this possible?

Thanks!

Custom nodes from external database records

I have Drupal running on the same server space as a separate MYSQL management system. I have already created a custom block to display in Drupal records from a table in this this external database.

What I would like to be able to do is turn an external database record into a Drupal custom node - so taking advantage of all the paging/views facilities/caching.

Anyone got any experience of this or can give some pointers (Do you need to delve into _db_rewrite_sql to pull this off?)

Thanks

Paul

Modify the Taxonomy Header

I'm modifying the ed_classified module and I'd like to display an image next to the category within a single category view.

i.e. /ed_classifieds/tid/5

theme_ed_clasified() is producing the output below the header which contains the category name. How can I modify the header generated by taxonomy from within the classifieds module?

G2 Glossary Module Quick Question

I've installed G2 Glossary Module and have added G2 Entry Content.

-The content shows if I promote it to the front page.
-The alphabar shows in blocks where I activate it.
-The tag successfully links to Glossary Terms on their own pages.

BUT

When I click on the G2 Glossary Main Page, instead of a list of items, I just get a vertical list of *< symbols.

Why aren't my terms showing up there?

Please advise.

User Profiles Display Customization

This seems pretty straight forward to me, but I can't seem to find a straight answer.

USER PROFILES... I have made a user profile into a Nodetype... Thats cool, but I also want it so when a user posts lets say an event, a classified and a photo in a photo gallery... I want to be able to show this on a Profile page... in Blocks lets say...

ie:

TOP ROW ********************* USER PROFILE ********************* TOP ROW

NEXT ROW **** BLOCK: EVENTS BY THIS USER / BLOCK : CLASSIFIED BY THIS USER / BLOCK: PHOTOS BY THIS USER ******

Pages

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