Welcome, Guest
Username: Password: Remember me
If you expect answers you should describe your problem and give as much information's as possible. (SQL-Structure, Template Code, Joomla Version ...) Please read this before posting: joodb.feenders.de/support.html
  • Page:
  • 1

TOPIC: HTML-Tags in field

HTML-Tags in field 8 months 3 weeks ago #4882

  • biugiu
  • biugiu's Avatar Topic Author
  • Offline
  • Posts: 2
  • Thank you received: 0
I have a db-entry with <br/> -tags. . The value in the db is correct with the <br/> -Tags but when i display the data with {joodb fieldname} the value is returned as string without the html tags. How can I get the value with the html tags?

Thanks for your help

Please Log in or Create an account to join the conversation.

HTML-Tags in field 8 months 3 weeks ago #4883

  • Dirk
  • Dirk's Avatar
  • Offline
  • Posts: 1025
  • Karma: 21
  • Thank you received: 184

biugiu wrote: I have a db-entry with <br/> -tags. . The value in the db is correct with the <br/> -Tags but when i display the data with {joodb fieldname} the value is returned as string without the html tags. How can I get the value with the html tags?


Joodb does not change the output of text or varchar fields. Only if they are urls or emails.
Can you tell us what kind data this field is? (VARCHAR,TEXT,BLOB)

Btw: use {joodb field|fieldname} ... {joodb fieldname} might be a function!

Please Log in or Create an account to join the conversation.

HTML-Tags in field 8 months 3 weeks ago #4884

  • rogercreagh
  • rogercreagh's Avatar
  • Offline
  • Posts: 6
  • Thank you received: 1
I have the same problem. Any field with html tags in it (for example a description field with formatting) initially displays the html correctly but if you edit the item you see the html tags in the field but when you save it they are stripped out.
In my case this is a VARCHAR(2000) field.

So how can we stop the joodb form save routine stripping out html tags when writing to the database?

Related to that is there a way to have a the edit form display a text area for a field rather than a simple text box. And better yet is there a way to have an rtf editor (eg tinymce, the system editor) for a field?

Please Log in or Create an account to join the conversation.

HTML-Tags in field 8 months 2 weeks ago #4893

  • jcollsabc
  • jcollsabc's Avatar
  • Offline
  • Posts: 33
  • Karma: 1
  • Thank you received: 3
I vaguely recall having a similar problem which I fixed by disabling the Text editor for this component. Try turning off your editor (set to none) and then see if the issue occurs. In my case JCEeditor was not playing nicely with JooDB and so I used the JCE settings to disable its use for JooDB.

Hope this helps.
The following user(s) said Thank You: Dirk

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Moderators: Dirkjoest