Hide thumbnail profiles from widget designers

For each image in a library, you can generate thumbnails with different sizes and then choose which size to display on the website. You categorize thumbnail types via thumbnail profiles. You can choose to hide some profiles for specific widgets. For example, you may choose to use only big thumbnails for the Image gallery widget, whereas decide you only need medium thumbnails for the Image widget. Thus, when configuring the Image widget, you have different choices of thumbnail sizes from the choices you have when you configure the Image gallery widgets.

Generally, any thumbnail profile is visible in all the widget designers. To hide a thumbnail profile, you use tags for both the profile and for the specific widget. Say you have a thumbnail profile with a “tag2” tag. To hide the profile from the Image widget designer, you need to make sure the widget tags do not have “tag2” tag listed.

NOTE: To hide a thumbnail profile, both the profile and the widget need to have one or more tags defined.

The following table summarizes the tagging scenarios for thumbnail profiles.

Widget tag(s) Profile tag(s) Profile is visible
tag1 tag1 check-icon
No tag tag1 check-icon
tag1, tag3 tag2 x-icon
tag1, tag2, tag3 tag1, tag2 check-icon
tag1 No tag check-icon

To hide a thumbnail profile for a specific widget, you first set the tag(s) of the thumbnail profile and then make sure this tag is not in the widget tag list. You do this in the Advanced settings section of the Sitefinity CMS backend.

Set tags for thumbnail profiles

  1. Click Administration » Settings » Advanced.
  2. In the tree on the left, click Libraries » Images » Thumbnails » Profiles.
  3. Select the thumbnail profile that you want to hide.
  4. In Tags field, enter the tags, separated by commas.
    You can choose any name for a tag. They are not predefined.
    For example, you can enter image. Then you can tag the Image widget with the image tag and the Image gallery widget with a gallery tag. Thus, the profile is hidden just for the Image widget.

    NOTE: If you do not tag a profile, it is visible for all widgets.

  5. Save your changes.

Set tags for widgets

  1. Click Administration » Settings » Advanced.
  2. In the tree on the left, click Toolboxes » Toolboxes » PageControls » Sections.
    Select the toolbox section in which the widget you want to tag is located.
  3. Expand Tools and click the widget whose list of thumbnails profiles you want to hide.
    For example, click ImageControl, which is the Image widget.
  4. In Tags input field, enter any tag. To hide a profile from the widget designer, simply make sure the profile tag(s) is not in the list.

    NOTE: If you do not tag a widget, all profiles are visible in the widget designer.

  5. Save your changes.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?