- Posts: 28
COMMUNITY FORUM
Default values in extra fields if using editor?
- Coptechs
- Topic Author
- Offline
- Junior Member
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
- Posts: 8743
$values = JRequest::getVar('option_value');
to:
$values = JRequest::getVar('option_value', '', 'default', 'none', 4);
Note that the editor will still no render in the extra field edit page and you will have to add the code by yourself. Also note that only basic HTML is allowed there.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Coptechs
- Topic Author
- Offline
- Junior Member
- Posts: 28
I got it partially working after the modification you suggested. I enter the following html code as a default value for an extra field:
<p>Call 845-507-0046 <a href="mailto:[email protected]"> email [email protected]</a> or <a href="contact-us">click here to use our online inquiry form.</a>
</p>
It displays properly in back end when creating an article. However, when I view the article in front end, it looks like this:
Call 845-507-0046 '; document.write(''); document.write(addy_text83682); document.write('<\/a>'); //-->\n or click here to use our online inquiry form.
Any other thoughts?
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Coptechs
- Topic Author
- Offline
- Junior Member
- Posts: 28
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Coptechs
- Topic Author
- Offline
- Junior Member
- Posts: 28
I can't find any settings that could be affecting it in JCE and everything is up to date. I just launched the site a few weeks ago as a Joomla 2.5 site.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Coptechs
- Topic Author
- Offline
- Junior Member
- Posts: 28
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
- Posts: 8743
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.