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

nmoderation in Teaser???

Hey, I'm sure this is a pretty simple question:

Basically, I'm using the nmoderation module, which at present is being recalled when the user clicks into a node.

How can I recall it in the teaser as well? i.e. so the node vote box is below the teaser?

I couldn't locate any pages in the handbook which specifically refer to linking things to the teaser... I'm sure its in there somewhere.

Thanks,

Alex

Do node_load returns object only if the user has access? bug?

I have been testing and since I migrated to 4.6 it seems that node_load only returns an object when there is a user with access that is logged on.
The problem is that I need to load this on a cron. Does anyone know how can I get node_load to return the object from a cron without a user logged on (anonymous)? ... is this a security feature or is this a bug?
Thanks

Hide tabs when there is no content

I would like to hide tabs in the user profile when there is no content to display.
I' m working on a module to put an image gallery inside the user profile, now i can display the tab with it's content, but if the gallery is empty i would hide this tab.
Any suggestion?
Thanks

Video module is not working

HI, i m having a problem i installed the video module and activated it but when i m using it i can see the movie does anyone know why is this happening and if someone can help me with this
thanks

Problems with indexes of table `user_related_content_relationship_......'

We would be very pleased if any can help us telling how to solve these errors and warmings.

1) MySQL warning

Problems with indexes of table `user_related_content_relationship_type_content_types`
MySQL warning
PRIMARY and INDEX keys should not both be set for column `rtid`

2) and this other error quith the users module:

warning: Invalid argument supplied for foreach() in /home/conseno/public_html/modules/user_related_content/user_related_content.module on line 345.

Performance question regarding block module filtering flexinodes

Yesterday I created my first block module. This module shows a portfolio overview in the right sidebar. To display the right projectpages only, flexinodes need to be filtered (depending on the page's context). I'm wondering what is the best performing way to go. I'll explain.

On my site www.newoceans.nl/en-local I have the menu items and sections (using sections.module):

  • webdesign
  • graphic design
  • multimedia presentations

To store project information as a kind of portfolio, I use flexinodes. The contenttype for these flexinodes is called a "projectpage". Each flexinode of type "projectpage" contains 18 flexinode fields.

As said before, in the right sidebar of my website I have a column "portfolio". In this column I want to show an overview of the projects, but then filtered: In the webdesign section I only want to show website projects, in the graphic design section I only want to show graphic projects, and in the multimedia presentations section I only want to show presentation projects.

Does anyone know what kind of solution will result in the best performance:

  • Create one general block module, which will be used on pages of all three sections (block's path definition will contain three url aliases).
    -> This is about a block that filters flexinodes by comparing the current page's section with the flexinode's section (if the current page's section is the same as the flexinode's section: show the projectpage in the sidebar, if the current page's section is not the same as the flexinode's section : do not show the projectpage in the sidebar)
  • Create three specific block modules, which will be used on pages of one section only (block's path definition will contain one url alias).

Pages

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