In the Manage Display tab for a registration type, re-arranging the properties or changing properties to "hidden" has no affect on the output. Re-arranging fields, though, does affect the output. The latter suggests this is probably not user error (e.g. I'm probably not confused about the view mode and template).

CommentFileSizeAuthor
#7 registration-slots-2098625-7.patch466 bytesdsnopek

Comments

arnoldbird’s picture

The "spaces used" property seems to be more problematic than others. The positions of other properties can be changed, at least in some circumstances. However, setting "spaces used" to hidden, or changing its position, has no effect on its display. As a workaround, the property can be hidden in the template with...

hide($content['slots']);

jzornig’s picture

same problem here.

stijndmd’s picture

To me it doesn't even rearrange the fields...
I have my content type equipped with a "Registration link".

When the link is clicked, I cannot seem to alter anything. The changes I make under "Manage display" do nothing.
I have tried both the default and the Full Registration view modes.

I do not use views for this.

ladybug_3777’s picture

Issue summary: View changes

For anyone else that may be struggling with this I wanted to provide a little more detail.

To create your own custom themed version of the page that displays at registration/{registration_id} follow these steps:

Copy the entity template file from the entity module located in sites/all/modules/entity/theme/entity.tpl.php.
Place it in your custom theme's template folder and rename it to: registration--{your_registration_type_machine_name}.tpl.php

You can then customize it like you would other drupal template such as node.tpl.php. Be sure you clear your cache!

roball’s picture

Title: Display settings only affect fields, not properties » Display settings of "Spaces Used" has no effect in embedded Registration Form

I can confirm that regardless on which position you move the "Spaces Used" item in the Manage display tab of a registration type, "Slots Used" will always be shown at an uncontrollable position within the entity's embedded Registration Form, even if you change its Format from Visible to Hidden. So there is no proper way to hide "Slots Used" on the user's registration summary.

However, the workaround mentioned in #4 and #1 works to hide it. Thanks!

roball’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
dsnopek’s picture

Status: Active » Needs review
StatusFileSize
new466 bytes

The reason for this is that its calling it 'slots' in the $build array, but it's called 'spaces' when configuring it's visibility. If we change it to 'spaces' in the $build array, then it heeds the settings. Here's a patch!

cboyden’s picture

Status: Needs review » Reviewed & tested by the community

Nice simple fix, works as expected.

jami’s picture

Assigned: Unassigned » jami
jami’s picture

Looks great. Patch will be committed soon.

jami’s picture

Status: Reviewed & tested by the community » Fixed

  • jami committed d15fc08 on 7.x-1.x
    Issue #2098625 by dsnopek: Display settings of "Spaces Used" has no...
jami’s picture

Assigned: jami » Unassigned

  • jami committed d15fc08 on 7.x-2.x
    Issue #2098625 by dsnopek: Display settings of "Spaces Used" has no...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

sclsweb’s picture

I believe this issue is not fixed. Testing with Entity Registration 7.x-1.6, the "Spaces Used" field cannot be rearranged. It seems to appear as the second field in the form no matter how the other fields are rearranged around it.