Hi all,
I am trying to write a custom node type that will split its content over several pages. Specifically, the content is a product. I want the three pages to represent:
- general overview
- technical specifications
- price list
I have built the content type and all of the necessary fields. I am now trying to use the menu callback system to filter page requests to the right view (I wonder if 'view' is an omen, and this can be done with the views module?). Bascially, if the url has an extra term that doesnt map to a menu item it should fire the relevant callback function.
As an example, a product path may be
www.example.com/products/generators/mx20
This will map directly to a product on the menu item and display the default information (general overview). If the request is appended to
www.example.com/products/generators/mx20/specifications
I want Drupal to check the path, realise it doesnt exist, and then use the 'specifications' argument to direct the module to run the "myModule_view_specifications" function, which in turn serves the specifications page.
The following code does not seem to do that! (although I had it working briefly and can't tell what I have changed ;(
$items[] = array(
'path' => 'specifications',
'title' => t('Specifications'),
'callback' => 'myModule_view_specifications',
'access' => true,