When on node edit page there are no classes that point this is a node edit page, so if i want to theme node edit forms i have to make it for each ID as this is output of body class, can this be improved so there is some class for this?

not-front logged-in page-node no-sidebars layout-main sidebars-split font-size-12 grid-type-960 grid-width-16 admin-menu

Comments

Marko B’s picture

something like this to add in template body_class preprocessing

   $body_classes[] = (arg(1) == 'add') ? 'node-edit' : '';   
   $body_classes[] = (arg(2) == 'edit') ? 'node-edit' : '';
stephthegeek’s picture

Version: 6.x-1.0-rc1 » 6.x-1.x-dev
Assigned: Unassigned » aquariumtap
Priority: Normal » Minor
Status: Active » Needs review

This can go in 6 and 7.

aquariumtap’s picture

Assigned: aquariumtap » Unassigned
Poieo’s picture

Issue summary: View changes
Status: Needs review » Closed (works as designed)

.page-node-edit was added to D7.

Closing as works as designed since the D6 version is getting no new development.