Changing default (home) page

954 views
Skip to first unread message

James Mars

unread,
Sep 2, 2014, 8:35:11 PM9/2/14
to tiddl...@googlegroups.com
Hi,
I am using node.js and I would like to replace the default page with a custom one. I have the following files setup:
tiddlers/ui/$__DefaultTiddlers.tid
tiddlers/ui/$__SiteTitle.tid
tiddlers/ui/Home.tid

but the original page keeps showing up.

James Mars

unread,
Sep 2, 2014, 8:46:20 PM9/2/14
to tiddl...@googlegroups.com
The content of "DefaultTiddlers.tid" is:

created: 20140616084350909
modified: 20140616084429701
title: $:/DefaultTiddlers
type: text/vnd.tiddlywiki

[[Home]]
~       

Andreas Hahn

unread,
Sep 2, 2014, 8:46:47 PM9/2/14
to tiddl...@googlegroups.com
Hi James,

what excactly are you trying to do here ?
You can change the default tiddlers within the ControlPanel, but I am guessing thats not what you want to archieve here. Can you elaborate on what your goal is ?

/Andreas
--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

James Mars

unread,
Sep 2, 2014, 8:54:15 PM9/2/14
to tiddl...@googlegroups.com
Hi Andreas,

You know the first page that comes up with you start up tiddlywiki, well, I am trying to replace that page with a page of my own (based on Alberto Molina's tiddlywiki: http://tw5.scholars.tiddlyspot.com/). See how he has a custom index page ("What is this"). I have the page Home.tid already set up.. I thought all one had to do was to define it in DefaultTiddlers.tid in order to have it show up as the index page.

Andreas Hahn

unread,
Sep 2, 2014, 9:11:50 PM9/2/14
to tiddl...@googlegroups.com
Hi James,

well you can change those from within the wiki in the ControlPanel under the 'Basics' tab. I would not recommend doing this within the filesystem, since its much nicer to do it in the wiki itself and node.js will automatically save it in the right place.


// Ignore the following part, if it confuses you
{{{
The right place would be in
/tiddlywiki-nodejs/YOURWIKINAME/tiddlers/DefaultTiddlers.tid
since all tiddlers associated with your wiki are stored there, including system/shadow tiddlers which have been overwritten.

Note that for this you do need to have created a wiki with

> node tiddlywiki.js YOURWIKINAME --init server

first. (And then of course run it and modify it)

}}}

/Andreas

James Mars

unread,
Sep 2, 2014, 9:35:16 PM9/2/14
to tiddl...@googlegroups.com
Hi,

I did it as you suggested, via the control panel, and in "Choose which tiddlers are displayed at startup" I have "Home" defined. When I open the page Home.tid directly, it shows up fine. But still, I get the default "Getting Started" and no Home page.

Andreas Hahn

unread,
Sep 2, 2014, 9:40:13 PM9/2/14
to tiddl...@googlegroups.com
Hi James,

does the Home tiddler exist within the wiki ? And is "Home" its complete
name ? Also did you remove the GettingStarted tiddler from the list ?

/Andreas

P.S.: If the tiddler is named Home.tid within the wiki, you would have
to put "Home.tid" into the list, however there is no point in having the
.tid extension within the wiki.

James Mars

unread,
Sep 2, 2014, 9:58:51 PM9/2/14
to tiddl...@googlegroups.com

Hi, Yes it does... I have no problem accessing/displaying it inside the wiki directly (ie, via the search panel). Its complete name is "Home.tid" but defined as "Home" in the startup page list. The "GettingStarted" page is not in the list.. there is only Home there, and Home doesn't open at all on startup. It seems that the system is not paying any attention to the file DefaultTiddlers (even when modified via the control panel). Anyway, maybe I should just start with a fresh copy of tiddlywiki.
Message has been deleted
Message has been deleted

James Mars

unread,
Sep 2, 2014, 11:19:22 PM9/2/14
to tiddl...@googlegroups.com
Hi,

I created a new test node.js wiki (initialized then started it). Created a tiddler "Homepage" within the wiki and saved it. Went to the control panel, replaced "GettingStarted" with "Homepage" in the startup list, then went to save it (using the save -red- icon on the right menu), then firefox opens up the saving dialog box asking where I would like to save the html file. I save it, but nothing changes. That firefox is asking where to save a html file whenever I try to save a change via the control panel looks a little strange.. is this the default behaviour?

James Mars

unread,
Sep 2, 2014, 11:29:55 PM9/2/14
to tiddl...@googlegroups.com
Thanks for your help Andreas.. I found the problem.. Bookmark to access tiddlywiki had GettingStarted in its url.. oops :)

James

Eric Shulman

unread,
Sep 3, 2014, 1:14:36 AM9/3/14
to tiddl...@googlegroups.com
On Tuesday, September 2, 2014 8:19:22 PM UTC-7, James Mars wrote:
...firefox is asking where to save a html file whenever I try to save a change...

This would indicate that you are using Firefox without the TiddlyFox add-on that enables direct file I/O.  Without TiddlyFox, Firefox falls back to using its built-in "download saver", which *mimics* a remote download so that you can still save the updated TiddlyWiki file on your local system.  If you install TiddlyFox (or use the stand-alone TiddlyDesktop application), you can get more robust, *direct* file I/O handling, without having to interact with a dialog box each time you save your changes.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:

PMario

unread,
Sep 3, 2014, 4:49:43 AM9/3/14
to tiddl...@googlegroups.com
On Wednesday, September 3, 2014 5:29:55 AM UTC+2, James Mars wrote:
Thanks for your help Andreas.. I found the problem.. Bookmark to access tiddlywiki had GettingStarted in its url.. oops :)

Hi James,
Which TW version do you use?

... There has been a version, that automatically update the browser URL bar with the open story.
If you bookmark the story and use it to open your TW, it will ignore the DefaultTiddlers setting. ... as you found out.
The URL update behaviour can be changed in the Control Panel: Advanced: Settings tab
Starting with 5.0.15 the automatic update was disabled by default, because it caused some confusion.

have fun!
mario

James Mars

unread,
Sep 3, 2014, 8:43:29 AM9/3/14
to tiddl...@googlegroups.com
Hi Eric,

Thanks.. am going to install it.

James Mars

unread,
Sep 3, 2014, 8:46:50 AM9/3/14
to tiddl...@googlegroups.com
Hi Mario,

I am using 5.0.16. Thanks for the tip.

Does anyone know if Matabele's Maketid plugin is fully compatible with 5.0.16?

Danielo Rodríguez

unread,
Sep 3, 2014, 5:15:42 PM9/3/14
to tiddl...@googlegroups.com
People should read release notes. Currently any of the existing plugins developed by the community works with 5.0.16. And it will take a long time until all of them are adapted.

James Mars

unread,
Sep 3, 2014, 7:30:04 PM9/3/14
to tiddl...@googlegroups.com
Hi,

Ideally yes.. and in an ideal world, people should not assume that other people have not read release notes. :)
Did you mean to say "all" or "none" in your sentence "currently .... of the existing". The reasons am asking, is that it seems that my use of the plugin is not working, so I wanted to know if it had to do with the upgrade or a coding error on my part. Also, the plugin still uses the tw prefix.. does that make a difference?
Reply all
Reply to author
Forward
0 new messages