tushargugnani / 5balloons.info

5 stars 1 forks source link

Get Tags and Excerpt via Corcel API #11

Closed tushargugnani closed 2 years ago

tushargugnani commented 2 years ago

Currently we are only getting blog post heading, using the corcel API also get the tags and excerpt of the post. Screenshot 2022-09-09 at 11 29 12 AM

tapan288 commented 2 years ago

@tushargugnani, the post_excerpt column in the database is empty for all posts

tushargugnani commented 2 years ago

@tapan288 ok, I will check this, We might have to get that manually by stripping off the content after certain characters.

tapan288 commented 2 years ago

I've tried doing that, but it renders like this: image

And if I try to render it, the design gets messed up

tushargugnani commented 2 years ago

What if we strip the Html tags using {!! $a !!} ?

tapan288 commented 2 years ago

That's what I meant when I said render, the design gets messed up

screencapture-5balloons-test-2022-09-09-13_38_29

tushargugnani commented 2 years ago

Something like this maybe? {!! str_limit(strip_tags($post->text), $limit = 50, $end = '...') !!}

tushargugnani commented 2 years ago

Fixed via #13