0

I have contents in the following url:

mysite.com/project/node-id

But then i want the user to be directed to

mysite.com/entries/node-id when they click on entries link.

How do i achieve this? In the entries page i want to show a view which takes the node id from url and shows results accordingly.

apaderno
  • 28,547
  • 16
  • 75
  • 90
Rahul_2289
  • 311
  • 2
  • 6
  • 18
  • can you elaborate further it will be easier to help you – Vishal Khialani Nov 16 '11 at 16:30
  • @vishal:Well i have got the solution.I have a node A1 created from content type A and i have a view which shows me all the nodes of content type B node-referenced to A1. I placed a link on every 'A' type node page which will take me to a view containing B nodes referenced to A1. – Rahul_2289 Nov 17 '11 at 09:52

2 Answers2

1

The answer lies in using arguments with views. http://gotdrupal.com/videos/drupal-views-arguments .This video exactly represents what i had asked for ! using arguments in views we can create dynamic views of 'page' type display.

Rahul_2289
  • 311
  • 2
  • 6
  • 18
0
  1. Create content type(Entries) by CCK
  2. Use pathauto, to create desired urls for Entries content type(/entries/[nid]).
  3. Then render this new content on project pages(Views, blocks, menus or etc)
imilbaev
  • 864
  • 12
  • 19