View criterion not selectable

Can I add to a View, a filter criterion that does not appear on the 'add filter criteria' list? If so, how?
I want to filter on a taxonomy term that appears in an added field on comments attached to my custom content type. Although standard fields in the comments are available in the 'add filter criteria' list, my custom field is not there. To control update permissions, I'd prefer not to move the field that contains the taxonomy vocabulary 'up' to the content type definition.

different template with variables in url

Hi,

is there a way to have a different template for a node when I append a variable in the url?

So e.g. that www.domain.com/node?test=1
has a different template than
www.domain.com/node

cheers,
Joerg

jQuery Tools Form Validation - what am I missing?

Hello.

I'm trying to get a form to use jQuery Tool's form validator: http://flowplayer.org/tools/validator/

I'm pretty sure I have everything set as it should be, but no effect seems to be taking place. I can click submit on the form without filling out any fields and it goes straight to the thank you page.

Here is my form HTML:

<form action="salesforce_url_here" method="POST" id="form_ID" novalidate>

The "novalidate" is the FF4 fix.

Here is the call to the tools js file in template.php:

      drupal_add_js('sites/all/themes/our_theme/js/jquery.tools-current.min.js',
        array('type' => 'inline', 'scope' => 'header', 'weight' => -50)
      );

I'm sure my weight is too high into the negative... just trying to make sure it loads before others, although it still didn't make it to the top...

Lastly, here is the call to the validator, also in template.php just a few lines down from the above:

      drupal_add_js(
        'jQuery(document).ready(function() {
            jQuery("#form_ID").validate();
        })'
      , 'inline'
      );

I may be going about this the wrong way...

It would be nice if this worked for D7: http://drupal.org/node/1114130 ... but not sure if that would solve the problem either. When I firebug the tools js file is in fact being loaded...

Absolute newbie needs some help with calendar please!

Hi there,

I am stuck. I have only recently started to use Drupal and my measly attempts at what could even be remotely called "programming" are several years (and two children) ago. So I honestly have no idea how to figure this out and need some very in depth guidance, please.

What I am trying to achieve is a calendar (in the mini calendar block on the front page, since it's the one everyone will see first) where dates when events take place are colour coded. It's for a preschool, so I wanted to make for example term start and finish/half term/holiday start etc to appear in one colour (or rather the background of the "day cell") and other dates (i.e. sports day) in a different colour. That's pretty much IT. (Since I haven't figured out how to make a "legend" visible, I was going to publish those dates with description, i.e." July 21st, Sports day", in the appropriate colour until I can tackle that problem as well).

Is there a way to set a field to use the Menu as its reference?

I want to add items to a massive section heirarchy but I dont want to add every item I have to our menu. The reason why is that I will look up what section an item belongs to and depending on that will show things like latest sports news, if its in the sports section or if its in the highschool football section.

I noticed custom fields wont allow you to do this out of the box though.

Granular permissions by moderation state

Is there any way to set permissions based on moderation state? I am trying to set up a workflow where users create content that is automatically set to draft status, where only that user can see the draft. Then the user changes the status to review, where editors can see it too, and publish it or set it back to draft, but no one can edit content while it's set to review state. I've been trying to do this with a number of different access control modules, and I can't find a way to set role permissions for "view content in moderationState" or "edit content in moderationState".

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x