CURRENTPAGENAME to variable
jbnv opened this issue · 2 comments
jbnv commented
There's an inconsistency in the CURRENT*
commands: CURRENTBLOCKREF and CURRENTBLOCKCONTENT store in a variable, but
CURRENTPAGENAME does not. I've run into issues calling CURRENTPAGENAME within JS code; it's problematic when a page name contains quotes. Being able to save CURRENTPAGENAME to a variable like with the CURRENTBLOCK* commands should eliminate that problem.
dvargas92495 commented
I like the idea of making all three consistent:
- return to block if no variable
- set if variable
In the meantime, you should be able to do <%SET:var,<%CURRENTPAGENAME%>%>
dvargas92495 commented
Closed by RoamJS/smartblocks@421004b