How to render text only data inserted from WYSIWYG editor? - laravel

I am using admin lte summer note. There is a image upload option as well. I have uploaded a image at the very beginning of the blog. But in landing page where i have to show blog (image, title, and little bit of description) in description part it renders image but i want to render text only.

My recommendation is to add new field to the blog database and name it prefix where you put small description about your blog, anyhow you can skip html tags by using this helper
{{ strip_tags($yourString) }}
but yet the prefix field method is better

Related

Orchard CMS - Blog Post Featured Image

I've read the various questions regarding this but couldn't not make any any progress. I'm new to Orchard so maybe I'm doing something incorrectly.
The goal is to show a "featured" image for each post in the Blog Home Page (Summary).
The first thing I did was to add a new content type for Image Gallery, following the directions at the link: http://docs.orchardproject.net/Documentation/Creating-an-image-gallery
Then I edited the Blog Post Content Definition, adding the new content type Media Library Picker Field that I created in step 1.
Now on each post there is the ability to Add a new Image.
Now I want that selected image to show up on the Blog Summary view & in the individual Blog Post view.
I followed the direction at the link below, by adding the new element - to the placement info file in my theme.
Image not appearing from a Content Part with a Media Picker Field
Still no luck...what I am missing here???
Thanks for the input
Just add a MediaLibraryPickerField directly to the BlogPost Content Type. That's it.
You don't need anything else (no "Image Gallery Content Type" - that would indeed be another Content Type).
The Display Name for the field can be "Featured Image".
The MediaLibraryPickerField can be configured to not allow multiple content items (allow only one).
placement.info will allow you to decide where you want the field to show, and you already know.
Shape Alternates will allow you to modify the "template", for both Summary and Detail views, if needed.

Auto add image to node listing from node body field | DRUPAL

Hi I have news content type, where are fields Title(textbox), Body(text with CKeditor) and Summary Image(multimedia asset). Is it possible to automatically add first image from Body to summary image field on form save?
Probably not or at least not so easy. You will need a custom parser here and a preproccess function.
Why not using an extra img field that will display only on the teaser display (I say Teaser instead of Summary since it is used more in Drupal like this) or just use the first image of the Summary Image (multimedia asset) field using image_delta_formatter module?

image display in drupal

i would like to create an image gallery on my homepage in drupal. Each image will have been uploaded by the user, and, as i understand it, will be saved in some image directory folder in drupal. My question concerns a recent tip i picked up in response to the general debate whether or not it is good to store images as blob in mysql. The tip was to store the filenames of the images in mysql so you can essentially still sort the files. I was wondering whether this would be possible even if the files url is in drupal so to speak. It should be possible shouldn't it? I new to programming you see and want to the images on my homepage to be periodically refreshed according to a define sorting function. I would greatly appreciate any response to this question. Cheers.
You can using content types and views module for create gallery in Drupal 7.
First create new content type with gallery name(admin/structure/types/add).
Then add a image field to gallery content type and save it.
If you want have thumbnail of image you should create a image style. for example create a image style with thumbnail_custom name and add suitable effect(admin/config/media/image-styles/add). You will use of this image style in views in the next step.
Then create a new view with gallery-view name. uncheck create a page, check create a block, enter block title and item per page you want(admin/structure/views/add).
In Filter criteria from block details add content type gallery.
In Fields add Content image that appears in node:gallery and select and select thumbnail_custom for image style option.
Save view.
This view block appears in Blocks section and you select region for it.
If you want this block appears only in the front page, in configuration of this block in the section pages of visibility settings check "Only the listed pages" option and then enter "<front>" phrase in textarea.

Have To Render Image Before Title Of Section,Category Article

How can I display a separate image before the title of each section, category and article (image be different)?
I.e. is there a way through admin plugin or some way so that I could render it easily?
I am using Joomla 1.5
Depends on the image. If you mean an icon or small image in front of the saction/category/title then you could do that with CSS and the page class suffix to determine which image displays on which page.
If you mean more like a header image, then you would probably need to do it in a module and assign the module to the page you want to place it in. You'd need a module per image doing it this way.
You could also add the image to the section or category description, then use a template override to place the image where you want it.
On one site we built we have a unique header image on every page. We did it with a module and K2. Again, it depends on what you are trying to do. You would need to give more details to get a specific answer.

Drupal 6: display image with View in blog posts listing page

I'm new at Drupal, love it so far :)
I added Photo and Logo File field to blog entry with CCK. I need to display these images at blog post listing page. So at View Module, I added fields as below;
At View:
Content: Logo URL to file
Content: Photo Path to file
and it displays only names of files, but I need to display image. how can I make it with View Module?
Blog Listing Page:
Logo:
http://blabla.com/drupal/sites/default/files/Logo_0.jpeg
Photo:
sites/default/files/photoname_0.jpeg
Appreciate helps!!!! Thanks a lot!
In views in adding field select field like: "Content: Image (field_image)", then in Format: Image, Image to linked node etc.
Recommend also install imagecache module for appropriate resizing image.

Resources