I have recently noticed that the node order in Drupal commerce is showing the full products with various details - images, price, stock numbers etc. This makes it hard for shop admins to reorder the products at will. I have a dev version that is a couple of months old where this is not happening. The settings are the same. The module version is the same. The extra content seems to be within an tag in the html but I cant work out how to remove this and go back to just a draggable title. The title is there although hidden with 'element-invisible'.
Any ideas?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | nodeorder-remove-extra-content-from-tpl-2828141-4.patch | 488 bytes | jbloomfield |
| #2 | Screen Shot 2016-11-16 at 16.35.30.png | 41.6 KB | Anonymous (not verified) |
| #2 | Screen Shot 2016-11-16 at 16.34.02.png | 39.57 KB | Anonymous (not verified) |
Comments
Comment #1
Anonymous (not verified) commentedolomouc created an issue. See original summary.
Comment #2
Anonymous (not verified) commentedComment #3
jbloomfield commentedIt looks as though this is caused in the template file provided with the module. If you override this and remove the
print render($content);then it should only display the title of the node.
Comment #4
jbloomfield commentedAdding a patch to remove the extra content output, if users want to add any extra content, they can override the template. We have a complex admin theme setup whcih makes it harder to override this template, so I believe the title is sufficient.
Comment #5
qudec commentedPatch tested and working, I'm in the same situation as #4.
Comment #6
davps commented@qudec thank you for confirmation and testing.
I don't sure that removing extra content from output is a best solution. Need to think about other cases.
Comment #7
vrajak@gmail.com commentedAnyway to get a nodes image to print here? I've tried a variety of ways as per the modules template instructions but no go.
Comment #8
avpaderno