Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I want to load html content that is in the drupal database.
When I run the query, I get the data but it show to html code (<p>my content - <strong>test</strong></p>
) and not the content with layout (my content - test).
Do I need to set something else in the frx file?
Comment | File | Size | Author |
---|---|---|---|
#10 | Upcoming_STEOs.frx_.txt | 1.76 KB | stevo70 |
Comments
Comment #1
hgkris CreditAttribution: hgkris commentedComment #2
metzlerd CreditAttribution: metzlerd commentedSet the on any fields containing proper markup xhtml and it will not escape the tags.
Does that make sense?
Comment #3
hgkris CreditAttribution: hgkris commentedI don't understand.
I have this code in the frx file.
Where do I need to change something in order to view it correct?
Comment #4
metzlerd CreditAttribution: metzlerd commentedIn the headsection of the .frx file include:
This is basically like choosing a field formatter for the {text} field in the user interface, and choosing a format of xhtml. (similar to formatting dates and numbers with forena).
Comment #5
hgkris CreditAttribution: hgkris commentedGreat! I understand it now.
Thank you so much for all your help.
Comment #6
hgkris CreditAttribution: hgkris commentedComment #7
stevo70 CreditAttribution: stevo70 commentedI did this, and it still wont render the html as it is supposed to.
added the format="xhtml" for that specific field in the .frx file. Do I need to add anything to format-string?
Comment #8
Pierre.Vriens CreditAttribution: Pierre.Vriens commentedStephen, it might help if you can post a sample of your frx file (add a .txt extension or so to get it uploaded as attached file) ...
Also, seems like that
format="xhtml"
(as in #4) is NOT documented anywhere in the reporting documentation yet. I think it belongs (at least) in reports/help.reportingfrx#fields , but a CTRL-f in that page for 'xhtml' does not show any relevant hits. Hence the status change of this issue (+ component type update).Comment #9
metzlerd CreditAttribution: metzlerd commentedYep, you're correct Pierre, we should fix that. I'll check to see if that is in Drupal 6 version as well. It should be. It's been a while since I've been in D6.
Comment #10
stevo70 CreditAttribution: stevo70 commentedThe details field has the code that displays as is:
<p>Details</p> etc...
Comment #11
metzlerd CreditAttribution: metzlerd commentedHmm... I tested this in the 6.x-2.x dev branch and it worked for me using the syntax I suggested. Are you sure you are getting the right version of the report loading? Can you see the xhtml format when you specify the "fields" section of the wysiwyg editor?
Comment #12
metzlerd CreditAttribution: metzlerd commentedCan you verify which version of forena you are using after performing the above test?
Comment #13
stevo70 CreditAttribution: stevo70 commentedI was on 6.x-2.2. I installed the dev branch and it worked. I will definitely remember xhtml field as well.
Case Closed.
Thank you for the help!
Comment #14
metzlerd CreditAttribution: metzlerd commented