Page 1 of 1

[plugin request] blog post cover

Posted: Tue Mar 12, 2019 9:09 pm
by vodka
Hi, I would discuss this feature inspired by "Featured Images & Post Thumbnails" from wordpress.
This plugin allow a theme designer to make a nicer home page and/or blog page.

For exemple you can make a home page like this: Image

and your blog entry can look like this:

Image

You can use the cover like a background, or like a big header, or like a small thumbnail, and so on...

Re: [plugin request] blog post cover

Posted: Wed Mar 13, 2019 6:42 pm
by Arvid
Could be done with a dedicated Front Page plugin - please see the topic [feature request] frontpage enhancement.

Re: [plugin request] blog post cover

Posted: Wed Mar 13, 2019 8:40 pm
by vodka
Arvid wrote: Wed Mar 13, 2019 6:42 pm Could be done with a dedicated Front Page plugin - please see the topic [feature request] frontpage enhancement.
Not exactly... it can be alive without the front page, the main goal of this plugin is provide a tool (flatpress api or so on) to customize a blogpost

The second example can be done with this code:

Code: Select all

{if ($cover)} <div style=background-image:"{$cover}" ><h2>{$subject|tag:the_title}</h2></div>{/if}
...
{$content|tag:the_content}
...

Re: [plugin request] blog post cover

Posted: Tue May 07, 2019 8:22 am
by vodka
I have made a first attempt to write this plugin... and it's seem to work! But I need help to write the configuration panel, I do not know how pass a value from smarty to php, someone ca help me?

Re: [plugin request] blog post cover

Posted: Tue Aug 27, 2019 6:06 am
by Arvid
We'll get this running :) Can you please post your current plugin code?

Re: [plugin request] blog post cover

Posted: Sun May 17, 2020 7:19 pm
by vodka
It's very simple, the first part it's already inside the FP code... :mrgreen: for the second part of the code I need a little bit of rework, I'm writing a new theme from scratch to show how it works.