I'm having trouble displaying the body text when creating a Basic Page. I've somehow deleted the body field at some point and then tried to add existing field again.
Now that I've added Body field again and typing in some text in the body for a Basic Page, it won't appear on my page. I can see my text in body_value in myphpadmin in field_data_body and my page is only displaying the title.
I've tried several things. Cleared cache, reapplied all template files (page.tlp.php etc.)
Im using Drupal 7.
Any help appreciated
Related
On my content type form I am trying to change the placeholder text from "Title" to "Subject". My field setting is as below:
This change gets updated correctly but the form title still shows as "Title" :
Unsure why it's not reflecting. Cleared cache and tried on incognito windows. no luck. Any help on how this can be fixed pls?
Make sure you are setting on the correct content type and don't forget to hit Save button at the bottom of the Manage form display page.
If you have done all the above and still not solved the problem then somewhere in your code has overwritten the placeholder configuration of that field. In that case you need to find and remove it.
I recently started using Drupal 8. I am able to add a basic page, but whenever I try to view it, the body text pertaining to the page does not display, only the page title is visible. Does anybody have any ideas as to why I am experiencing this problem. Thanks in advance.
Attached is a screenshot of where I am expecting to see the body text for the page. The title of the post is visible, but not the body
May be you have disabled the body field display from content type settings. Go to the page 'your site address/admin/structure/types/manage/page/display' and check the body field is disabled or not. If disabled please enable it for showing the content on front end.
My requirement is very simple.
I want to add some html in a static page body.
I created a content type called Page.
I am adding HTML text into the body.
HTML is saved in database correctly.
But when I saw the same in front end it is showing HTML.
I am new to Drupal, But have 6 years of experience in php.
Please give me a solution.
It is problem with your text format settings. You can select different text format every time you make content and you can set up default one for every content type. Make sure you using text format which you set up for proper content display:
Assuming you are using "Full HTML" text format go on:
admin/config/content/formats
Click configure and make sure you turn off option display HTML as plain text:
Hope this helps.
I think you need to specify text format type.
Could you find text format area in content edit page?
If you want to display as html page, you need to specify "Full HTML" in text format area.
I'm using USP-Pro to let users post to a Wordpress blog. I have a textarea input in which they should put the main post content - the one that appears in the Wordpress admin editor. I'd like to keep the text formatting once they submit the form so I'm using CKEditor for that textarea.
CKEDITOR.replace('usp-content');
Checking the textarea with Firebug while I input the text shows that there actually is some HTML code inside, but when the form is submitted, in the editor I just see the raw text, without any formatting, which is pretty annoying because I lose all the spaces, the new lines and so on.
EDIT:
After various attempts I discovered that the problem is in the Wordpress function wp_strip_all_tags, inside the file wp-includes/formatting.php. I tried to comment it and it actually posted the content correctly with all the html in place.
Of course I can't just comment the whole function. How can I tell Wordpress to not use it when submitting such posts?
My issue is I have a drupal site and I am trying to create a Make Payment page. I was able to create the page but the issue I ran into is when I got the code for the button from PayPal and inserted it into the CKEditor. The CKEditor works when I put it in there but it wont publish.
Any tips would be helpful.
You probably have to set the Input Format for that text box to "Full HTML". Otherwise a lot of the HTML tags will be stripped out when it is displayed.