dropplets icon indicating copy to clipboard operation
dropplets copied to clipboard

post_content instead of post_intro on index page

Open peterrovid opened this issue 13 years ago • 5 comments

Hi there for everyone,

since I write very short, almost always quoted posts, it is disturbing to my readers that they have to click always the 'Read more' button after the first paragraph (which is a link to the quote like every time). It would be great if the index page can show not only the intros, but the complete posts.

I already tried a few method, without success. Can you please explain me what should I do? (i have v1.6.2.6.) Thank you in advance

peterrovid avatar Sep 17 '13 17:09 peterrovid

This isn't actually a bad idea, especially for those who want to create a post that contains just a quote, or maybe a video or some other sort of embedded content. As a thought to expand on @peterrovid's, a function like this could be attached to the new <!-- more --> tag that was recently added to Dropplets. The way I see it, if that tag doesn't exist in the .md file, then Dropplets should display the post in its entirety on the main page, whereas if the post DOES include that tag, then a "read more" button can be displayed.

I'm sure this is easier said than done, but I like the idea, and it might be worth taking into consideration.

shoostar avatar Sep 17 '13 17:09 shoostar

I agree, that is a neat feature.‎

cadesalaberry avatar Sep 17 '13 18:09 cadesalaberry

For a quick fix to just show all the content on the main page, edit posts.php and change:

<?php echo($post_intro); ?>

to:

<?php echo($post_content); ?>

Alternatively, implement the aforementioned <!-- more --> tag, and then just put it at the bottom of your posts....

misterben avatar Sep 18 '13 08:09 misterben

Thanks misterben for your comment.

I already tried to change post_intro to post_content, without success, but adding the tag solved my problem. I think it's not the greatest solution, but works ;) I also removed the 'Read more' button from the posts.php, so the button will never be there on the main page.

peterrovid avatar Sep 18 '13 08:09 peterrovid

Hi.

I just wanted to let you know guys that I had another minor problem, regarding my twitter account picture. In the cache folder, there was only a 0kb jpeg file named by my twitter account, without any content. I replaced it manually with my twitter avatar, and now it works well.

Another thing. I realized that if I want to share my post on twitter, the link contains :80 after my domain. So the link seems like this: www.mydomain.com:80/the-rest-of-the-link. I found the solution in the config.php file in the root folder of dropplets. When I opened it, there was :80 after my domain, so I simply removed it. After this small modification, my page loaded much more faster than before.

peterrovid avatar Sep 19 '13 07:09 peterrovid