Drupal is up and running but how do I ...?

php: Show blocks for certain node types only

Hi,

How do I add a php condition on a block so that it only shows for a certain node type but is hidden for all others.

(eg the php/drupal translation of "show if node type == blog").

Thanks,
Ian
http://ian.yamey.com

What to do with orphaned content and their comments/votes???

Hi All,

THis is a three stage question;

1) Am I missing something here, or does Drupal NOT remove content from the site when the specific modules that are used to serve that content are uninstalled? I just installed the weblinks module, added a link along with a comment and a token vote using nodevote. When I deactivated the module and dropped the weblink database tables the title and description content, as well as the comment and vote remained. However any module specific data was removed, which in this case was the actual link to the site. I also noticed that if you deactivated the weblink module, delete any orphaned content, then reactivated it without dropping/truncating the module database tables you would be given a "Duplicate entry" error for the URL field when trying to add your link again.

2) If I understand the thread below correctly, then I gather that hook_taxonomy does not have any support for validation, meaning that if you deactivate a module Drupal has no way of being made aware that it should remove/migrate all associated content (including comments, votes, etc). If this is correct, then wouldn't this present HUGE issues for large content sites if they where to want to remove/migrate content from a partiular module? This isn't something that would happen on a regular basis, but I have several thousand pages of content I am looking to migrate to Drupal, and in my sites lifetime I have shifted content around a few times to get the functionality I've wanted. Only way around this I can think of is to migrate all your data (if need be), and then goto administer->content, set the filter to the content type you are removing, select each one, and then select delete from the drop down menu. Once this is done, then go and deactivate your module and drop the tables. Still a massive/boring task as there is no "Select All" function there, and if you had several hundred web link entries to delete it would become a tedius task very quickly.

maybe a stupid question.. links

ok, there are secondary and primary links.. but in "menus" section i've got only primary links available.. where could i get secondary links menu and define it?

Taxonomy - showing just the terms?

Hello,

At the moment, I have a category "issue" with terms "issue 1", "issue 2", "issue 3".
I am using taxonomy_menu to show a meaningful navigation system. So, when you click on an article in issue 3, you are shown the articles in issue 3, plus HOME -> issue -> Issue 3

Now: when I click on "issues", I would like to show a list of issues (that is, a list of terms), rather than all of the articles contained in all of the issues.

Is this at all possible? I have no idea where to start with this one...

Thanks a lot!

Merc.

clean urls prevents me from creating content - 403 error node/add

When I enable clean urls I get a 403 error when I click on the create content link. It goes to www.___/node/add and I get a 403 error. All the other nodes work fine.

I'm using 1and1.com to host, I changed the .htaccess RewriteBase /drupal to RewriteBase / to access the clean urls.

Any ideas?

What is this problem in the invite module...ay yay yay...help

This shows up above the main site...after the invitee clicks on the link provided in the invite email...hmm...how can I fix it? Use the new invite API possibly...I'll keep trying.

array_merge() [function.array-merge]: Argument #1 is not an array in /home/bombaclo/public_html/popkulture/droop/includes/menu.inc on line 351.

warning: Missing argument 1 for invite_api_page() in /home/bombaclo/public_html/popkulture/droop/modules/invite_api/invite_api.module on line 191.

Pages

Subscribe with RSS Subscribe to RSS - Post installation