Home›Forums›Feature Requests›Volunteer Sign-Up Sheets – Feature Requests›Hide Item Details
- This topic has 6 replies, 2 voices, and was last updated 8 years, 4 months ago by scott stafstrom.
-
AuthorPosts
-
-
August 24, 2016 at 6:11 AM #11716scott stafstromParticipant
Is it possible to hide the item details on the frontend? I am using those fields for additional information that I need to collect depending upon the task but is not needed to show on the public side. For example the age or grade of a volunteer which I would only want to view as an admin. Thank you for your help.
-
August 24, 2016 at 9:53 AM #11718Stephen SherrardKeymaster
There is no built-in option to turn off the display of that column. You could always use some targeted CSS to change visibility to hidden or display to none for those cells. That’s about the only way you could do it right now, without writing a more complex function to tap into the filter hook that already exists for filtering the signups retrieved from the database for display (you would have to hook into that filter, loop through the signups and set the signup->item property to an empty string). Or, to completely hide the details column and all entries, you could tap into the filter hook that filters the retrieved tasks for the sheet & date, loop through the tasks, and set all the need_details properties to ‘no’, or anything but “YES”. If none of the tasks have need_details set to “YES”, then that column won’t even be displayed.
I’m getting ready to release an update to the main plugin, as well as the Groups extension, to allow a sheet to be assigned to more than one group, and to also allow the ability to restrict content to members of groups (either via BuddyPress or the WordPress Groups plugin), so I could probably throw in a filter hook on the output of those details, which could be used by other plugins (or a simple function in your theme’s functions.php file) to return a blank value (empty string) so it’s not displayed on the front end. Hoping to have those updates released within the next week or two.
-
August 24, 2016 at 10:13 AM #11720scott stafstromParticipant
Thank you for your response. I tried to work with the css, but I find the only display: none option is .pta-sus-em and that eliminates the available spots and the item details (they look like they are tied together) Thank you for your offer on future releases. Is there a way to hide that fourth column (using css) for now? Thank you again.
- This reply was modified 8 years, 4 months ago by scott stafstrom.
-
August 24, 2016 at 10:21 AM #11723Stephen SherrardKeymaster
I suck at CSS, but I believe you would have to use the nth-child type of selector to get just that particular columns (instead of all the columns). Count the # of td cells to get to the one you want, and specify that child of the tr.
Something like this answer (Google is your friend):
http://stackoverflow.com/questions/15448679/using-nth-child-in-tables-tr-td -
August 24, 2016 at 12:29 PM #11727scott stafstromParticipant
I tried a variety of nth-child and nth-of-type etc. css fixes, but they were not quite there and they were affecting other sign-up sheet tables. I was looking at your Sign-up Sheets Customizer. I have not bought it yet. When it says: Version 1.1 adds a “Disable Output” checkbox for each text string, which will return an empty string for that text on the public side. … will that accomplish what I am trying to do or will that just disable the header? Thank you.
-
August 24, 2016 at 12:41 PM #11729Stephen SherrardKeymaster
Since I’m working on an update anyway, I went ahead and added that as a new option. Not ready to release yet, as I may still need to do more updates to work with the updated Groups extension I’m working on.
Customizer won’t help you with what you need, it will allow you the change the header, but won’t remove it (only customizes the fixed text strings, can’t customize variable field values that the user has filled out on sign-up forms).
If you send me a private email through the contact form, I can send you the updated version of the main plugin, which has that option to do what you want. I’m just not ready to release it to the public yet, but it will work for what you need.
-
August 24, 2016 at 1:32 PM #11736scott stafstromParticipant
The update worked perfectly. Thank you again for your quick support and help.
-
-
AuthorPosts
- The topic ‘Hide Item Details’ is closed to new replies.