sticky article

This is the right place to report general bugs, make suggestions or ask for help.
Post Reply
taralushi
Posts: 12
Joined: Thu Jul 27, 2023 12:39 pm
Contact:

sticky article

Post by taralushi » Fri Jul 28, 2023 12:47 pm

Hello,
I cannot find the function to make a topic sticky "always on top of the site". Can somebody help ?

Thanks

User avatar
virtualsky
Posts: 67
Joined: Thu Mar 11, 2021 4:50 am
Location: Saskatchewan, Canada
Contact:

Re: sticky article

Post by virtualsky » Fri Jul 28, 2023 9:14 pm

I could be wrong, but I don't think there is an option in FlatPress to do a sticky/pinned entry. I think, if there's something important you want to permanently appear (or give easy access to) on the main page, you use a "Static" page, which appears in the site's "main menu".

Not saying you can't do it, but you probably have to do some adjustments to the .tpl code. I'm sure someone here will correct me if I'm mistaken.
It ain't retro to me.... it's just how I live!
https://www.thegrove.in.nf/retroblog

User avatar
fraenkiman
Posts: 253
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: sticky article

Post by fraenkiman » Mon Jul 31, 2023 7:35 pm

Hello Taralushi,

maybe the Front Page plugin is what you are looking for.

With best regards
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

taralushi
Posts: 12
Joined: Thu Jul 27, 2023 12:39 pm
Contact:

Re: sticky article

Post by taralushi » Thu Aug 03, 2023 6:19 pm

Perfect. Exactly what I was looking for. Thanks

eagleman
Posts: 206
Joined: Sat Mar 02, 2019 12:10 pm

Re: sticky article

Post by eagleman » Mon Aug 07, 2023 10:43 am

Code: Select all

<?php
	$lang['admin']['plugin']['submenu']['frontpage'] = 'Configurazione Pagina Principale';
	
	$lang['admin']['plugin']['frontpage'] = array(
		'frontpage'	=> 'Pagina Principale',
		'frontdescription'=>'Selezionate la categoria  della Pagina Principale. Scegliete una categoria per il flusso principale di articoli del vostro blog.',
		'hide'		=> 'Nascosta',
		'hidedescription'=> 'Selezionate una categoria che <strong>non</strong> volete mostrare nel flusso principale degli articoli.',
		'defcat'=>	'<strong>Visualizza tutto</strong> (predefinito)',
		'defexcat'=>	'<strong>Non nascondere nulla</strong> (predefinito)',
		
		'submit'	=> 'Salva la categoria'
	);
	$lang['admin']['plugin']['frontpage']['msgs'] = array(
		1		=> 'La categoria della Pagina Principale è stata salvata.',
		-1		=> 'Errore nella configurazione della Pagina Principale'
	);
	
?>
First of all, excuse me if I post my translation in this way, but I can't use my home PC (it works, don't worry), if you want you can copy and paste this code into a PHP file for the italian langpack of Front Page plugin.

User avatar
fraenkiman
Posts: 253
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: sticky article

Post by fraenkiman » Tue Aug 08, 2023 7:56 pm

Thanks a lot eagleman

I have added the italian language file for Frontpage.

With best regards
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests