Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi, I'm building a site that has a list of products that each belong to a category
So I have a content-type called 'categories' with a 'category_name' field and a 'description' field.
And I have another content-type called 'products'.
I want to add the 'category_name' field to the 'products' content-type. I.e. each product can be assigned to one product category.
I cant figure out how to add this 'category_name' field to the 'products' content type. Can anyone help?
I am trying to work with Omega theme and it requires Chaos Tools and Context. I have installed all the modules, enabled them and Context is not showing up in my Structure menu. I have done this before on another test site and it worked. I am stumped. Any ideas would be greatly appreciated :)
Here is a drush report on the modules.
Package Name Type Status Version
Chaos tool Bulk Export (bulk_export) Module Not installed 7.x-1.0-alpha
suite 2
Chaos tool Chaos tools (ctools) Module Enabled 7.x-1.0-alpha
suite 2
Chaos tool Chaos Tools (CTools) AJAX Module Not installed 7.x-1.0-alpha
suite Example 2
(ctools_ajax_sample)
Chaos tool Chaos Tools (CTools) Plugin Module Not installed 7.x-1.0-alpha
suite Example 2
(ctools_plugin_example)
Chaos tool Custom content panes Module Not installed 7.x-1.0-alpha
I've created a view to have a list with all posts (these are small posts, no story's or something). While this is working I need to have the edit tabs appearing on every single node that's displayed in the views overview.
So I opened up the views-view.tpl.php file in my custom template and added this:
Hi, when I'm logged in as administrator and looking at page an 'Edit' tab will be visible but when a normal user is viewing the page this tab will not be present. This is a very handy feature, so how can I add this functionality to a 'Views display'? I.e. the administrator would see a link in each cell in the grid which can be clicked on to edit the node content and regular surfers will just see a simple Views display with nothing clickable.