Page 1 of 1

sticky article

Posted: Fri Jul 28, 2023 12:47 pm
by taralushi
Hello,
I cannot find the function to make a topic sticky "always on top of the site". Can somebody help ?

Thanks

Re: sticky article

Posted: Fri Jul 28, 2023 9:14 pm
by virtualsky
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.

Re: sticky article

Posted: Mon Jul 31, 2023 7:35 pm
by fraenkiman
Hello Taralushi,

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

With best regards
Frank

Re: sticky article

Posted: Thu Aug 03, 2023 6:19 pm
by taralushi
Perfect. Exactly what I was looking for. Thanks

Re: sticky article

Posted: Mon Aug 07, 2023 10:43 am
by eagleman

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.

Re: sticky article

Posted: Tue Aug 08, 2023 7:56 pm
by fraenkiman
Thanks a lot eagleman

I have added the italian language file for Frontpage.

With best regards
Frank