Skip to main content
added 143 characters in body; edited title
Source Link
Pierre.Vriens
  • 36k
  • 40
  • 50
  • 182

how Should I use contextual filters to showlimit the view results for each admintype of administrators?

I'm trying to display the View according to the current director, example:

  • I have a content type called faculty news,and I have two faculties: medicineMedicine and Sciences, the content type faculty news is all news of medicine and Sciences.

  • I have two administrators: admin-medicine and admin-sciences, each one has permissions to publish, read and write only in his faculty.

  • I have the View: Administrator faculty news with the path http://example.com/administrator-faculty-news

  • This view display nodes from content type faculty news.

This view display nodes from content type faculty news.

Now I want to enhance this view like so: when the admin-sciences connected inadministrator uses the path http://example.com/administrator-faculty-news he, then only sees the news of histhe Sciences faculty should be shown in the Views results, and the same for admin-medicine (only show the news of the Medicine faculty).

With contextual filter? howHow can iI do that?

Note: Medicine and Sciences is implemented using taxonomy.

how to show the view for each admin

I'm trying display the View according to the current director, example:

  • I have a content type called faculty news,and I have two faculties: medicine and Sciences, the content type faculty news is all news of medicine and Sciences.

  • I have two administrators: admin-medicine and admin-sciences, each one has permissions to publish, read and write only in his faculty.

  • I have the View: Administrator faculty news with the path http://example.com/administrator-faculty-news

  • This view display nodes from content type faculty news.

Now I want: when admin-sciences connected in http://example.com/administrator-faculty-news he only sees the news of his faculty, the same for admin-medicine.

With contextual filter? how can i do that?

Should I use contextual filters to limit the view results for each type of administrators?

I'm trying to display the View according to the current director, example:

  • I have a content type called faculty news,and I have two faculties: Medicine and Sciences, the content type faculty news is all news of medicine and Sciences.

  • I have two administrators: admin-medicine and admin-sciences, each one has permissions to publish, read and write only in his faculty.

  • I have the View: Administrator faculty news with the path http://example.com/administrator-faculty-news

This view display nodes from content type faculty news.

Now I want to enhance this view like so: when the admin-sciences administrator uses the path http://example.com/administrator-faculty-news, then only the news of the Sciences faculty should be shown in the Views results, and the same for admin-medicine (only show the news of the Medicine faculty).

With contextual filter? How can I do that?

Note: Medicine and Sciences is implemented using taxonomy.

Improve formatting
Source Link
sanzante
  • 7k
  • 3
  • 29
  • 42

imI'm trying display the View according to the current director, example:

  • I have a content type called : faculty news,and i have two faculties : medicine and Sciences, the content type faculty news is all news of medicine and Sciences

    I have a content type called faculty news,and I have two faculties: medicine and Sciences, the content type faculty news is all news of medicine and Sciences.

  • I have two administrators : admin-medicine and admin-sciences , Each one has permissions to publish, read and write only in his faculty

    I have two administrators: admin-medicine and admin-sciences, each one has permissions to publish, read and write only in his faculty.

  • I have the View : Administrator faculty news

    I have the View: Administrator faculty news with the path http://example.com/administrator-faculty-news

    with the path : http://example.com/administrator-faculty-news
  • this view display nodes from content type faculty news now i want : when admin-sciences connected in http://example.com/administrator-faculty-news he only sees the news of his faculty, the same for admin-medicine.

    This view display nodes from content type faculty news.

    with contextual filter? how can i do that?

Now I want: when admin-sciences connected in http://example.com/administrator-faculty-news he only sees the news of his faculty, the same for admin-medicine.

With contextual filter? how can i do that?

im trying display the View according to the current director, example:

  • I have a content type called : faculty news,and i have two faculties : medicine and Sciences, the content type faculty news is all news of medicine and Sciences
  • I have two administrators : admin-medicine and admin-sciences , Each one has permissions to publish, read and write only in his faculty
  • I have the View : Administrator faculty news with the path : http://example.com/administrator-faculty-news
  • this view display nodes from content type faculty news now i want : when admin-sciences connected in http://example.com/administrator-faculty-news he only sees the news of his faculty, the same for admin-medicine. with contextual filter? how can i do that?

I'm trying display the View according to the current director, example:

  • I have a content type called faculty news,and I have two faculties: medicine and Sciences, the content type faculty news is all news of medicine and Sciences.

  • I have two administrators: admin-medicine and admin-sciences, each one has permissions to publish, read and write only in his faculty.

  • I have the View: Administrator faculty news with the path http://example.com/administrator-faculty-news

  • This view display nodes from content type faculty news.

Now I want: when admin-sciences connected in http://example.com/administrator-faculty-news he only sees the news of his faculty, the same for admin-medicine.

With contextual filter? how can i do that?

Source Link
Salaktarus
  • 301
  • 1
  • 9

how to show the view for each admin

im trying display the View according to the current director, example:

  • I have a content type called : faculty news,and i have two faculties : medicine and Sciences, the content type faculty news is all news of medicine and Sciences
  • I have two administrators : admin-medicine and admin-sciences , Each one has permissions to publish, read and write only in his faculty
  • I have the View : Administrator faculty news with the path : http://example.com/administrator-faculty-news
  • this view display nodes from content type faculty news now i want : when admin-sciences connected in http://example.com/administrator-faculty-news he only sees the news of his faculty, the same for admin-medicine. with contextual filter? how can i do that?