Page 1 of 1

latest entries in static page

Posted: Tue Jan 26, 2021 3:34 pm
by Marten
I want to make a (static) news page.
How can I ad latest entries, calendar and archive in a static page?
Have try different ways as php include, but that dont work.
Can not find a bb code for it.
Any idea?

Re: latest entries in static page

Posted: Wed Jan 27, 2021 11:07 am
by Marten
I made a static page Album and put the code
[photoswipegallery="images/album" height="100"] in it.
In the admin it show up.
In the normal view only the code show up no content.

Thats what mean with my Q.

Any idea?

Re: latest entries in static page

Posted: Fri Jan 29, 2021 3:13 pm
by Marten
Found the problem.
I install the Mistylook theme and that work no good with this version of flatpress.
I use now a other template, gallery work good now, last entries is not showing in a static page.

Re: latest entries in static page

Posted: Sat Feb 13, 2021 7:46 pm
by Arvid
Good to hear the gallery works.

Regarding the Last Entries topic: I'm afraid this is not possible with the current plugin version. The plugin output is meant to be used as a widget, not in entries or statics. To achieve this, it might just be neccessary to add a BBCode element "lastentries" that simply outputs the widget content. I will look into this, maybe it's not too much work. I'll get back to you as soon as I have something :)

Update 15 minutes later:
Well, that was quite a quickie. It worked exactly as I proposed :mrgreen:
Please replace your /fp-plugins/lastentries/plugin.lastentries.php with the attached version. It provides a BBCode element "lastentries" - without any parameters or closing tag. Use this in your static page:
some content ...
some more content ...
If this works fine for you, I might simply put this new plugin version into the FP standard.

All the best,

Re: latest entries in static page

Posted: Sun Feb 14, 2021 11:01 am
by Arvid
Note to myself: The proposed changes have side effects. I put "[lastentries]" into an entry. The latest entries are displayed correctly, but the "comments" link below the page leads to the comments page of the latest entry display by the Last Entries plugin. Weird...

Also a little idea: We could expand the BBCode element with a count parameter to display a given number of latest entries:
[lastentries count=20]
I will look into both, but propably not before releasing FP 1.2.