Shortcode for site root URL

Use a shortcode to get the site root path for file uploads.

Overview

The user needed to reference the site's root path in a form, particularly for file upload functionality.
Use the {path:root} shortcode within the form to insert the correct server path.

Answered
ChronoForms v6
mo momentis 10 Apr, 2018
Is there an available shortcode to return the site's root URL?

Rick
Gr GreyHead 10 Apr, 2018
Hi Rick,

I don't think so - IIRC Max posted a PHP snippet to get this a few days ago . . . but I can't find it right now :-(

Bob
mo momentis 10 Apr, 2018
Thanks, Bob.

I am having a heck of a time with a simple form to upload a file to the server. Plugging away!!

Rick
he healyhatman 10 Apr, 2018
1 Likes
{path:root}

Should add this to the shortcodes FAQ Bob. And {path:forward}, and if there are any other options🙂
mo momentis 10 Apr, 2018
Thanks healyhatman!! That did it.
Rick
Gr GreyHead 10 Apr, 2018
Answer
1 Likes
Hi,

Done - see the FAQ here

Bob

NB these give the path not the URL - but it is the path you need for file uploads
This topic is locked and no more replies can be posted.