Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Custom reward to special clups


Recommended Posts

thanks to reply

myself write a code for that:

{{if $record->customFieldDisplayByKey('custom_field_key')}}
{$record->customFieldDisplayByKey('custom_field_key', 'listing')|raw}
{{if $item::$IPSclubId == club_ID params="$item"}}
   <div class="club-badge"><i class="fa fa-star"></i></div>
   <div class="club-badge" style="display:none;"></div>

<!---------- CSS ----------->

.club-badge {
    position: absolute;
    background: black;
    left: 0;
    border-radius: 50%;
    vertical-align: middle;
    display: flex;
    align-items: center;
    width: 30px;
    height: 30px;

but I don't know how to find custom_field_key and club_Key

also I don't know where to put that

Link to comment
Share on other sites

  • Owner

The custom field key is what you define when you create a new custom field. It is on the second tab called display options.

Club_ID you can find when you go to clubs and hover over the edit button. The ID is shown in the url at the bottom of the page.

Based on this code it looks like you are adding an extra field in Clubs and then you add this to the theme templates somewhere (depends on where it should show up).

It is a separate function than the achievements however 🙂


Link to comment
Share on other sites

  • Jimi Wikman changed the title to Custom reward to special clups

Please sign in to comment

You will be able to leave a comment after signing in

Sign In Now
  • Create New...