88702

Create a Context View in Drupal and then display in Panel based on NID (node id)

Question:

I have a quick question. I am sure it is easy to do but I am missing something.

How do I create a View Context of All Content/Node Types. Then I want to display my nodes in Panel 3 based on NID/Node ID? Is this the right way to go?

Background:

There are many teachers as Content Types. There is a page for all teachers eg www.example.com/all-teachers. If a user clicks on "a particular teacher" from this page they should be taken to:

www.example.com/teacher-name - this page should display contents from "this teacher".

Please ask if my question is not clear and thank you so much for your help.

<hr />

Thank you for your reply.

The Panel 3 part is only to have a custom layout page. I am using 960grid to display the content. I want to display dynamic content in the panel based on NODE ID.

The way to do this is to create a View and pass an argument which will be Node ID. Then in Panel 3 you can create the Context (View). This allows you to put fields from the node on seperate content panes.

The URL displayed will be based on the Node ID. Its basically like creating 1 template for many different teacher details. I am not sure how to explain it in technical term but I hope you get the idea.

Thanks.

Answer1:

I don't understand why you need panels at all. Can't the view just link each teacher to it's node? If you want to control how a teacher node is displayed why not use something like <a href="http://drupal.org/project/ds" rel="nofollow">Display Suite</a>.

Recommend

  • Project Euler #3 Get largest prime factor of a number
  • Is using Silverlight a hindrance for Startups?
  • Importing CSV files to Python and subject and teacher task Python
  • Can I use an at (@) sign in the path part of an url
  • SQL Query (or Join) for 3 tables
  • How do I save GORM objects with multiple many-to-one relationships?
  • Which event is called when a user click on the disabled item in context menu?
  • Rspec doesn't reload changed password attribute - why?
  • Oracle SQL: Receiving 'no matching unique or primary key' error and don't know why
  • JQM (jQueryMobile) Problem with AJAX content and focus()
  • Entity Framework ObjectContext: Concurrency
  • Using MouseListener to select a range of cells in a grid
  • Dart - Isolate Cross Window Communication
  • custom UITableViewCell with image for highlighting
  • How do I access an unhandled exception in an MVC Error view?
  • Google Custom Search with transparent background
  • Android fill_parent issue
  • C++ Partial template specialization - design simplification
  • NHibernate Validation Localization with S#arp Architecture
  • Repeat a vertical line on every page in Report Builder / SSRS
  • What is Eclipse's Declaration View used for?
  • Bug in WPF DataGrid
  • How to apply VCL Styles to DLL-based forms in Inno Setup?
  • htaccess rewriting URLs with multiple forward slashes
  • Redux, normalised entities and lodash merge
  • Display Images one by one with next and previous functionality
  • Web-crawler for facebook in python
  • Jquery - Jquery Wysiwyg return html as a string
  • SVN: Merging two branches together
  • A cron job substitute?
  • How to delete a row from a dynamic generate table using jquery?
  • json Serialization in asp
  • Rails 2: use form_for to build a form covering multiple objects of the same class
  • how does django model after text[] in postgresql [duplicate]
  • How to stop GridView from loading again when I press back button?
  • Authorize attributes not working in MVC 4
  • Append folder name and increment by 1 using batch script
  • Busy indicator not showing up in wpf window [duplicate]
  • Python/Django TangoWithDjango Models and Databases
  • Net Present Value in Excel for Grouped Recurring CF