blogotext icon indicating copy to clipboard operation
blogotext copied to clipboard

Static Frontpage?

Open ragnar76 opened this issue 6 years ago • 3 comments

Hi there,

is it possible to have a static frontpage instead of the list of articles?

creating a index.html and renaming index.php to,for example blog.php, does not really work. A lot of files are calling the index.php which is not there and ends in an 404 error

ragnar76 avatar Jul 17 '18 20:07 ragnar76

Hi This is possible by creating an addon and using the hooks or by routing rules (apache / htaccess / nginx). If you want to develop an addon, I can help you. Otherwise I can try to do it this week (if I have time).

remrem avatar Jul 17 '18 20:07 remrem

As i said before, i'm not a PHP coder and i dont want you to disturbe you from further development (cant wait for 3.8 ;) )

An addon would bei great some day and i think an htaccess file will work for that time

ragnar76 avatar Jul 17 '18 21:07 ragnar76

Hey,

found a workaroud. Blogotext is not accepting themes without

{BOUCLE_posts} {/BOUCLE_posts}

my way is to wrap that into a div and set css to display: none;

not perfect but it works for now

Edit: hmm...

it's not working display: none; is inherited to post.html and article.html

Edit 2: No luck with state published/invisible either. Is it possible to have just one article on the frontpage?

Edit 3: I've made it. This time for real. Soultion was quite simple. Just change the number of displayed articles to 1. all you have to take care of, you have to change the date or modify the one you want to show to the newest article

ragnar76 avatar Jul 21 '18 12:07 ragnar76