How do I do conditions in Views?
Specific: I'm playing with OG. I want Admin to see all groups in the list, including hidden, but users not to see hidden (as it is now).
I've looked at the OG view but cant see how to do it.
I was thinking of the lines of :
if ($users->uid==1){
//Then do what needs to be done to show all to admin
}
else{
//don't show hidden
}
This is part of my learning curve for Drupal, just a point in the right direction would be great.
Thanks
It's just a typical membership form with the usual required fields like name, surname, middle initial, address, email and so on. I created the content type 'Member Personal Data Sheet' for it.
However, I'm stumped by the "Title field label:" (required) which in this case is useless to me.
Apparently after I save the form and add the other fields (address, email etc.), there's still a field at the top that says 'Title', indicating the 'Title field label' needs to be filled up.
Hi guys,
I have made some custom changes(added few functions) in the node_images module. But I want to keep the changes separately, don't want to change the core node_images module. The code works if I keep the custom functions in the template.php file. But I don't know if this is the correct way. I think template.php file should only contain the theme functions. So is there a better way to implement this??
I have a custom block module and I want to add more variables to the template and use a custom template. I know how to use a custom template but then it makes me redo all of the block html when all I really want to accomplish is having more variables. Like the $block variable is missing when I use a custom template. Can anyone help me?
I am having a lot of trouble generating dorms dynamically using jquery.
The scenario looks like this:
I have a select list with mailing lists.
There is a onchange event in my .js file that catches the mailing list.
Based on the selected mailing list I send a $.get back to my module that gives me the member's list of that particular mailing list.
Past this step I am trying to generate a checkboxes list of members pertaining to some mailing list, with little success.
My module provides a block that gives a list of genres by location. So when a user is on the page for Langley, the block displays all the genres of musical performers in Langley. However, the client requires that path aliasing be used for the individual performer pages so that they have a path like www.blahblahblah.com/performer-name rather than www.blahblahblah.com/1/28/34 as location/genre/performer.