blogotext icon indicating copy to clipboard operation
blogotext copied to clipboard

Changing outcome URL?

Open hypercrites opened this issue 7 years ago • 19 comments

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.

hypercrites avatar Jan 28 '18 19:01 hypercrites

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

remrem avatar Jan 28 '18 22:01 remrem

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! :)

hypercrites avatar Jan 28 '18 22:01 hypercrites

Ok, I try to take a look this week.

remrem avatar Jan 29 '18 10:01 remrem

thank you 👍

hypercrites avatar Jan 29 '18 10:01 hypercrites

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

hypercrites avatar Feb 06 '18 02:02 hypercrites

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 ...

remrem avatar Feb 06 '18 10:02 remrem

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

hypercrites avatar Feb 06 '18 13:02 hypercrites

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

remrem avatar Feb 13 '18 16:02 remrem

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 ;)

remrem avatar Feb 18 '18 13:02 remrem

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

hypercrites avatar Feb 18 '18 14:02 hypercrites

I take a look ;)

remrem avatar Feb 18 '18 14:02 remrem

@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)

extragornax avatar Feb 18 '18 14:02 extragornax

Found and Fix, running some test right now.

remrem avatar Feb 18 '18 14:02 remrem

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

remrem avatar Feb 18 '18 15:02 remrem

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

hypercrites avatar Feb 18 '18 15:02 hypercrites

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

hypercrites avatar Feb 18 '18 15:02 hypercrites

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...

remrem avatar Feb 18 '18 16:02 remrem

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!

hypercrites avatar Feb 18 '18 16:02 hypercrites

np ;) All feedback are appreciated ;)

remrem avatar Feb 18 '18 17:02 remrem