Posted by shimaa_hosny on January 24, 2011 at 12:44pm
Hello,
I am new user in Drupal and I am creating e-learning site, I have created table of courses that contains start_date & end_date. and another table of classes. As each course will contain number of classes.
- when the views displayed the values of start_date & end_date fields, it was 01/01/1970 Although the correct value in the database is 22/1/2011.
- I need to add to each colomn (delete link, add class link, list course classes link).
- How can I send user.uid as an argument in the url to filter the retrieved courses to be for the current logged in user or instructor.
Sorry for these basic questions but it is the first time to use drupal and I think the Views Module is the most powerful Module but really I can not find simple tutorial to use views api, So I need your help strongly.
Thanks In advance
Comments
use arguments
Use arguments that are available with views module that will allow to pass user.uid as an argument ...
this means that I will append
this means that I will append user.uid like "//mysite/mylink?user.uid=2" or what???, I have already added user.uid as argument and I can test filtering
from the views page but I need real example to pass the arg through url
Sorry as I am java developer and I am new in both drupal and php :)