Hide "View Details" from portal forms

Nagashree5
Tera Contributor

Hi All,

 

Requirement: View details should be hidden from the portal.

Nagashree5_0-1678277646258.png

Can anyone please guide me on this.

 

Thanks in Advance

1 ACCEPTED SOLUTION

SatyakiBose
Mega Sage

Hello @Nagashree5 

Here is how you can remove the View Details text on the portal page.

  1. Navigate to widget - SC Category Page
  2. Create a clone of the widget as this is an OOB widget.
  3. Search for the <div class="panel-footer b"> element from the HTML content.
  4. Remove ${View Details}
    SatyakiBose_0-1678287593619.png
  5. Now your catalog items will not have the View Details section.
  6. Here is a screenshot on how it looks. The circled section is OOB widget, and below is the custom widget.
    SatyakiBose_1-1678287681098.png

     

    The custom widget is attached for your reference.

View solution in original post

7 REPLIES 7

Hi @Nagashree5 

In the HTML you would find this line:

 <div class="panel-footer b">
              <a aria-label="${View Details} {{::item.name}}" ng-if="item.sys_class_name != 'sc_cat_item_content' || item.content_type == 'kb' || item.content_type == 'literal'" ng-click="onClick($event, item)" ng-href="{{getItemHREF(item)}}" class="pull-left text-muted"></a>
              <a aria-label="${View Details} {{::item.name}}" ng-if="item.sys_class_name == 'sc_cat_item_content' && item.content_type == 'external'" ng-click="onClick($event, item)" ng-href="{{getItemHREF(item)}}" target="_blank" class="pull-left text-muted"></a>
            </div>

 Delete this line.

@Nagashree5 

If my response has helped you fix the issue, please mark it as solution.

Twinkle S
Mega Sage
Mega Sage

Hi @Nagashree5 ,

 

If it is so needed you need to clone the widget SC category page and then put it replace with the OOB widget and then comment out the line number 95 and 96. 

twinkle4_0-1678288130876.png

 

Mark this answer helpful and correct if it solves your query.

Regards

Twinkle