Groundhog day: What about Cardo?

For years I have been using Cardo by David Szego until it stopped working with newer versions of TiddlyWiki. The last Cardo known to be working is at https://dyumnin.com/Cardo.html (Note: The link on tiddlywiki.com should be updated accordingly.) running on TiddlyWiki v5.1.19. It looks like David Scego died in 2019 so Cardo is no longer maintained.

On tthis thread here I took on the task to revive Cardo. Struggeling with TiddlyWiki on node.js and not much time to work on it I did not make progress.

Starting over and a new approach

For the time being I’ll work with a single file wiki hosted on TiddlyHost: https://mymap.tiddlyhost.com.

Having worked with Projectify for a while now I want to take a new approach and incorporate mobile friendly plugins like MyContacts, and later MyBudget, MyCollections, MyLibrary, MyStuff (Inventory), myRecipes including MyMacros (A simple CarbCounter as a KETO diet works miracles on my over all well being) to add to it.

In the process I want to document on MyMaps all the editions I stumble upon that are already out there. Saw some promising threads on talk.tiddlywiki.org so far.

Vision for MyMaps

Eventually MyMaps should be an agenda edition ready to use out of the box for people who have not yet dived into Tiddlywiki and also for non-English speakers.

Two over all goals:

  1. all modules should be mobile friendly, which Projetify and the Notebook Theme provide.

  2. with all modules the user should be able to switch the language of the plugins UI just like he is able to do with the TiddlyWiki UI and be easy to translate to other languages. Currently my number one priority is to figure out how to best approach this. There are already language tiddlers for Projectify available to import, but they overwrite the english ones.You cannot switch the language of the Projectify UI. Or am I missing something?

I am an architect by training, working self-tought with websites off and on since 1996 (I’m an old lady sigh)

It is obvious I will need a lot of help with this project from the TiddlyWiki experts out there, to keep me from running in the wrong direction and point me to solutions already there in case I missed them. I appreciate any much needed advice.

My many thanks in advance. :smiling_face_with_three_hearts:

Avanti, avanti, Xrizzy

4 Likes

What parts of it didn’t work when you upgraded?

There was a javascript error which could be solved:

and none of the tiddler toolbar buttons work anymore. No save, cancel, delete and so on.

and I noticed that the import tool does not work.

We discussed all of that on th.

I was able to get it to save, cancel, delete. The trick is to import everything all at once into an empty before the Cardo code mangles the importer.

Also, I was able to “fix” the importer by forcing it to use the built-in importer. Somewhere in the system Cardo is forcing it’s own view of the Import tiddler. Someone needs to figure out how it’s doing that.

Create a tiddler and tag it $:/tags/ViewTemplate and add the following code:

<$list filter="[all[current]plugin-type[import]]">
{{||$:/core/ui/ViewTemplate/body/import}}
</$list>

image

I haven’t encountered the javascript error, but I haven’t tried much.

I disabled Tinka and scrollUp. Trying to reduce sources of error.

2 Likes

Ok, you can fix the import problem the “Cardo” way by editing:

$:/plugins/Cardo/ui/ViewTemplates/types

and adding

<$list filter="[all[current]plugin-type[import]]">
{{||$:/core/ui/ViewTemplate/body/import}}
</$list>

to the top of the list.

This code would need to be added to the future plugin update, should it ever be updated.

Edit: The “delete” button doesn’t work in the tiddler view, but it does work from within edit mode.

I suppose I could post my version of Cardo if people want to see that it is (sort-of) working.

It seems like his code uses his own templates and over-rides lots of stuff, which probably need to be compared to the 5.3.8 version and then updated individually. For instance, you can’t drag and drop open items – his templates were made before we could make our own drop targets, I think.

4 Likes

That would be great and thank you for fixing so much already.

It seems non of the toolbar icons work atm. …

I haven’t patched any JS yet, so there may be red-screens.

3 Likes

@ Mark_S Thank you that looks great.

Looks like the buttons are working too no. What did you have to change?

So far I’ve only fixed the import.

I’m sure there are some things not working. The “delete” button from the Tiddler View doesn’t work. And working on the main view template causes a massive recursive view.

I’m curious if the main functionality seems to work, since I never actually used Cardo.

1 Like

I’ve made an update.

I’ve re-overwritten the main ViewTemplate, which restores the ability to delete a tiddler from the tiddler view.

As far as I can tell, David’s view template only had a small change that was in anticipation of being able to add a swipe handler. Everything seemed to work fine after the change. Maybe someone more familiar can check it out.

I’ve added a log of the changes I’ve (knowingly) made to the top, including a link to a tool that will let you download a local copy.

Wonderful care!

Are you Bill Murray?

1 Like

Usually I tend to identify more with Dan Akroyd, but admittedly GHD is pretty much my favourite movie. Which is why I try never to watch it.

2 Likes

@ Mark_S Thank you the log is very helpful.

I wanted to take a look at these two, but got an error "Recursive transclusion error in transclude widget"

So, for the moment, I’ve changed the log entry for $:/core/ui/ViewTemplate into mono-space, so you don’t accidentally click it. It’s the exact same as that at TiddlyWiki.com .

I’ve changed the type for Cardo: $:/core/ui/ViewTemplate into text/plain so you can view it.

Might have to figure out some anti-recursive code if it becomes necessary to work on $:/core/ui/ViewTemplate.