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:
and your blog entry can look like this:
You can use the cover like a background, or like a big header, or like a small thumbnail, and so on...
[plugin request] blog post cover
Re: [plugin request] blog post cover
Could be done with a dedicated Front Page plugin - please see the topic [feature request] frontpage enhancement.
Project blogββ Docsββ Twitterββ Mastodonββ Forum RSS feedββ Project blog RSS feedββ Donate
FlatPress 1.3 "Andante" is released!
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4
FlatPress 1.3 "Andante" is released!
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4
Re: [plugin request] blog post cover
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 blogpostArvid 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.
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
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
We'll get this running Can you please post your current plugin code?
Project blogββ Docsββ Twitterββ Mastodonββ Forum RSS feedββ Project blog RSS feedββ Donate
FlatPress 1.3 "Andante" is released!
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4
FlatPress 1.3 "Andante" is released!
How to rework your themes and plugins for FlatPress 1.3 / Smarty 4
Re: [plugin request] blog post cover
It's very simple, the first part it's already inside the FP code... 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.
Who is online
Users browsing this forum: No registered users and 87 guests