CMS MADE SIMPLE FORGE

Products

 

[#12388] Reorder by custom text field in summary list cause some extra fields not to show

avatar
Created By: Mich-adg (Mich)
Date Submitted: Fri Nov 20 06:04:07 -0500 2020

Assigned To: Robert Campbell (calguy1000)
Version: 2.28.7
CMSMS Version: 2.2.15
Severity: Major
Resolution: Fixed
State: Open
Summary:
Reorder by custom text field in summary list cause some extra fields not to show
Detailed Description:
Hi,
if i try {Products sortby='f:position' sortorder='ASC' category="mycategory"},
some extra fields are not showed.
For example, in the summary template, i call one image custom field like this.
If i set sortby='f:position' this code diseappear!

     {if $entry->fields.Image->value}

         <div class="hovereffect">
<a href="{$entry->detail_url}">{CGSmartImage src="$chemin/$limage"
filter_croptofit="600,600" quality="80" noembed="1" noauto="1"}</a>
            <div class="overlay">
<a class="info" href="{$entry->detail_url}"><span><p><i class="fa
fa-plus"></i></p></span></a>
            </div>
         </div>
     {/if}
Thx.


History

Comments
avatar
Date: 2020-11-20 07:48
Posted By: Mich-adg (Mich)

Found the problems:
1st problem = the name (not the label) of the custom text field was "Position",
it must be in lower case "position"...
2nd problem = the custom field "image" was not checked "public"! (the weird
thing is that i see them if i don't sortby !)
      
Updates

Updated: 2020-11-20 07:49
resolution_id: 5 => 7

Updated: 2020-11-20 07:48
resolution_id: => 5