[tw] Multiple values in one variable (within a macro call)

2016-07-27 Thread jonathanhaug
 

Hi there again,

 

I would like to call a macro with a set of tiddler titles (similar to an 
„array“ variable)

 

<>

 

And the macro has to output a list of links to these tiddlers.

 

\myMacro(ttl)

<$list filter="[[$ttl$]]" />

\end

 

How would I do this?

 

Thanks in advance!

 

 

 

 

 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/009701d1e7f1%2431e857a0%2495b906e0%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Transcluding the title of the current tiddler

2016-07-27 Thread jonathanhaug
Thank you, Mark!



You are the guru here…

 

 

 

This seems to work:

\define mac2(ttl)
<$list filter=" [[$ttl$]]  +[removesuffix[ (Info)]]" />
\end
\define mac1()
---
The following contains details relating to <$macrocall $name=mac2 
ttl={{!!title}}/>

---
\end

<>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/008a01d1e7f1%2423acd940%246b068bc0%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.


AW: [tw] Re: Transcluding the title of the current tiddler

2016-07-27 Thread jonathanhaug
Hi Matabele,

 

indeed, your approach does work for pure listing, but if you want to link to 
this very tiddler, it does not work … 

 

\define myTitle(title) [[$title$ info]]

<>

 

leaves you with a link to „{{!!title}} info“.

 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/005101d1e7e1%2418bfb5d0%244a3f2170%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.


AW: [tw] Re: Transcluding the title of the current tiddler

2016-07-26 Thread jonathanhaug
Thanks, your solution is working – great!

 

One more question:

How would I do it the other way round:

 

Linking from „myTiddler (info)“ to „myTiddler“  ?

 

I would have to shorten the title oft the current tiddler, i.e. cut off the 
last 6 or 7 characters.

 

How would I do this?

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/008a01d1e76b%24c8d84a70%245a88df50%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.


[tw] Transcluding the title of the current tiddler

2016-07-26 Thread jonathanhaug
 

Hi there,

 

i want to transclude the title of the current tiddler within a macro.

 

Firstly, here ist he macro:

 

\define myMacro()

---

look here for more informations: [[ {{!title}} (Info) ]]

---

 

\end

 

 

Secondly, here ist the macro call:

 

<<>>

 

Thirdly, this should be seen:

 

A link to a tiddler with a title which consists of a) the current tiddler   and 
b) the string  „ (Info“)

 

 

Background: I’m developing a set of flash cards and on the top of each page 
there should be a link to an „info-page“ for the current tiddler.

 

Thanks in advance

 

Jonathan

 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/005601d1e734%2499abe4f0%24cd03aed0%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.


AW: [tw] Re: [TW5] How to protect single tiddlers from editing by password

2015-11-18 Thread jonathanhaug
Hi Tobias,

 

thanks for looking into my issue – your solution is working!

 

And thank you for creating a bug report.

 

Greetings 

 

Jonathan

 

 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/034c01d121f1%246586c0e0%24309442a0%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] How to protect single tiddlers from editing by password

2015-11-14 Thread jonathanhaug
Sorry, this should be part of my last thread

https://groups.google.com/forum/#!topic/tiddlywiki/07WVZmjsopE

In short:



How would I 

*   allow a user to read a special tagged tiddler, but …

*   prevent him from editing this tiddler by …

*   asking for a password when he clicks the edit button, but still keep …

*   the normal behaviour with un-tagged tiddlers.

 

I’m looking for a behaviour just like the „Encrypt single tiddler“ plugin, with 
the only exception that one can read a „encrypted“ tiddler without a password – 
but have to enter the password to enable editing.



 Tobias gave me the following hint:

In $:/core/ui/Buttons/edit :

<$list filter="[all[current]!tag[locked]]">





 

Now my code looks like I wrote above and I have the following problem:

 

I do not get a edit button on missing tiddlers when I open the corresponding 
link and want to start editing this tiddler. But I do want to be able to edit 
these Drafts unless they are marked with „locked“

 

Any hints again?

 

 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/021501d11ec8%2481aa01f0%2484fe05d0%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] How to protect single tiddlers from editing by password

2015-11-11 Thread jonathanhaug
Hi there,

 

I have to reactivate this.

 

I’ve edited the shadow tiddler $:/core/ui/Buttons/edit and added a 
reveal widget:

 

<$list filter="[all[current]tag[locked]]">





 

 

<$list filter="[all[current]!tag[locked]]">

<$reveal type="match" state="$:/_secret" text="my-secret">







 

 

First thing is: It’s a bit ugly to have the same code twice, but I didn‘t get 
to write a syntax like  „If (locked) then {} else {}“

 

Second thing is: 

Now I do not get a edit button on missing tiddlers when I open the 
corresponding link and want to start editing this tiddler. But I do want to be 
able to edit these Drafts unless they are marked with „locked“ (which cannot 
be, since they are missing tiddlers …)

 

Any hints again?

 

Von: tiddlywiki@googlegroups.com [mailto:tiddlywiki@googlegroups.com] Im 
Auftrag von Tobias Beer
Gesendet: Dienstag, 29. September 2015 17:48
An: TiddlyWiki 
Cc: jonathanh...@wolke7.net
Betreff: Re: [tw] Re: [TW5] How to protect single tiddlers from editing by 
password

 

Hi Jonathan,

 

you mean "[all[current]!tag[locked]]" (tag, not tagging), right?


That's right, using the tagging filter for that purpose only works like so...

<$list filter="[all[current]]-[tagging[locked]]">

 


But it's not as efficient as using the tag filer, so... ;-)

How do i prevent my login tiddler of getting saved, so that the wiki
starts with an empty input field in the login tiddler, even if the
password was entered before the last saving?

 

Revisit 3) 
  up above 
again...

Best wishes,

 

— tb 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com 
 .
To post to this group, send email to tiddlywiki@googlegroups.com 
 .
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f370e529-a580-4255-8e5d-a892224b069c%40googlegroups.com
 

 .
For more options, visit https://groups.google.com/d/optout.

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/012e01d11ccd%2453661f10%24fa325d30%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: [TW5] How to protect single tiddlers from editing by password

2015-09-29 Thread jonathanhaug
Tobias,

 

thanks a lot, you’re great a help!

 

Jonathan

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/002001d0fb3c%24e152e4a0%24a3f8ade0%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] How to protect single tiddlers from editing by password

2015-09-28 Thread jonathanhaug
Hi Tobias,

 

thanks for your detailed explanations. I do learn a lot in hacking tw5 by 
reading your comments.

 

But… with your approach I would allow editing – but prevent saving.

 

IMHO this is one step too late. Why would I allow editing a tiddler if i knew 
already that the user is not allow to save his editing?

 

Thus, once again my question:

How would I 

*   allow a user to read a special tagged tiddler, but …

*   prevent him from editing this tiddler by …

*   asking for a password when he clicks the edit button, but still keep …

*   the normal behaviour with un-tagged tiddlers.

 

I’m looking for a behaviour just like the „Encrypt single tiddler“ plugin, with 
the only exception that one can read a „encrypted“ tiddler without a password – 
but have to enter the password to enable editing.

 

Hoping for help and thanks  again

 

Jonathan



-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/006f01d0fa24%24dff868f0%249fe93ad0%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.


AW: [tw] [TW5] How to protect single tiddlers from editing by password

2015-09-27 Thread jonathanhaug
Hi Danielo,

sure, there is no real protection, but I a have small userbase and I'm just 
trying to prevent accidential editing.
The wiki resides on a sharded folder in a windows network.

Do you mean, " There are different levels of read only" in your single tiddler 
encryption plugin?

-Ursprüngliche Nachricht-
Von: tiddlywiki@googlegroups.com [mailto:tiddlywiki@googlegroups.com] Im 
Auftrag von Danielo Rodríguez
Gesendet: Sonntag, 27. September 2015 17:05
An: TiddlyWiki 
Betreff: [tw] [TW5] How to protect single tiddlers from editing by password

How are your users accessing the wiki? There are different levels of read only, 
but unless you are serving your wiki from a server it's more or less impossible 
to protect the wiki against reads. How would you protect a .txt file from 
edition for example? 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b6a50905-dd5c-4b4f-befa-f3e09df37558%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/001c01d0f947%240e3234f0%242a969ed0%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.


AW: [tw] [TW5] How to protect single tiddlers from editing by password

2015-09-27 Thread jonathanhaug
Hi,

 

no, there isn’t any multi-user workflow. 

Users are just accessing the html-file on a shared space.

 

I just want to have a pop-up saying „please enter password“ when someone tries 
to edit the tagged tiddlers.

How would I achieve that?

 

Matabele, putting them into a plugin sounds to complicated since from time to 
time there will new tiddlers get tagged with „locked“.

 

 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/005e01d0f9aa%24806cb9b0%2481462d10%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.


[tw] WG: [TW5] Hide the edit button in tagged tiddlers

2015-09-26 Thread jonathanhaug
 

 

Hi Ton,

 

thanks, this looks like the perfect solution.

 

Cu

Jonathan

 

Von: Ton Gerner [mailto:ton.ger...@gmail.com] 
Gesendet: Samstag, 26. September 2015 16:25
An: TiddlyWiki < >
Cc: jonathanh...@wolke7.net  
Betreff: Re: [TW5] Hide the edit button in tagged tiddlers

 

Hi Jonathan,

You can style certain tagged tiddlers in a special way 
 , see 

So, if these tiddlers are tagged 'locked' you can create tiddler e.g. Locked 
style, tagged with $:/tags/Stylesheet and containing:

.tc-tagged-locked svg.tc-image-edit-button {
 display: none;
}


This does the trick.

Cheers,

Ton


On Saturday, September 26, 2015 at 3:16:36 PM UTC+2, Jonathan Haug wrote:


Dear all, 

could someone help me with the following task: 

I want to *hide the edit button* in some specific tiddlers, which I 
marked with the tag "locked". 
This is to prevent accidental editing of important content. 

Use case: I want to build a knowledge base wiki for multiple users. Most 
tiddlers should be free to edit, but some tiddlers are reserved for 
critical informations which should not be edited. 

I'm aware of the fact, that this is not a perfect protection, but that 
would be fine for me. 
The tiddlywiki-html-file resides on a shared folder within a 
Windows-Network. 

So, my question is: How do I hide the edit button on *some* tiddlers? 

Thanks in advance 

Jonathan 





-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/010301d0f8a6%24ba6bf040%242f43d0c0%24%40wolke7.net.
For more options, visit https://groups.google.com/d/optout.