Relative URL and Ordinal Suffix

Permalink Browser Info Environment
Love this addon! I'm just trying it for the first time and so far have a couple of minor feature requests:

1) In "Smart Link" field when entering my own URL I'd like it to accept /relative_urls or #anchors - currently says invalid link if I enter those.

2) In Date-Time field as it uses strftime() it is missing some options that you would get with date() format, and I'd like option to use ordinal suffix (st, nd, rd, th).
Workaround for this could be to add %O as an extra modifier like this:
$format = str_replace('%O', date('S', $timestamp), $format);
return strftime($format, $timestamp);


I expect I might get other ideas the more I use it - loving it so far, thanks!

Type: Discussion
Status: Resolved
tomrice
View Replies:
tomrice replied on at Permalink Reply
tomrice
One more idea - option to set default Title for smart links
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Tom,

Great you're loving it so far!

As for the relative/anchors, the URL option indeed only accepts real URL's. That way people can't screw up by entering a non-valid URL. I'm able to make a "Relative URL" and "Anchor URL", but it will take me some time as I'm loaded with work currently.

Same goes for the datetime thingy.

I've made an issue/todo for both, so I'll be able to get back to you once I've completed (a) task(s).

Kind regards,

Ramon
tomrice replied on at Permalink Reply
tomrice
Ok that's cool, thanks Ramon! I also added another comment about maybe adding a "default title" option for smartlinks - I might continue posting more ideas to this board if I have any (if that's ok) - these are all things I can work around for now by manually editing the blocks but thought I would suggest them as features if they're things I can see myself needing more than once and/or if others might find them useful.
ramonleenders replied on at Permalink Reply
ramonleenders
N problem. I'd suggest creating a new "ticket" for each request though. This way we know we're talking about the same in each ticket and tickets can get closed once done.

Feature requests are not only great, awesome and ideal for yourself indeed. Others could use them too. Thank you too for sharing!
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Tom,

I've added an option "Relative URL" in version 2.7.0 of Block Designer Pro. There's basically only validation if it's empty or not (when you require the field), so you can add in anchors as well (#my-div). That should solve both problems I guess?

Kind regards,

Ramon
tomrice replied on at Permalink Reply
tomrice
Awesome thanks Ramon :-)

concrete5 Environment Information

Concrete5 8.1

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.