latest entries in static page

This is the right place to report general bugs, make suggestions or ask for help.
Post Reply
Marten
Posts: 5
Joined: Fri Jan 22, 2021 10:02 am

latest entries in static page

Post by Marten » Tue Jan 26, 2021 3:34 pm

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?

Marten
Posts: 5
Joined: Fri Jan 22, 2021 10:02 am

Re: latest entries in static page

Post by Marten » Wed Jan 27, 2021 11:07 am

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?

Marten
Posts: 5
Joined: Fri Jan 22, 2021 10:02 am

Re: latest entries in static page

Post by Marten » Fri Jan 29, 2021 3:13 pm

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.

User avatar
Arvid
FlatPress Coder
Posts: 558
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: latest entries in static page

Post by Arvid » Sat Feb 13, 2021 7:46 pm

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 ...
[lastentries]
some more content ...
If this works fine for you, I might simply put this new plugin version into the FP standard.

All the best,
Arvid
Attachments
plugin.lastentries.php.zip
Enhanced Last Entries plugin: Provides a BBCode element [lastentries] to show the plugin content in entries and statics
(1.58 KiB) Downloaded 125 times

User avatar
Arvid
FlatPress Coder
Posts: 558
Joined: Sat Jan 26, 2019 7:40 pm
Contact:

Re: latest entries in static page

Post by Arvid » Sun Feb 14, 2021 11:01 am

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.

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 31 guests