Re: [tw] [TW5] Transcluded object frame for pdf and web pages

2014-06-14 Thread andrew harrison
 Thanks Jeremy for the heads up about the new external tiddler feature
coming. I look forward to it. Until then I continued working on my object
viewer.
I've moved styling to my stylesheet and with some additional I'm now happy
with how it looks at least on my tablet. I hope it doesn't break or
interfere with TW5 internal workings.
This viewer displays either pages or files within an object frame. The view
fills and still has rounded corners.

Here is what I have so far:

$:/stylesheet

/* TIDDLERS WITH OBJECT VIEWER WITH ROUNDED CORNERS */
html .tw-object-frame {
 border-bottom-right-radius: 1em;
 border-bottom-left-radius: 1em;
 -moz-border-radius-bottomright: 1em;
 -moz-border-radius-bottomleft: 1em;
 webkit-border-bottom-right-radius: 1em;
 webkit-border-bottom-left-radius: 1em;
 margin: 0 -42px -61px -42px;
 width: calc(100% + 84px);
 min-height: 80%;
}

$:/objectframe

\define objfra() [[$(title)$|$(path)$]] 

<>

Tiddler with transcluded object frame template

<$set name="path" value="http://www.tiddlywiki.com";>
<$set name="title" value={{!!title}}>
{{$:/objectframe}}




My working example: http://t3d.tiddlyspot.com/#Tiddlywiki

Any suggestions welcome.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] [TW5] Transcluded object frame for pdf and web pages

2014-06-14 Thread Jeremy Ruston
Hi Andrew

The new external tiddler feature coming in 5.0.13 looks like it might be
useful for you.

For image tiddlers (gif, jpg, pdf, png etc.) and HTML tiddlers, you can now
set a field called "_canonical_uri" that points to the actual content of
the tiddler (the text field is ignored, and so should be omitted). These
external tiddlers are viewed as an IMG, EMBED or IFRAME as appropriate. You
can see an experiment here:

https://twitter.com/TiddlyWiki/status/476990101269282816

Under Node.js there is support for building a standalone HTML file with
selective external tiddlers; the images are automatically copied to an
/images/ folder.

Best wishes

Jeremy.





On Sat, Jun 14, 2014 at 8:00 PM, andrew harrison <
andrew.j.harriso...@gmail.com> wrote:

> Hi again,
>  My frame viewer displays either pages or files within an object frame.
>  I'm having trouble with the styling. I know it should be moved to the
> stylesheet if deviating from native styling. I was hoping there is existing
> classes that I could use? I wish there was a list somewhere. I wanted it to
> expand to the full size of the tiddler except at the top for the title and
> link with no padding on the sides and bottom and still have rounded corners.
>  Here is what I have so far:
>
> $:/objectframe
>
> \define objfra() [[$(title)$|$(path)$]]  data="$(path)$" style="width:100%;height:545px;">
>
> <>
>
> Tiddler with transcluded object frame template
>
> <$set name="path" value="http://www.tiddlywiki.com";>
> <$set name="title" value={{!!title}}>
> {{$:/objectframe}}
> 
>
> 
>
> My working example: http://t3d.tiddlyspot.com/#Tiddlywiki
>
> Any suggestions welcome.
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] Transcluded object frame for pdf and web pages

2014-06-14 Thread andrew harrison
Hi again,
 My frame viewer displays either pages or files within an object frame.
 I'm having trouble with the styling. I know it should be moved to the
stylesheet if deviating from native styling. I was hoping there is existing
classes that I could use? I wish there was a list somewhere. I wanted it to
expand to the full size of the tiddler except at the top for the title and
link with no padding on the sides and bottom and still have rounded corners.
 Here is what I have so far:

$:/objectframe

\define objfra() [[$(title)$|$(path)$]] 

<>

Tiddler with transcluded object frame template

<$set name="path" value="http://www.tiddlywiki.com";>
<$set name="title" value={{!!title}}>
{{$:/objectframe}}




My working example: http://t3d.tiddlyspot.com/#Tiddlywiki

Any suggestions welcome.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] Transcluded object frame for pdf and web pages

2014-06-11 Thread Andrew
I'm still working on upgrading my TWC to TW5 and I have another transclusion 
that I'm trying to figure out how to re-create. I follow emails but there is so 
much that I still don't understand. Here is what I had in TWC after I installed 
aliasplugin by Eric Shulman:

[[Stylesheet]]
.frameviewer {margin-left:-3%;
     margin-right:-5%;}
.tagged {display:none;}
.fix {z-index:-1;}

[[PageTemplate]] placed before content


[[SetTransclusion]]
<\>"}}>>

[[HTMLViewer]]
[[$1|$2]]

[[Tiddler where the object viewer is transcluded]]
<>
/%consolidated text block meta file content from the transcluded page or file 
with spaces and duplicate words removed so the content is searchable within 
tiddlywiki but compressed%/

I am using IE9 so please forgive me if this doesn't work in other browsers. I'm 
trying to do the same in TW5. Anyone?

Sent from my Sprint tablet

-- 
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.
For more options, visit https://groups.google.com/d/optout.