page_short_url

blindmime
@blindmime
9 years ago
772 posts
I've noticed this template variable.

What is the actual URL? http://{$jamroom_url}/{$page_short_url} doesn't work.
updated by @blindmime: 03/31/16 04:45:33AM
michael
@michael
9 years ago
7,715 posts
Not a variable that comes from us, try one of the other developers.
blindmime
@blindmime
9 years ago
772 posts
I don't believe I have any other developers' modules installed. I'm thinking the url comes from the ShareThis module. It looks like the url it shares has a variable that looks like the values $page_shot_url contains.
brian
@brian
9 years ago
10,148 posts
ShareThis does have a URL shortner (specifically for it's own use in OG Tags - it's not for use out side the module) but it does not expose that as a variable you can use.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
9 years ago
772 posts
$page_short_url shows up in the debug list. I've started using pages more and was just curious what this was.
michael
@michael
9 years ago
7,715 posts
Its being created by jrShareThis for all datastore items by prefixing their db name:
jrCore_db_update_item($module, $item_id, array("{$pfx}_short_url" => $hash));

The actual url will depend on what the url of the page you're actually after is.
updated by @michael: 12/28/15 04:52:00PM
brian
@brian
9 years ago
10,148 posts
It is designed for use in the OG tags when sharing via ShareThis - it's not been designed as a "general" URL shortener.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
9 years ago
772 posts
The url http://domain.com/sharethis/BUXnnC2b does work though.

You work magic even when you don't mean to, I guess.

Tags