-
AuthorPosts
-
alpa JA JobBoard
alpa
- Join date:
- February 2008
- Posts:
- 33
- Downloads:
- 20
- Uploads:
- 3
- Thanks:
- 2
- Thanked:
- 7 times in 1 posts
May 26, 2010 at 11:43 am #151333Dear support
I have some html in the Miscellaneous Information field in one contact item whic was displayed fine before using ja_kyanite_II.
What breaks the code and raw html is displayed in this template?
Thank you
alpa
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 27, 2010 at 10:08 am #344911Dear alpa! did you use the custom module to create fields of form, how?. i ‘m guessing that if you used this, may be the editor strip html tags, so that you try to disable the editor while editing. good luck
alpa JA JobBoardalpa
- Join date:
- February 2008
- Posts:
- 33
- Downloads:
- 20
- Uploads:
- 3
- Thanks:
- 2
- Thanked:
- 7 times in 1 posts
May 31, 2010 at 7:22 am #345335Dear tienhc
Thank you for you reply. I am creating a contact from the Administrators Components–>Contacts–> Contact
And I am adding html tags inside the Miscellaneous Information field.
I checked mysql database and the html tags are stored properly.
Try it yourself adding for example an <h3>Hello </h3> within the Miscellaneous Information and you will see what I mean.
thanx
alpa JA JobBoardalpa
- Join date:
- February 2008
- Posts:
- 33
- Downloads:
- 20
- Uploads:
- 3
- Thanks:
- 2
- Thanked:
- 7 times in 1 posts
May 31, 2010 at 7:56 am #345336Did some more investigation. If I select joomla’s default template ja_purity template the html in Miscellaneous Information field is not escaped.
I f I revert back to ja_kyanite_II my html code is displayed.
I believe it has to do with right and left arrows that are used for the html tags. because in page source I get
<h4>EDUCATION</h4>
when I should see <h4>EDUCATION</h4>
thanx
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 2, 2010 at 9:08 am #345647Dear alpa!
pls open the file: /templates/ja_kyanite_ii/html/com_contact/contact/default_address.php and find the following:
[PHP]<?php echo $this->escape($this->contact->misc); ?>[/PHP]
and replace:[PHP]<?php echo ($this->contact->misc); ?>[/PHP]
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by alpa 14 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum