Hi David,

The PageTemplate defines the overall structure of the page.
*PageTemplate:displayArea:tiddlerDisplay  .. is responsible for the
tiddler stuff

The tiddler display is defined in the ViewTemplate
*ViewTemplate:
   toolbar .. defines the tiddler toolbar with edit, close ...
   title .. defines the tiddler title
   subtitle .. modifier, date ...
   ...
   viewer .. "macro='view text wikified' renders the tiddler content

The style definitions are in StyleSheetLayout which is a "protected /
shadow" tiddler which defines the default values
If you want to make changes, use StyleSheet to define your values.

On Jan 2, 1:33 am, David <[email protected]> wrote:
> I've dug through these posts but I'm still not clear on this. I want
> to put a div somewhere on my PageTemplate and have one single tiddler
> appear in that div. I can get the contents of the tiddler to do so,
> but I can't seem to get the other elements (such as the title and the
> date line) to appear also.

As I mentioned above, if you want to have titel, modifieer, date .. it
needs title, subtitel div also.

>I've seen bits here and there about the
> with: params, but I'm still not clear on the syntax. Editing is not
> necessary in the div element, just rendering the tiddler and all of
> its parts as it would appear in the main story.

I think it need a new / extended viewTemplate

> Also, I'm not clear on whether there is any difference between

> <div id="someDiv" macro="tiddler someTiddler"></div>

macro= "anyMacro anyMacroParameter" .. will execute the anyMacro with
its anyMacroParameters, if the content is rendered by the core.

> or
> <div id="someDiv" tiddler="someTiddler"></div>

eg: <div id='mainMenu' refresh='content' tiddler='MainMenu'></div>
if the tiddler='MainMenu' is changed/edited the div id='mainMenu' will
be refreshed automatically by the core.

> And at the risk of asking too many questions at once, the standard
> layout in PageTemplate uses several divs that do not have an obvious
> function on their own, such as #mainMenu, #sidebar and #displayArea.

the div ids are used by the core. the default style is defined in
StyleSheetLayout. If you want to change it use StyleSheet which
overwrites StyleSheetLayout.

> Are these just wrappers used for positioning their containing
> elements, or does the core code or plugins expect them to be there for
> a specific purpose?

you can remove most of them in PageTemplate if you want. But I would
suggest to hide them if you don't need them. Because in the future you
may want them back :) There are a lot of plugins/transclusions [1]
which can be used.

> Thanks for giving up part of your holiday to help me with this. Happy
> New Year!

A Happy New Year

I made a step by step howTo which deals with plugins and some aspects
of the TW layout. May be it can answere some questions. [2-4]

AND: If you tell us a little more details about your "permanent"
tiddler. What it should do, or display and where it should appear, may
be, there is already a solution.

regards Mario
[1] http://a-pm.tiddlyspot.com  ... see the top menue

see: http://www.tiddlytools.com .. search for "transclusion"

[2] http://a-pm-part1.tiddlyspot.com ... start of a 3 part howto
[3] http://a-pm-part2.tiddlyspot.com ... inserting some additional
plugis + StyleSheet + Template
[4] http://a-pm-part3.tiddlyspot.com ... 3rd part of the howto

--

You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.


Reply via email to