I'm trying to write a module for Drupal 7 and I need to convert the following query for Drupal 7:
SELECT DISTINCT(u.uid), u.name FROM {users} u INNER JOIN {node} n ON n.uid = u.uid AND n.type = '%s' WHERE u.status <> 0 AND u.access <> 0 ORDER BY u.name ASC
and I have 2 problems:
1. how to write DISTINCT() in Drupal7
2. I used function innerJoin for INNER JOIN but it doesn't work.
I would like to have an 'Edit Page' shortcut on the shortcuts menu, rather than have View and Edit tabs (which my theme shows below the page title). It would greatly enhance the usability for my editors since the page layout wouldn't change when they're logged. The current 'Add shortcut' form only allows me to enter a simple URL, so there's no way to substitute a nodeid in the link. I guess what I *really* want is the option to have local tasks show up on the shortcut menu. Have I missed some way of doing this, a module or configuration setting, perhaps?
In D6 I'm used to use the Secondary Menu for: Contact Us | Directions etc... and I placed it right in the header.
In D7 under theme settings I see a check box for secondary menu and I believe Bartik might have one by default and it just has to be set but I just don't know where to find it.
I already tried adding a menu called Secondary Menu and placing it in the header region and it caused so many problems. It kept reverting menu links back to the main menu randomly.
Wondering if anyone has had success importing course catalogs from Datatel to drupal. There is a group on drupal groups with some info on drupal/datatel integration, but the only suggestions I can find involve uniObjects PHP programming or datatel >> mssql >> mysql dumps --which seems tedious and probably not entirely functional. Has anyone managed -- without uniObjects PHP programming, to successfully link up a Drupal 7 installation with a Datatel DB -- a uniData DB --
Just wondering b/c I love drupal -- but Datatel is crafted not to play nice with web tech.
Hi,
I've created a taxonomy vocabularie and a illustration field for this vocabularie.
I've upload a illustration for each term.
now, in my node, i'd like to show the illustration of the term associated. Is it possible ?
Thanx in advance,
I was curious to see if anyone could help direct me in the right direction as to which modules would be needed in order to create the website idea i'm trying to accomplish. I wont get into too many details, but i'll share the main concept as to what i'm trying to achieve. I have a slight idea as to some of the modules i'd need, but i have a feeling that there would be an easier way or other modules that i'm missing.
Basically, I'm trying to have my site have the ability to have its user able to create an "event" that they can invite other members to attend. Much like facebook. This event that is created would allow the users who are attending the ability to create content within this created "event", but only for the time it was allowed for. In other words, if the event was a 3 day seminar. Those who were attending could add either text content, picture content, audio content, or video content. BUT only for that allowed time frame. Which then this "event" would become archived and only comments to the content would be allowed there after. So, to sum it up, I need it to allow users to create a single post as an "event" that multiple users can add content to continually for an allowed time and then close after that time is up. Does this make sense? I can clarify anything if someone is willing to point me in the right direction with this.