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

Views module - Exposed filters within a block, searching CCK nodes

I'm using the Views module with a CCK content type to display both a block and page view (list type views on both).

First Issue: I have some exposed filters on the page view and I have to also display them in the block view. I got the filters to display in the block by overriding the theme_views_view_[VIEWNAME] function. I just changed the condition for whether or not to display the filters to not check for the view type. So now the filters display on my block. However, when I pick stuff and hit submit, it refreshes the page, the filter form data is in the URL, but the block view does not display at all. If anyone else has done this and can give me some tips on where to look next to get the filters functioning on my block view, I am all ears.

Second Issue: Along with the filters in my block and page view, I have to provide a search box that will search my custom content type. I found this: http://drupal.org/node/68571 which I got to work properly from within generic nodes. But, when I add the bit to display the search box in my customized theme_views_filters_[VIEWNAME] function, the search box doesn't work at all. It displays, but hitting the search button doesn't do anything.

I hope I will not have to write a custom module to do all of this...but if that is what is needed I would like to know sooner rather than later so I can get started doing that and stop messing around with these little hacks.

Modify forum module?

Hi, I want to make the forum display story nodes which have an specific taxonomy term (the subforum should be named after the taxonomy term). But I have no clue how to do that, is it better to write a new module or modify the forum module?

I thought that using the default_taxonomy_terms module, and asigning a taxonomy to the story node that matches a forum category should work, but the forum doesn't show me the nodes (probably because they must be 'forum' type, and these are 'story' type). Anyone can give me a clue? Thanks!

Sorry about my english :S

problem in Upload swf file

hi to all,
i new to drupal...i developing..one site..using drupal..
In that project..i want to upload a flash file...using TinyMce texteditor..i m not able to upload my flash..file..i got a error ......only .jpg,gif..files able to upload...uploaded failed...
how to possible this....

using IIS server...i m try to run drupal...but i got.....php mysql support not enabled...through..forum..i got some hint...but it doesn't working...... plzzzzzz..help for this..
Thanks in Advance

Display number of buddies...HELP!

Hello,

I am trying to figure out the code to display the number of buddies the logged in user has. I want to create a block that says how many total buddies the user has. Any ideas?

Thanks

how to configure alternate db_url from settings page?

I'm developing a module that needs access to the database other than default. I know that i can add another db_url in settings.php manually and then use db_set_active('other'). but is it possible to do it using form on settings page of my module? can i somehow use get/set_variable to set that db_url['othet'] and then use db_set_active('other')?

Premoderated content

We are a university and we do not trust each other. People must create content, which will not be immediately available to other users or guests. There will be a group of moderators who will check the content and make a decision whether to publish it or ask the author to make changes first. Everybody outside that group should have no chance to publish.

Pages

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