Closed (won't fix)
Project:
Chaos Tool Suite (ctools)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2010 at 20:51 UTC
Updated:
6 Nov 2010 at 14:38 UTC
I've spent a fair amount of time looking through content.inc and think this is a valid request. If I've missed how to do this please let me know.
This request is to allow an alter on the content types. Mostly to change the categories or title.
Maybe place a drupal_alter in ctools_get_content_types or ctools_get_content_type?
Comments
Comment #1
sdboyer commentedNo. :)
Which isn't to say that I think the need to tweak content type definitions is invalid. Rather, it's that I don't want to solve this problem with an alter if the goal is just to tweak category or title. The preferred solution is one where you can create one-off'd versions of the content type which are, themselves, content type instances. Because that's a step towards being able to bundle up sets of content types into packages that can then be deployed out as groups of available content types, complete with special naming and categorization.
If you can provide an argument for this beyond modifying the category/title info (that's the only use case I've been able to think of, myself), then I'd reconsider. Or, if it looks like the aforementioned bundle of work is going to get back-burnered, then I'd consider this as a stopgap. My problem with this solution is that it's a) not very portable (think Features) and a distant b) I'm trying to avoid introducing yet more alter-itis.
Comment #2
jrockowitz commentedMy specific use case would be to disable certain categories and content types for panel nodes, which I am letting low-level end-users build. For example, there are several blocks like "Who's Online" and "Who's New" that I don't even want to show to users. The bigger use case and challenge I am facing is "How can I take this amazingly powerful module and simplify it for my end users?". (ie http://drupal.org/project/simpleviews)
I understand argument a) and yes alter hooks are just not that portable (unless they are written very carefully). Alter hooks are a very good answer to the 'can I do blank?' question.
Argument b) is so reasonable ... more people should chime in.
Thanks,
~jake
Comment #3
merlinofchaos commentedYou can already disable content for panel nodes. Visit admin/build/panels/settings/panel-node -- you can also control which layouts are available.
Comment #4
jrockowitz commentedThanks, I had no idea about this feature. It is exactly what I needed.