Hi,

To remove it, just delete the permalink button: (replace URL with your own) 
https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FButtons%2Fpermalink

But I don't think we are changing any core functionality with this button; 
all we have done is replaced the single button and all it does is making a 
new field and copying a string to you clipboard. So I don't think it will 
interfere with anything

Best,
Anders

søndag 9. mai 2021 kl. 14:25:28 UTC+2 skrev ludwa6:

> Anders: much as i appreciate the brilliance of your solution to this 
> problem, i think that -since Charlie's come up w/ a different solution that 
> solves the problem w/o opening core functionality to possible corruption 
> (right? i hope!)- then maybe i would do well to remove this 
> "$__core_ui_Buttons_permalink.json" code from my wiki -yes?  
>
> If so, i have to ask (as i'm still a total n00b when it comes to this core 
> / shadow tiddler stuff, obviously): what tiddler(s) do i need to remove or 
> modify to eliminate this risk of creating clone tiddlers that are gonna 
> break the TW upgrade process, as PMario has explained 
> <https://github.com/Jermolene/TiddlyWiki5/discussions/5668>could be a 
> problem.
>
> On Wednesday, May 5, 2021 at 9:39:02 PM UTC+1 Anjar wrote:
>
>> Hi Walt,
>>
>> I am glad it solved the first problem.
>>
>> Ad #2: You are right, permalinks created *earlier *are not affected by 
>> this solution. However, if you *now *rename 
>> the SolutionToProblemOfLinkRot tiddler to ProblemOfLinkRot and click the 
>> permalink button, then both #:[contains:permalink[
>> *solutiontoproblemoflinkrot*-20210505114349833]] (old) 
>> and #:[contains:permalink[*problemoflinkrot*-20210505114349833]] (new) 
>> will work
>>
>> I think it will be very difficult to solve #2 in a general way that 
>> ensures that links already shared will keep working forever. It may be 
>> possible (but I don't know how) to make a solution to search in the 
>> permalink field if the tiddler couldn't be found (eg. /#ProblemOfLinkRot -> 
>> look for problemoflinkrot in the permalink fields -> list all potential 
>> hits). But if you later make a new tiddler called ProblemOfLinkRot, then 
>> the old link will give you the new one
>>
>> Best,
>> Anders
>>
>> onsdag 5. mai 2021 kl. 21:01:01 UTC+2 skrev ludwa6:
>>
>>> Correction to my last: dunno what caused the phenom i reported as #1 
>>> above, but i can no longer replicate that error; the new URL works fine.
>>> However: problem #2 reported above persists -and so my question about a 
>>> potentially simpler solution to this two-headed problem stands.
>>>
>>> /walt
>>>
>>> On Wednesday, May 5, 2021 at 7:38:32 PM UTC+1 ludwa6 wrote:
>>>
>>>> Your spec ticks all the boxes, Anders... So i installed it, but not 
>>>> getting the hoped-for result, alas.
>>>>
>>>> *What i did:* Changed URL on the "ProblemOfLinkRot" tiddler to 
>>>> "SolutionToProblemOfLinkRot"; selected (modified) Permalink button in 
>>>> pulldown tiddler menu -and it copied the composite URL, composed per your 
>>>> specification, to my clipboard, which is also populating the new 
>>>> "Permalink" field, i see.  So far so good... But there is yet a problem 
>>>> -two actually:
>>>>
>>>>    1. When i point my browser to the new URL- 
>>>>    
>>>> https://meta.tiddlyhost.com/#:[contains:permalink[solutiontoproblemoflinkrot-20210505114349833]]
>>>>  
>>>>    - it pulls a blank page.
>>>>    2. The old permalink-  https://meta.tiddlyhost.com/#ProblemOfLinkRot 
>>>>    -brings me to a "Missing Tiddler" page (not surprising, since a tiddler 
>>>>    with that name indeed exists no more, having been overwritten by the 
>>>> new... 
>>>>    And that old URL has no "contains" parameter in it).
>>>>
>>>> I hadn't really thought of this problem in terms of having two 
>>>> different URLs pointing to the same tiddler; instead, i was hoping that a 
>>>> UID could be assigned on tiddler creation (ideally a not-too-weird 
>>>> combo-key: original name (guaranteed unique at the time, as you say) plus 
>>>> date would work), which persists across any renaming event in the 
>>>> Permalink 
>>>> field, but is not the title.  Is there some problem w/ this simpler 
>>>> solution that i'm not seeing?
>>>>
>>>> /walt
>>>>
>>>>
>>>>
>>>> On Wednesday, May 5, 2021 at 5:12:15 PM UTC+1 Anjar wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> Here is a demo for a new permalink button. It creates a new field 
>>>>> called permalink and inserts <slugified title>-<created>. Since the title 
>>>>> is unique at creation, this string should be unique (?). Further, it 
>>>>> copies 
>>>>> the appropriate link to the clipboard; 
>>>>> https://tiddlywiki.com/#:[contains:permalink[new-tiddler-20200509141702846]].
>>>>>  
>>>>> If you change the title, the button appends the new <slugified 
>>>>> title>-<created> to the permalink field so that both links go to the same 
>>>>> tiddler
>>>>>
>>>>> Best,
>>>>> Anders
>>>>>
>>>>>

-- 
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/f2d9c490-167c-4d21-9a64-0e78c522780an%40googlegroups.com.

Reply via email to