Hi,
Great module, but I was wondering if there is a way I can remove certain fields. I would like to remove the URL fields. I do not want users entering where to get the items (my wishlists is for a game site where everyone will always be getting items from the same site). Anyways, I really hope this is possible because I'm not sure I can use it if I can't remove this. Hope you can help.
Thanks,
Collin
Comments
Comment #1
scott.mclewin commentedColin,
There are no configuration options to remove certain fields from the wishlist. I think it is a reasonable change to make and have queued it up as a feature request.
More than all of my Drupal development time has gone into other development and will for about another month while I get a Drupal based site out the door. This means you won't see this change before November.
If you are comfortable with PHP (or just willing to break things a little through tweaking) you can comment out the display of the URL fields and the collection of the URL fields in the module. To remove them you won't need killer PHP skill or massive coder prowess.
I'll start you off with an example of what to change in the data entry form.
Find these "two" lines of PHP code and comment them out. This will remove the URLs from your data entry form.
Search the module for "item_url1" and "item_url2" and remove display/validation code as appropriate. Leave the database queries alone (having them remain won't hurt and reduces what you carve out). The code for rendering a wishlist node is already written to not display empty url fields, and with the fields gone from the form they will be empty in the database.
I think that aside from the form, the only other place you will need to comment out code is in the logic to display the wishlist table. There are two spots to edit out a single line. One is in setting up the table headers. Search for the text 't("URLs")' and you will find the line to comment out. Second is the line that populates the data in the result table. Comment out
to remove the URL display from the table.
You should be good to go.
Comment #2
Anonymous (not verified) commentedThanks a LOT! I went in, made the changes, and it works perfectly.