BlogoText / blogotext

A little more than a lightweight SQLite Blog-Engine.
Other
137 stars 30 forks source link

Changing outcome URL? #359

Open hypercrites opened 6 years ago

hypercrites commented 6 years ago

hello, i like to know what i have to change if i want my URL like this "?d=post/post-name" instead of something like this "?d=2018/01/28/13/46/45-post-name" i don't like a timestamp and its easier to link posts imho.

remrem commented 6 years ago

Hi, Currently BlogoText can't do that, but it can be done with an addon. Do you need this quickly ?

hypercrites commented 6 years ago

oh yeah that would be very nice! :) Edit: sorry for my short reply, i was in a rush. yes, an quick addon would help me alot! :)

remrem commented 6 years ago

Ok, I try to take a look this week.

hypercrites commented 6 years ago

thank you 👍

hypercrites commented 6 years ago

hey @remrem, how is it going so far? did you made any progress with an addon? cheers! :)

remrem commented 6 years ago

Hi! I'm working on it, almost done. But I do not move as fast as I hope, lack of free time :/ I hope it does not bother you too much ...

hypercrites commented 6 years ago

don't worry, its fine, i just wanted a little status-update, take your time :)

remrem commented 6 years ago

I finalize the addon (debug and testing). I publish this in the next 2-3 days.

remrem commented 6 years ago

Hi, can you try the addon url_rewrite from https://github.com/remrem/blogotext-addons/tree/url_rewite ? Just put the addon into your addon folder and activate it in the admin (there are some settings if you want to customize it).

P.S. The current version of BlogoText (3.7.X) is not yet at the top with some type of addon, we will improve it with the version 3.8 ;) I will modify the addon so that it is better with the next BT release ;)

hypercrites commented 6 years ago

works perfectly, thank you for this! :)

Edit: i tested it without a parameter wich breaks the function. however i do not use it without it (i was just curious), i just think i should tell you :P

remrem commented 6 years ago

I take a look ;)

extragornax commented 6 years ago

@hypercrites The current version of the module should break the blogo post pages since you can't access them anymore (unless you use the "real" url) Patch incoming

ex: http://blogo.extragornax.fr/?test=yolotron2 doesn't work but http://blogo.extragornax.fr/?d=2018/02/18/14/38/23-yolotron2 does (same article)

remrem commented 6 years ago

Found and Fix, running some test right now.

remrem commented 6 years ago

v 1.0.1 : https://github.com/remrem/blogotext-addons/tree/url_rewite 2 bugs fixed, can you give it a shot ?

hypercrites commented 6 years ago

i tested it and it still breaks if i leave the parameter blank, but it works now with other parameters.

hypercrites commented 6 years ago

oh and i found out that clicking on random still shows the regular url outcome :P

remrem commented 6 years ago

ok, I look to disallow empty parameter (required) and to random ;)

Edit : Do you want to use an apache/nginx url rewriter rule ? Must find something else than disallowing...

hypercrites commented 6 years ago

i don't really know, to be honest. the addon works for me exactly how i need it. i just played a bit arround, i didn't wanted to steal your time, sorry!

remrem commented 6 years ago

np ;) All feedback are appreciated ;)