TechBill
(Bill Fleming)
June 7, 2018, 4:22pm
1
I need to manually add a link in SVG to link other stack pages in RW.
Does the stack page have it own hyperlink macro that I can use to manually add in SVG?
Thank you
jabostick
(Jason Bostick)
June 7, 2018, 7:10pm
2
There are a couple of older posts that may help??
I don’t actually do (commercial) RW Theme Design, but I do tweak a fair amount in my own theme files for my website work. It would be handy to be able to have a RW “%” tag (like %site_title%) that output the path to the current page. This would be VERY handy for use in things like Open Graph tags in the HEAD of a document, so I don’t need to create them individually for each page.
and
I think what your looking for is:
%base_url%
jabostick
(Jason Bostick)
June 7, 2018, 7:11pm
3
Also, Isaiah is pretty quick to respond on his slack, if you want to try him there (I don’t know if this would be a stacks thing or a RW thing though)
https://yourhead.slack.com/
TechBill
(Bill Fleming)
June 7, 2018, 7:16pm
4
If I have an index in europe folder, I type in %base_url%/europe/ ?
TechBill
(Bill Fleming)
June 7, 2018, 7:20pm
5
%base_url% worked but there was a layers of folder before the /europe/ that was not added to refer
jabostick
(Jason Bostick)
June 7, 2018, 7:22pm
6
Oh, I’m only able to point people to existing stuff, I can’t actually answer questions and give useful info haha.
teefers
(Doug Bennett)
June 7, 2018, 7:35pm
7
That should have worked. How are you entering that(HTML stack)?
You can also check out this from Stacks:
TechBill
(Bill Fleming)
June 7, 2018, 7:40pm
8
The page was located at URL/preview/regions/europe/
%base_url% took it to URL/europe/
teefers
(Doug Bennett)
June 7, 2018, 7:53pm
9
%base_url% should give you what you have as the Web Address in settings:
The link above to PathsTestStacks gives you other variables but you would have to code them within a custom stack.
TechBill
(Bill Fleming)
June 7, 2018, 8:04pm
10
Yes, and all the pages are in a subfolder /regions/
The macro is not adding the subfolder to the path. I could just move it all out of the subfolder into the root doc folder. I might just do that
juebai
(Juerg)
June 8, 2018, 9:05am
11
@teefers Doug, thanks for the tip. Just learned about that PATH utility from you