problem with a list giving me this {option_name} instead of the list.
Posted: 03 February 2011 07:31 PM   [ Ignore ]
Wallflower
Rank
Total Posts:  15
Joined  2011-01-16

Hi I want to use a list with safecracker I have created the html_styles custom field and I am using it the same way I used in other pages but instead of getting the options I have added I get this {option_name}
the strange think is that I have other lists in other pages working fine with the same code.

{exp:safecracker channel="users" return="epiplo_main/update_site/ENTRY_ID" entry_id="{segment_3}"}
            
<link href="{path=css/_ee_saef_css}" type="text/css" rel="stylesheet" media="screen" />
            
{exp:jquery:script_tag}
            
            
            
            
                
<p>
                <
label class="span-1 first" for="title">Î?νομα ÏÏ?θμίÏ?εÏ?ν</label>
                <
input type="text" name="title" id="title" value="{title}" size="50" maxlength="100">
                </
p>
                <
p>
                <
label class="span-1 first" for="url_title">URL Title</label>
                <
input type="text" name="url_title" id="url_title" value="{url_title}" maxlength="75" size="50" /></br>
                </
p>

                <
hr/ class="clear">
                
                                <
class="span-2 first">
                
                                        <
label class="span-1 first" for="html_styles">Î?Ï?ιλογέÏÎ?μÏ?άνιÏ?ηÏ?:</label>
                                            
                                            <
select name="html_styles" id="html_styles">
                                                
{options:html_styles}
                                                    
<option value="{option_value}"{selected}>{option_name}</option>
                                                
{/options:html_styles}
                                            
</select>    
                                </
p>
                                    
                <
hr/ class="clear">

                
                <
input type="submit" name="submit" value="Î?αÏ?αÏ?Ï?ρηÏ?η" class="button"/>
            
{/exp:safecracker} 
Profile
 
 
Posted: 12 February 2011 10:40 PM   [ Ignore ]   [ # 1 ]
Absolute Heartthrob!
Avatar
RankRankRankRankRank
Total Posts:  10369
Joined  2008-09-29

Is html_styles a select box in your weblog?

(apologies for the slow reply. Missed this one)

 Signature 
Profile