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

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).

Module and Taxonomy

Hi,
I'm developing a module (node) which uses taxonomy, when I try to save the taxonomy in the term_node table, using either sql insert or taxonomy_node_save, after I do it another query delete it.
I do in the _insert hook.

Where should I do the insert to taxonomy, or which function to use?.

Thanks in advance

easy way to wrap existing PHP app

Hello All,

We've decided to run Drupal as our Intranet application, and we have a number of pre-existing PHP applications which we use (ie. timesheets etc). I was wondering if there is an easy way to wrap them into drupal as modules? ie. turn them into page nodes with all their own database code intact? etc.

Thanks, nick

Pages

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