PDA

View Full Version : Listing Fields do not show



Petrache Nicolae
October 25, 2013, 08:58 AM
hello. replicate this

he have listing fields http://realty.demoflynax.com/admin/index.php?controller=listing_fields
go to build your submit form http://realty.demoflynax.com/admin/index.php?controller=categories&action=build&form=submit_form&key=alabama like this

we have
1.form
2.groups list
3.fields list

if we do not want to use group list, and so move the fields from Fields list into the Form, we can list just fine an add, but than, in listing details page, all the fields are gone. at best case is just 1 showing.

a fix for this please so we can see them properly. thanks

Athanasios Christou
October 25, 2013, 09:20 PM
Hi,

apparently the bug exists in version 4.1.0.

I have also found this the days, but I had no time to write.


@ Petrache Nicolae you were faster than me. :)


The fields outside the groups are not displayed in admin area details page.
In the frontend user interface, the fields are displayed.

Please help us with a fix.

Thank you and wish you all a nice weekend.

John
October 26, 2013, 09:39 AM
Hello Guys,
I have checked this issue in 4.2 version which we are working on and I was unable to reproduce it.
Looks like the bug you reported is fixed in new version.

John

Athanasios Christou
October 26, 2013, 02:11 PM
Hi John,

and how can we Fixed it in the V4.1?

In your online Demo V4.1.0 this bug is available.

Please, please give us the fix for V4.1.0.

Thanks in advance.

Sakis

Alex
October 28, 2013, 03:28 AM
Hi Petrache and Sakis,

Open the file /your_admin_folder/tpl/controllers/listings.tpl
Search the part of code: [line: ~1105]


{assign value=$group.Fields.0 var='item'}
{if !empty($item.value) && $item.Details_page}
{include file='blocks'|cat:$smarty.const.RL_DS|cat:'field_o ut.tpl'}
{/if}


And replace to the code below:



{foreach from=$group.Fields item='item' }
{if !empty($item.value) && $item.Details_page}
{include file='blocks'|cat:$smarty.const.RL_DS|cat:'field_o ut.tpl'}
{/if}
{/foreach}

Petrache Nicolae
October 28, 2013, 06:17 AM
Hi Petrache and Sakis,

Open the file /your_admin_folder/tpl/controllers/listings.tpl
Search the part of code: [line: ~1105]


{assign value=$group.Fields.0 var='item'}
{if !empty($item.value) && $item.Details_page}
{include file='blocks'|cat:$smarty.const.RL_DS|cat:'field_o ut.tpl'}
{/if}


And replace to the code below:



{foreach from=$group.Fields item='item' }
{if !empty($item.value) && $item.Details_page}
{include file='blocks'|cat:$smarty.const.RL_DS|cat:'field_o ut.tpl'}
{/if}
{/foreach}



hello Alex. doesn't seem to work. i have replaced the code and when i checked my listings, the fields do not show

Alex
October 28, 2013, 08:05 AM
Petrache,

To clarify the situation; in the admin panel right?

Petrache Nicolae
October 28, 2013, 08:25 AM
Petrache,

To clarify the situation; in the admin panel right?


yes. i found the fields where you said.

Alex
October 28, 2013, 08:35 AM
yes. i found the fields where you said.

And it's still not working on your side?

Petrache Nicolae
October 28, 2013, 08:47 AM
And it's still not working on your side?

another try

i changed


{if $group.Fields}
<table class="list">
{assign value=$group.Fields.0 var='item'}
{if !empty($item.value) && $item.Details_page}
{include file='blocks'|cat:$smarty.const.RL_DS|cat:'field_o ut.tpl'}
{/if}
</table>
{/if}

into



{if $group.Fields}
<table class="list">
{foreach from=$group.Fields item='item' }
{if !empty($item.value) && $item.Details_page}
{include file='blocks'|cat:$smarty.const.RL_DS|cat:'field_o ut.tpl'}
{/if}
{/foreach}
</table>
{/if}

and again, when i look in any listing, i have no fields

Athanasios Christou
October 28, 2013, 10:25 AM
Hi @all

@Alex it works perfectly, thank you.

Petrache Nicolae
October 28, 2013, 01:14 PM
Hi @all

@Alex it works perfectly, thank you.

wich template do you use?
i am using realty signs and with this one is not workig. do not understand why since all templates are based on same script

Athanasios Christou
October 29, 2013, 08:39 PM
Hi @all,

@Petrache Noclae i use auto_modern (customized to my needs).
But it is still to the admin tpl that are all the same or not?

best regards
Sakis

Petrache Nicolae
October 29, 2013, 08:51 PM
Hi @all,

@Petrache Noclae i use auto_modern (customized to my needs).
But it is still to the admin tpl that are all the same or not?

best regards
Sakis

thanks for the info. last night, Alex fixed the issue in my website. SO, THANKS.