Using tiddler content in another webpage.

8 views
Skip to first unread message

justin.keogh

unread,
Apr 20, 2008, 2:32:06 PM4/20/08
to TiddlyWikiDev
I would like to use tiddleywiki as a back end management system for a
website. To do this I need a way to render the content of a tiddler
without all the surrounding items usually seen on a tiddleywiki like
the tiddler title, mainmenu, site title, edit, permalink, ect. In
short I want a way to reference _only_ the content of a tiddler. What
I am looking for would be much like a permalink, but without the
surrounding tiddleywiki, just the content. So a blank tiddler
referenced in this way would produce a blank page.

I have some programming experience, if this feature is not available I
would appreciate any tips on where to start if I am going to implement
this myself.

Awesome software BTW, thank you! -Justin Keogh

FND

unread,
Apr 20, 2008, 2:43:05 PM4/20/08
to Tiddly...@googlegroups.com
> I need a way to render the content of a tiddler
> without all the surrounding items usually seen on a tiddleywiki like
> the tiddler title, mainmenu, site title, edit, permalink, ect. In
> short I want a way to reference _only_ the content of a tiddler.

You might wanna take a look at TiddlyWeb:
http://www.tiddlywiki.org/wiki/Dev:TiddlyWeb
http://groups.google.com/group/TiddlyWikiDev/t/f075630bd1e5564e/
TiddlyWeb is trying to be RESTful, so tiddlers are (or will be?)
accessible via a simle URI.
I'm sure Chris would be very much interested in your feedback!


-- F.

FND

unread,
Apr 20, 2008, 2:57:55 PM4/20/08
to Tiddly...@googlegroups.com
> I need a way to render the content of a tiddler
> without all the surrounding items usually seen on a tiddleywiki

TiddlyTemplating might be of interest as well:
http://tinyurl.com/6yscb6
(http://www.tiddlywiki.org/wiki/IWantABlog#Plugins_core_to_TiddlyTemplating)
http://tinyurl.com/2noq5f
(http://jaybyjayfresh.com/2008/01/23/tiddlytemplating-using-tiddlywiki-to-create-webpages/)

I understand there was a successful test run of this technique only a
few days ago - maybe Jon could elaborate on that (and maybe even add
some instructions to the community wiki*)?


-- F.


* http://www.tiddlywiki.org/wiki/TiddlyWiki_As_a_Website

justin.keogh

unread,
Apr 20, 2008, 4:02:38 PM4/20/08
to TiddlyWikiDev
No doubt I'm missing a concept here.. but how would the URI differ
from a permalink?

chris...@gmail.com

unread,
Apr 20, 2008, 4:28:07 PM4/20/08
to TiddlyWikiDev


On Apr 20, 9:02 pm, "justin.keogh" <justin.ke...@gmail.com> wrote:
> No doubt I'm missing a concept here.. but how would the URI differ
> from a permalink?

Current permalinks for tiddlers are embedded in the full html page of
the tiddlywiki. In TiddlyWeb you can reference tiddlers by that style
of URI, but you can also the tiddler directly, and retrieve various
representations. Try these:

http://peermore.com:8080/recipes/AutoTiddlyWeb.wiki#PlayAround
http://peermore.com:8080/bags/TiddlyWeb/tiddlers/PlayAround.html
http://peermore.com:8080/bags/TiddlyWeb/tiddlers/PlayAround.wiki
http://peermore.com:8080/bags/TiddlyWeb/tiddlers/PlayAround.txt

The one that ends in .html is not actually HTML as it would be
formatted during the tiddlywiki wikify process, but rather the content
that would be found inside the storeArea <div> in a TiddlyWiki file.
At some point there will be a way to retrieve wikified HTML, but as
far as I know there's not yet a serverside formatter, so we need to
get that going. It should happen sometime this year.

Eric Shulman

unread,
Apr 20, 2008, 6:30:19 PM4/20/08
to TiddlyWikiDev
> website. To do this I need a way to render the content of a tiddler
> without all the surrounding items usually seen on a tiddleywiki like
> the tiddler title, mainmenu, site title, edit, permalink, ect. In
> short I want a way to reference _only_ the content of a tiddler. What

If I understand you correctly: you want to create a bunch of tiddlers,
and then display them as 'pure content' without any of the surrounding
TiddlyWiki interface elements. One way to achieve this is to define
some a custom stylesheet that just **hides everything but the tiddler
content**

Here's a 'systemTheme' tiddler that does precisely that:

http://www.TiddlyTools.com/#TotallyTiddlers

After you import this tiddler into your own document, you can easily
apply the theme on a temporary basis by simply appending
#theme:TotallyTiddlers
to the end of your document URL, and you can also include a permalink
to specify the initial tiddler you want to display. For example:

http://www.TiddlyTools.com/#theme:TotallyTiddlers%20open:About

will open TiddlyTools and display only the content of the [[About]]
tiddler, with *no* other TiddlyWiki interface elements whatsoever!
Once the [[About]] tiddler is displayed, you can then use links from
*within* that content to navigate to different tiddlers in the
document... (try the link to [[ELSDesignStudios]]).

To make the site behave more like a typical website that only shows
one page at a time, you can also install
http://www.TiddlyTools.com/#SinglePageModePlugin
which can be activated via the URL by adding
#SPM:true

Like this:
http://www.TiddlyTools.com/#theme:TotallyTiddlers%20open:About%20SPM:true

With SPM enabled, you can even use the browser's forward/back buttons
to navigate to previously visited tiddlers (within the same browsing
session, of course).

To make these settings the default, so that visitors to your site
won't ever see the standard TiddlyWiki interface, you can hard-code
the theme: and SPM: values by creating a tiddler (e.g.,
[[ConfigTweaks]]), tagged with "systemConfig", containing:
--------------------
config.options.txtTheme="TotallyTiddlers"
config.options.chkSinglePageMode=true;
--------------------
Then, the next time you load your document, you can just use a regular
permalink (without the theme: or SPM: "paramifiers'), like this:

http://www.example.com/#About

Of course, when *you* want to edit the document, you will need to have
the rest of the TW interface visible. To temporarily bypass the
txtTheme setting hard-coded in [[ConfigTweaks]], you can use the
theme: paramifier, and specify the name of a non-existent theme, so
that the default CSS styles are applied and the standard interface
will be displayed, like this:

http://www.example.com/#theme:foobar

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Eric Shulman

unread,
Apr 20, 2008, 6:37:21 PM4/20/08
to TiddlyWikiDev
> With SPM enabled, you can even use the browser's forward/back buttons
> to navigate to previously visited tiddlers (within the same browsing
> session, of course).

Minor glitch with SinglePageModePlugin: if you use the browser's back
button to return to the first tiddler that was displayed, SPM doesn't
(currently) handle the extra theme: and SPM: paramifiers properly and
attempts to display them as tiddlers. Fortunately, if you have used
the 'hard-coded' [[ConfigTweaks]] to set the theme: and SPM: values by
default, so they are not part of the original URL used to load the
page, then SinglePageMode properly re-displays the initial tiddler
when "back" is pressed. I will be fixing this shortly.

-e

JayFresh - http://jayfresh.wordpress.com

unread,
Apr 24, 2008, 10:24:32 AM4/24/08
to TiddlyWikiDev
Hi Justin,

Just to summarise the three options suggested to you:

1) TiddlyWeb: this is the most server-to-server friendly
implementation, as it lets you pull tiddler content on-demand from the
server, effectively opening up the tiddler storage to other
applications

2) TotallyTiddlers / SinglePageMode: uses a full TiddlyWiki file and
restricts the display of tiddlers to show one at a time without any of
the standard interface wrapped around it

3) TiddlyTemplating (http://www.tiddlywiki.org/wiki/TiddlyTemplating):
uses TiddlyWiki to create static webpages. The content and appearance
is configured within TiddlyWiki and the output is static html files



J.

On Apr 20, 7:57 pm, FND <F...@gmx.net> wrote:
> > I need a way to render the content of a tiddler
> > without all the surrounding items usually seen on a tiddleywiki
>
> TiddlyTemplating might be of interest as well:
> http://tinyurl.com/6yscb6
> (http://www.tiddlywiki.org/wiki/IWantABlog#Plugins_core_to_TiddlyTempl...)
> http://tinyurl.com/2noq5f
> (http://jaybyjayfresh.com/2008/01/23/tiddlytemplating-using-tiddlywiki...)
Reply all
Reply to author
Forward
0 new messages