I fixed this by starting with empty node TW5, drag+drop Stroll from
giffmex, drag and drop 4 bits of TiddlyMap.
Then go to More > Shadow tiddlers >
*$:/plugins/felixhayashi/tiddlymap/hook/editor* and click to open it. Edit
it, and add
\define lingo-base() $:/language/ThemeTweaks/
<$select tiddler="$:/themes/tiddlywiki/vanilla/options/sidebarlayout"><option
value="fixed-fluid"><<lingo Options/SidebarLayout/Fixed-Fluid>></option><option
value="fluid-fixed"><<lingo Options/SidebarLayout/Fluid-Fixed>></option></
$select>
after the first line so that the tiddler looks like:
\define width() calc(100% - 15px)
\define lingo-base() $:/language/ThemeTweaks/
<$select tiddler="$:/themes/tiddlywiki/vanilla/options/sidebarlayout"><option
value="fixed-fluid"><<lingo Options/SidebarLayout/Fixed-Fluid>></option><option
value="fluid-fixed"><<lingo Options/SidebarLayout/Fluid-Fixed>></option></
$select>
<div class="tmap-mobile-editor">
<div class="tmap-flash-message tmap-warning">
The editor is not displayed in mobile mode.
</div>
</div>
<div class="tmap-desktop-editor">
<$tiddlymap
class="tmap-sidebar-map-editor"
editor="advanced"
object-id="main_editor"
click-to-use="false">
</$tiddlymap>
</div>
However - you can just set Sidebar layout to Fluid Story, Fixed Sidebar and
it works anyway? Or am I missing something?
Thanks so much Dave for Stroll and TiddlyMap integration - it's truly
amazing. RoamResearch has a very odd approach to customer care which don't
encourage me to give them my data or money.
Nick
On Sunday, 17 May 2020 01:57:00 UTC+1, David Gifford wrote:
>
> Yeah, I have to appeal to those who know more than I do, to help you
> figure out what is happening. Are you doing it manually in GitHub? Are
> those /n's yours?
>
> I added the snippet with no problem on a standalone Stroll (attached).
>
> David Gifford
> Mexico team leader, Mexico City
>
> *Resonate Global Mission*
> *Engaging People. Embracing Christ.*
> A Ministry of the Christian Reformed Church
> resonateglobalmission.org
>
>
>
> On Sat, May 16, 2020 at 7:50 PM Reet Pandher <[email protected]
> <javascript:>> wrote:
>
>> Hi Dave,
>>
>> Sorry to bother you again.
>> Now i am getting this error:
>> *SyntaxError: JSON.parse: expected ',' or '}' after property value in
>> object at line 539 column 4 of the JSON data*
>>
>> For comparison this is what the code looks like now:
>>
>> "$:/plugins/felixhayashi/tiddlymap/hook/editor": {
>> "title": "$:/plugins/felixhayashi/tiddlymap/hook/editor",
>> "caption": "Map",
>> "tags": "$:/tags/SideBar",
>> "text": "\\define width() calc(100% - 15px)\n\n<div
>> class=\"tmap-mobile-editor\">\n <div class=\"tmap-flash-message
>> tmap-warning\">\n The editor is not displayed in mobile mode.\n
>> </div>\n</div>\n<div class=\"tmap-desktop-editor\">\n <$tiddlymap\n
>> class=\"tmap-sidebar-map-editor\"\n editor=\"advanced\"\n
>> object-id=\"main_editor\"\n click-to-use=\"false\">\n
>> </$tiddlymap>\n</div>"
>> \define lingo-base() $:/language/ThemeTweaks/
>>
>> <$select
>> tiddler="$:/themes/tiddlywiki/vanilla/options/sidebarlayout"><option
>> value="fixed-fluid"><<lingo
>> Options/SidebarLayout/Fixed-Fluid>></option><option
>> value="fluid-fixed"><<lingo
>> Options/SidebarLayout/Fluid-Fixed>></option></$select>
>> },
>>
>>
>> On Sunday, May 17, 2020 at 12:10:34 AM UTC+5:30, David Gifford wrote:
>>>
>>> Hi Rert
>>>
>>> Try pasting it on the line AFTER the first line, not at the end of the
>>> first line. I guess I need to make that clearer.
>>>
>>>
>>>
>>>
>>> On Sat, May 16, 2020 at 12:48 PM Reet Pandher <[email protected]>
>>> wrote:
>>>
>>>> Hi Dave,
>>>> I tried the fix for TiddlyMap.
>>>> I am getting the following error:
>>>> *SyntaxError: JSON.parse: bad escaped character at line 538 column 57
>>>> of the JSON data*.
>>>>
>>>> I tried it with 5 different copies of my original file. I tried editing
>>>> the tiddler in TiddlyDesktop as well as in Firefox and Chrome. The result
>>>> is the same. After saving the file breaks.
>>>> This is the process i followed:
>>>> Go to Options> Plugins> Open *$:/plugins/felixhayashi/tiddlymap*
>>>> Tiddler> Edit and Save the tiddler.
>>>>
>>>> Here is *where i pasted *the code:
>>>>
>>>> "$:/plugins/felixhayashi/tiddlymap/hook/editor": {
>>>> "title": "$:/plugins/felixhayashi/tiddlymap/hook/editor",
>>>> "caption": "Map",
>>>> "tags": "$:/tags/SideBar",
>>>> "text": "\\define width() calc(100% - 15px)
>>>> *I_PASTED_THE_CODE_HERE*\n\n<div class=\"tmap-mobile-editor\">\n <div
>>>> class=\"tmap-flash-message tmap-warning\">\n The editor is not
>>>> displayed
>>>> in mobile mode.\n </div>\n</div>\n<div class=\"tmap-desktop-editor\">\n
>>>> <$tiddlymap\n class=\"tmap-sidebar-map-editor\"\n
>>>> editor=\"advanced\"\n object-id=\"main_editor\"\n
>>>> click-to-use=\"false\">\n </$tiddlymap>\n</div>"
>>>> },
>>>>
>>>> If you copy paste the *$:/plugins/felixhayashi/tiddlymap* Tiddler text
>>>> into Notepad++ this block of code is in line 534 - 539
>>>>
>>>>
>>>> Here is *what it looked like with the code pasted *in:
>>>>
>>>> "$:/plugins/felixhayashi/tiddlymap/hook/editor": {
>>>> "title": "$:/plugins/felixhayashi/tiddlymap/hook/editor",
>>>> "caption": "Map",
>>>> "tags": "$:/tags/SideBar",
>>>> "text": "\\define width() calc(100% - 15px)\define
>>>> lingo-base() $:/language/ThemeTweaks/
>>>>
>>>> <$select
>>>> tiddler="$:/themes/tiddlywiki/vanilla/options/sidebarlayout"><option
>>>> value="fixed-fluid"><<lingo
>>>> Options/SidebarLayout/Fixed-Fluid>></option><option
>>>> value="fluid-fixed"><<lingo
>>>> Options/SidebarLayout/Fluid-Fixed>></option></$select>\n\n<div
>>>> class=\"tmap-mobile-editor\">\n <div class=\"tmap-flash-message
>>>> tmap-warning\">\n The editor is not displayed in mobile mode.\n
>>>> </div>\n</div>\n<div class=\"tmap-desktop-editor\">\n <$tiddlymap\n
>>>> class=\"tmap-sidebar-map-editor\"\n editor=\"advanced\"\n
>>>> object-id=\"main_editor\"\n click-to-use=\"false\">\n
>>>> </$tiddlymap>\n</div>"
>>>> },
>>>>
>>>> I also tried the pasting the code after removing all the spaces b/w
>>>> ThemeTweaks/ and <$select tiddler...
>>>> Same Result. File Breaks.
>>>> Please let me know if i am doing this correct at all.
>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "TiddlyWiki" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/tiddlywiki/GqqWdGnFb94/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/tiddlywiki/a7fdd5d1-9d12-40b5-9ec8-ce4cefe3e98b%40googlegroups.com
>>>>
>>>> <https://groups.google.com/d/msgid/tiddlywiki/a7fdd5d1-9d12-40b5-9ec8-ce4cefe3e98b%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "TiddlyWiki" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/tiddlywiki/GqqWdGnFb94/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected] <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tiddlywiki/0d1c9749-7948-4f6e-9e78-f9477d2eff2e%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/tiddlywiki/0d1c9749-7948-4f6e-9e78-f9477d2eff2e%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/73aa9ebd-ce26-47d4-aa68-f7ce68b489c1%40googlegroups.com.