Jump to content
Sign in to follow this  
Guest IFL

energy class: problems to set on front-end

Recommended Posts

Guest IFL

hi,I also need to show on the frontend of the energy class.I copied the files edit_form.tpl.php this string:

{assign var="energy_class_enable" value="{$params->get(energy_class_enable)}"}			{*ENERGY CLASS*}			{if $energy_class_enable eq "1"}				{JText text='ADM_ENERGY_CLASS_TITLE'}:					{html_options name=ad_energy_class options=$energy_class selected=$data->ad_energy_class}						    {/if}

adapting it to the file in this way add.tpl.php

{assign var="energy_class_enable" value="{$params->get(energy_class_enable)}"}			{*ENERGY CLASS*}			{if $energy_class_enable eq "1"}			
			{JText text='ADM_ENERGY_CLASS_TITLE'}:
			 {html_options name=ad_energy_class options=$energy_class selected=$data->ad_energy_class}
			{/if}

Unfortunately does not open dropdownlist with the options of energy classes to choose from.What's wrong? how can I fix this?excuse my English, but google is translating for me :oops:

Share this post


Link to post
Share on other sites

Hello,

 

This is correct code:

 

		{assign var="energy_class_enable" value="{$params->get(energy_class_enable)}"}
		{*ENERGY CLASS*}
		{if $energy_class_enable eq "1"}

{JText text='ADM_ENERGY_CLASS_TITLE'}:
{html_options name=ad_energy_class options=$energy_class selected=$data->ad_energy_class}

	    {/if}

 

Please make sure it is set to yes in Configuration.

Share this post


Link to post
Share on other sites
Guest IFL

does not work.

is what I experienced at the beginning, before the amendments.

does not show options :unsure:

Share this post


Link to post
Share on other sites
Guest Lucie  Deroux

Hi

Have you solved the problem ?

I have the same king of trouble because I only have "no data" in back-office when adding or editing annoucement.

Thanks

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...