Both the view and transclude widgets display their content if the target
tiddler doesn't exist. That means you can do things like this:
<$transclude tiddler={{!!picture}}>No picture provided</$transclude>
Best wishes
Jeremy
On Mon, Jun 16, 2014 at 2:08 PM, Danielo RodrÃguez <[email protected]>
wrote:
> Hello everybody,
>
> I'm building a contacts database wich includes pics. I would like to
> display a picture for each contact. I would like to show a default picture
> for those persons that doesn't have a picture tiddler. How can I achieve
> this? I tried with all kind of things and filters.
>
> Here is an example of what i tried:
>
> \define pic() {{$(pictureName)$.jpg}}
> \define picfilter() [title{$(pictureName)$.jpg}is[tiddler]]]
>
> <$set name="pictureName" value={{!!title}}>
> {{!!title}} <$list filter=<<picfilter>> emptyMessage=",,NoPic,,"
> variable="picName">[[!!picName]]</$list></$set>
>
> Thanks in advanc.e
>
> --
> 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 post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/tiddlywiki.
> For more options, visit https://groups.google.com/d/optout.
>
--
Jeremy Ruston
mailto:[email protected]
--
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.