When creating an audio node, everything works great. But I want to know how i can remove the "Token List" menu dropdown. I dont mind me seeing it but i dont want the extras for new users. Im setting this as a support request because ultimately i'd like to see if it possible to add a permission for it or have a setting in the node type or in the audio settings page to have it removed (im voting for the permissions route). Something like "Access Token List". For those who are not sure what im referring to i attached an image below.
* even if this cant be added into the module (i dont expect the code to be done quickly), I want to know if there is a way I can override it until then. I havent done much theming yet.
![]()
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | audioform.zip | 1019 bytes | Flying Drupalist |
| audio-token.png | 47.67 KB | luckysmack |
Comments
Comment #1
Flying Drupalist commentedYes please, in fact can we hide the title field too? If these settings are already predetermined by the admin there is no need for end users to see all this mess. I get 20 questions a day about what tokens are, or people trying to fill in the title field and making a mess of it.
Comment #2
luckysmack commentedMiraploy
Automatic nodetitles will solve that problem
http://drupal.org/project/auto_nodetitle
Comment #3
drewish commentedlonger term using the auto_nodetitle module probably makes the most sense. for the short term you should be able to form_alter the token settings out of form.
Comment #4
Flying Drupalist commentedThanks for the suggestion bigmack, the module also hides the token selection, so it sounds like a good combination.
Sadly I'm not actually able to get this to work.
It says Title field is required.
even though I've set the title field to be hidden. This isn't a problem with any other content type. :(
Comment #5
hugafish commentedYes this is not working for me either? I am on Drupal 6.10 using Audio Module 6.x-1.0-unstable3, Automatic Nodetitles 6.x-1.1, Formfilter 6.x-1.x-dev, and Token 6.x-1.x-dev. I see the hide Token list check box but when I check it and save this, it still allows a regular user to see the list. Also the title still shows up in the create audio content area? These modules seem to not be working. Is there some other module I need or a certain feature turned on or off? I do notice though that when I go into Content Types as an administrator I see the Automatic Title generation drop down link. Once inside I have chosen the "Automatically generate the title if the title field is left empty" selection which does seem to hold after saving this option. However the title field still shows up with tags in it as well as the token list once I try to create audio content. I have also chose to form filter hide the replacement patterns part of the form but it still shows up too. Any help is appreciated on this. Thanks
Eric
Comment #6
Flying Drupalist commentedI created a module to just remove the token.
Comment #7
hugafish commentedGreat, does this remove the token all together? because I will need token module for other modules on my site, or does this module of yours just remove it from the audio upload section which is what I need. Hiding it is perfect really. Where do I get this module what is it called?
Eric
Comment #8
Flying Drupalist commentedMy module is attached, I just used form alter to remove the token. There's some hard coded defaults for the title and description...
Beware I'm a total noob and this is the first and only module I ever made.
Comment #9
hugafish commentedThanks I may give it a try because it could be some time before I get any response out of the actual token/form filter developers. The way this is set up now appears to be a bug to me. I like the way that friendlist has a submodule for node access in order to allow friendlist to appear in the nodes or not to appear. It was just a matter of not selecting that sub module and I was good to go. My site is going live within the next week or so as a beta WIP type of site, however I can't afford to have the site down for much time if the modules fail, with that said though a module that does not work correctly or offers features I do not want my users to have isn't really working for me either, so I should give it a try. First I am going to update all of my token and views modules to the latest to see if they work correctly, if not I will give your module a test and report back to you if it works. Thanks
Eric
Comment #10
missym commentedGood job - thanks. Helped me out, saved me some time :)
Comment #11
hugafish commentedBeen using it for awhile now with no problems, none I am aware of yet anyhow ha ha.
Eric
Comment #12
HorsePunchKid commented