The company has departments. Ex.: MyCompany - London department, New York depart开发者_运维百科ment etc. Each department has own news, prices, photogallery. Structure:
- MyCompany --- London ----- News ------- news1 ------- news2 ------- news3 ----- Price ------- price1 ------- price2 --- New York ----- News ------- news1 ------- news2 ------- news3 ----- Price ------- price1 ------- price2I looked at 'Node Reference', but couldn't get URL like. /london/news/1, because parent url(/london) not presented in pathauto pattern. How can i get such a structure?
You could use or Drupal's menu system or Drupal's taxonomy to make such relations. The relation is not always defined by URL.
The Relation module may be a good option.
Where would this structure be used? I think you could either use taxonomy terms instead of nodes (terms in 7 are fieldable entities and you can use views to make them do pretty much anything a node can) or create a taxonomy hierarchy and associate each term with a node.
Node Heirarchy module.
Though it looks like it's not ready for release for D7. Aren't they already up to 8?
Nice explanation: https://www.youtube.com/watch?v=oz3xkF819c0
精彩评论