Custom Template Search (List Page)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
FedeLopez
User
Posts: 107

Custom Template Search (List Page)

Post by FedeLopez »

Hi All...
I used
Custom Templates
List Page
CustomTemplateSearch by sort in better way the fields and modify Search panel in list page...
According to
It did work, but also added one empty row for each search field...

<div id="xsr_1" class="ew-row d-sm-flex d-none"> 
        <div id="xsc_field1" class="ew-cell form-group">
        <template id="tpsc_field1">
               label for="x_field1" class="ew-search-caption ew-label">field1</label>
        </template>
        <template id="tpz_field1">
            <span class="ew-search-operator">  
                contiene <input type="hidden" name="z_field1" id="z_field1" value="LIKE">
            </span>
        </template>
        <template id="tpx_field1">
             <span id="el_field1" class="ew-search-field">
                <input type="text" data-table="causas" data-field="x_field1" name="x_field1" id="x_field1" maxlength="255" placeholder="field1" value="" class="form-control" style="width: 500px;">
<div class="invalid-feedback"></div>
</span></template>
        <template id="tpv_field1">
        </template>
    </div>
    </div>

So my new search panel start N fileds space frome page headers... any way to avoid that?


mobhar
User
Posts: 11702

Post by mobhar »

You may change this part:
ew-row

to:
row

In addition, double check this part:
label for="x_field1" class="ew-search-caption ew-label">field1</label>

It seems you missed < character at the first of that row.


FedeLopez
User
Posts: 107

Post by FedeLopez »

I did remove de ew- in each row... but still the original place for each field is used by empty search fields...
So if I set 5 fields for extended search, when I use template still start 5 rows from header...
And each row saying
<div id="xsr_1">...</>
<div id="xsr_2">...</>


Post Reply