List Info

Thread: Re: Feature Request for tagglytagging plugin




Re: Feature Request for tagglytagging plugin
user name
2008-01-21 04:23:58
Look for the following code in TagglyTaggingPlugin. It's in the getExcerpt function.

	var marker = text.indexOf(this.config.excerptMarker);
if (marker != -1) {
return " {{excerpt{ <nowiki>&quot; + text.substr(0,marker) + "</nowiki>}}}&quot;;
}

Delete the highlighted "<nowiki>&quot; and "</nowiki>". (Be careful to not delete the quotes)

Save and reload.

The reason I've done it that way is because wiki markup in the tagging lists can cause formatting problems. Especially if the excerpt cuts off mid-way though a particular wiki markup element.

Simon.

On Jan 21, 2008 6:40 PM, pepebe < pepebegmx.de">pepebegmx.de>; wrote:

Simon

Thx Simon!

Inserting  /%%/ into a tiddler to control excerpt behaviour worked
like a charm.

Because I had already written one-paragraph excerpts at the beginning
of each tiddler, I went for the excerptMarker instead and changed
excerptMarker: "/%&quot;+"%/" with excerptMarker: "n&quot;. As you had
suspected, suddenly everything felt into place. Quite neat!

Something I have noticed: Markers for layout control are also shows by
an excerpt. So if I write //test// into a tiddler, the excerpt will
show exactly that. I don't mind if the excerpt isn't written in italic
(in fact I'm glad they don't ) but I don't want to see the slashes
because I was pondering about putting excerpts within special <div>; or
<span> containers by using {{excerpt{Test}}} syntax, but right now
this really messes things up. Any idea what to about that?

Cu,

pepebe

On 18 Jan., 16:30, "Simon Baird"; < simon.ba...gmail.com">simon.ba...gmail.com> wrote:
>; Firstly there is a think called excerpt marker. By default it is this:
&gt; /%%/
>
> If you put that somewhere in your tiddler then the excerpt will be
> everything before that marker.
&gt;
> Secondly you could probably get the behaviour you want (display first
&gt; paragraph) by changing the value of excerptMarker to "nn&quot;
>
&gt; Look for this:
>
> excerptMarker: "/%&quot;+"%/"
&gt;
> Change it to this:
>
> excerptMarker: "nn&quot;
>
> I have not tested this but I think it will work.
>
> Glad you like the MPTW.
>
> Simon.
>;
> On Jan 4, 2008 8:15 PM, pepebe < pep...gmx.de"> pep...gmx.de>; wrote:
>;
>
>
>
>
> > Simon Baird: Thanks! I really appreciate your tagglytagging plugin.
&gt; > While working with MPTW I have noticed how much I rely on
> > tagglytagging. Quite neat!
>
> > I love the "excerpts" feature and immediately after I realized that it
> > was there restructured most of my tiddlers with tiny "appetizers";.
> > Later, I have noticed that you can alter the amount of characters an
> > excerpt will show (another great feature). After working for a while,
>; > quite content with life and tagglytagging, I wondered if it would be
> > possible to show instead of a set number of characters the first
> > paragraph of a tiddler.
&gt;
> > Question to Simon and those other wizkids here: Wouldn';t that be an
> > interesting feature to implement? I sure think so, but I don't have a
> > clue how difficult it would be to do...
>
> > Greetings,
>
> > pepebe
>;
> --
> simon.ba...gmail.com">simon.ba...gmail.com



--
simon.bairdgmail.com">simon.bairdgmail.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TiddlyWiki"; group.
To post to this group, send email to TiddlyWikigooglegroups.com
To unsubscribe from this group, send email to TiddlyWiki-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Re: Feature Request for tagglytagging plugin
user name
2008-01-21 08:17:31
Thx Simon.

Though this will the excerpt display with the same css like
the
original span or div, I can change that with a simple

.excerpt * {some css styles...}

within the Stylesheet tiddler.

This solves all my problems.

If you fancy a postcard from one of your fans, send me your
address.

Greetings,

pepebe

On 21 Jan., 11:23, "Simon Baird"
<simon.ba...gmail.com> wrote:
> Look for the following code in TagglyTaggingPlugin.
It's in the getExcerpt
> function.
>
>         var marker =
text.indexOf(this.config.excerptMarker);
>         if (marker != -1) {
>                 return "
{{excerpt{<nowiki>" + text.substr(0,marker) +
"</nowiki>}}}";
>         }
>
> Delete the highlighted "<nowiki>" and
"</nowiki>". (Be careful to not delete
> the quotes)
>
> Save and reload.
>
> The reason I've done it that way is because wiki markup
in the tagging lists
> can cause formatting problems. Especially if the
excerpt cuts off mid-way
> though a particular wiki markup element.
>
> Simon.
>
> On Jan 21, 2008 6:40 PM, pepebe <pep...gmx.de> wrote:
>
>
>
>
>
> > Simon
>
> > Thx Simon!
>
> > Inserting  /%%/ into a tiddler to control excerpt
behaviour worked
> > like a charm.
>
> > Because I had already written one-paragraph
excerpts at the beginning
> > of each tiddler, I went for the excerptMarker
instead and changed
> > excerptMarker: "/%"+"%/" with
excerptMarker: "n". As you had
> > suspected, suddenly everything felt into place.
Quite neat!
>
> > Something I have noticed: Markers for layout
control are also shows by
> > an excerpt. So if I write //test// into a tiddler,
the excerpt will
> > show exactly that. I don't mind if the excerpt
isn't written in italic
> > (in fact I'm glad they don't ) but I don't want to
see the slashes
> > because I was pondering about putting excerpts
within special <div> or
> > <span> containers by using {}
syntax, but right now
> > this really messes things up. Any idea what to
about that?
>
> > Cu,
>
> > pepebe
>
> > On 18 Jan., 16:30, "Simon Baird"
<simon.ba...gmail.com> wrote:
> > > Firstly there is a think called excerpt
marker. By default it is this:
> > > /%%/
>
> > > If you put that somewhere in your tiddler
then the excerpt will be
> > > everything before that marker.
>
> > > Secondly you could probably get the behaviour
you want (display first
> > > paragraph) by changing the value of
excerptMarker to "nn"
>
> > > Look for this:
>
> > > excerptMarker: "/%"+"%/"
>
> > > Change it to this:
>
> > > excerptMarker: "nn"
>
> > > I have not tested this but I think it will
work.
>
> > > Glad you like the MPTW.
>
> > > Simon.
>
> > > On Jan 4, 2008 8:15 PM, pepebe <pep...gmx.de> wrote:
>
> > > > Simon Baird: Thanks! I really appreciate
your tagglytagging plugin.
> > > > While working with MPTW I have noticed
how much I rely on
> > > > tagglytagging. Quite neat!
>
> > > > I love the "excerpts" feature
and immediately after I realized that it
> > > > was there restructured most of my
tiddlers with tiny "appetizers".
> > > > Later, I have noticed that you can alter
the amount of characters an
> > > > excerpt will show (another great
feature). After working for a while,
> > > > quite content with life and
tagglytagging, I wondered if it would be
> > > > possible to show instead of a set number
of characters the first
> > > > paragraph of a tiddler.
>
> > > > Question to Simon and those other
wizkids here: Wouldn't that be an
> > > > interesting feature to implement? I sure
think so, but I don't have a
> > > > clue how difficult it would be to do...
>
> > > > Greetings,
>
> > > > pepebe
>
> > > --
> > > simon.ba...gmail.com
>
> --
> simon.ba...gmail.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "TiddlyWiki" group.
To post to this group, send email to TiddlyWikigooglegroups.com
To unsubscribe from this group, send email to
TiddlyWiki-unsubscribegooglegroups.com
For more options, visit this group at http:
//groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )