Add fields to menu links

I would like to add some additional fields (textfield, textarea) to a menu link (e.g. field for add tag per menu link). I now how to do this with a custom module but I'm looking for an existing contrib module.

Does anyone know a module for that?

Using Drupal 7 as OAuth provider and client

I am running Drupal 7.x and the following modules are installed:
- Chaos tools
- OAuth
- Services
- Connector
- Http Client
- OAuth Connector
- OAuth Login Provider

However I am unable to get my Drupal to act as an OAuth provider, mainly due to the non-existing documentation about the OAuth modules. I have read all the user-content regarding this, but haven't found anything that would work in my case.

Here is just about what I did (hopefully it will also help others):

1. Went to the admin user and created a new consumer. Set the callback URL to http://localhost/drupal/oauth/request_token
2. Went to the OAuth Connector (under Structure) and added a new custom provider with the key / secret from 1.
3. Then under my account, there was a button that said "Add XXX account", a message appeared and asked if I wanted to authorize the application, clicked yes, and it took me to the callback URL from 1 with an ?oauth_token=HzZzGoMYhyqmVPAhLjJodiRopaZwEvZf on GET. There was no output. When I checked with firebug, the request gave a 401 not authorized error ("no oauth consumer key"). So then I added the consumer key, timestamp, nonce, signature method and... couldn't encode the signature (as far as I can tell it's base64(hmac_sha1(secret))), so I got stuck there.

My question I guess, is... is the flow that I'm following correct? What am I doing wrong?

Probably a n00b question (inserting HTML for Google Analytics tracking)

I've got a pretty big drupal 7 site going, here (well over 500 pages), and I want to do some tracking with Google Analytics.

I've signed up for and installed Google Analytics on other sites I have (which are not done with drupal 7), so I know how Google Analytics works, and I'm at the stage of getting Google Analytics where you log-in to your dashboard for the site you've submitted, and it says,

"Tracking Status Tracking Not InstalledLast checked: Jan 31, 2012 11:06:13 AM PST
The Google Analytics tracking code has not been detected on your website's home page. For Analytics to function, you or your web administrator must add the code to each page of your website."

"Copy the following code, then paste it onto every page you want to track immediately before the closing tag."

And then you scroll down a little and you get your code:

<script type="text/javascript">

 ...<all code here>...

</script>

From there, you're supposed to install it on every page of your site that you want to track.

My drupal 7 site is like 98% "Pages", 1% "Articles", and 1% "Webform".

WYSIWYG Image Upload in Basic Page (CKEditor and CKFinder)

Hello,

I was able to use CKEditor and CKFinder to add in-body image upload capability for article nodes.
However, the functionality was not transferred to basic page nodes.
What do I miss? Thanks!

Help with structuring / generating a page with lots of static content?

Hi there!

I'm trying to realize a project with lots of static content, which - apart from a Forum and Shop - consists of 150 books of 200-300 page each, which should be shown as images through using a specific container. The only text-parts aviable are the tables of content, which are transformed into a html tables of content, through which the chapters could be be called via ajax.

Revision and authoring infomation elements getting rendered with incorrect name attributes in custom module form

I've been working on developing a module to create a custom content type for handling treasure hunts with variable numbers of clues. The base module is working great, and now I'm trying to get revisioning and authoring information changes working correctly.

As it turns out, the name attributes on the input tags for the revision fields and the authoring information fields are being set incorrectly when the form is being rendered.

On a standard page/story node, the names are revision and log, and name and date for the respective pieces of information. On my edit page, they're coming across as revision_information[revision] and revision_information[log] for the revision fields and author[name] and author[date] for the authoring fields. Naturally, the Javascript isn't working on these field names to update the displayed information in the vertical tab list, and they aren't being processed correctly on return to Drupal.

I've used the recipe module as a basic template to build my code, and my hook_form follows largely its example (the code is at the bottom of this post). Is this something anyone else has seen, or is there something obvious I'm missing with this that's causing the form to not render these sections the way they're rendered elsewhere?


/**
* Implements hook_form().
*
*/

function treasure_hunt_form($node, &$form_state) {

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x