Hi there,

First, huge thanks to merlinofchaos for helping drupal to beeing better and better each day. I wouldn't imagine drupal without views, panels, or others modules he largely contributed. You deserve to the best php open source contributor.

I recently tested to theme a full node page using panels, no problems at all, the UI is absolutely awesome and it's quite easy to do sooooo complex things, without a line of code. Excellent.

However, to have a better control of the display, I chose to check the option "No extra", and to embed each CCK fields my node have exactly where I want in my panels.

BUT, I needed to write some rules for my node on the event "When the node is going to be viewed". And I noticed that the rules was not triggered cause to the "No extra" option checked.

I think there are not a lot of project that needs to add absolutely NO extras to a node, generally, it's for embed views or CCK, but not all, especially rules. That's why I think it would be very cool to have better control about it, maybe a dedicated checkbox for no CCK or no Views, or a more general / advanced control that allow you to choose the modules you want to include or not in the "No extra" options. I think it would be the best.

As my need is urgent I will add the extra and theme my node.tpl.php file to just call the node content without CCK fields, but I think it would be a good option for future generations ;)

Thanks again for your awesome work that surprise me each day ;)

Comments

merlinofchaos’s picture

It would be nice to have more control here, but it's fairly difficult to do that control. I haven't figured out a good way to do that. Let me know if you get some good UI ideas.

zmove’s picture

In fact, I don't really know what are the possibilities. If it can be set by module, a simple multiple select list that take the name of all module could be a good solution. The selected module would be the ignored ones or the exceptions, depend on the code you prefer to implement, I don't think one is better.

If it's complicated to do a by module setup, maybe writing a special code at least for CCK and views, because I think it could fit more than 90% of the needs, the rest are marginal.

Basically, when you click on "No Extra" checkbox, The select list could appear to choose by module setting or 2 others checkbox could appear for CCK or views.

It is possible like that ? If not, I'm ok to think about a good UI depending of the possibilities you expose me.

esmerel’s picture

Category: support » feature
merlinofchaos’s picture

Status: Active » Closed (won't fix)

After thinking about this, there is no good way to control this. The *best* we can do isp ick which modules nodeapi hooks we will call, and that's not really a good solution. Sadly, that checkbox is simply going to have to suck. :/