Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2006-06-08 19:32:08

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

reid wrote:

This community really needs a central repository for plug-ins, independent of the developers themselves, where plug-ins will not disappear for vague reasons. One would think if someone creates or takes over a plug-in, they’d make sure it stays available. But this happens all too often around here.

A-f***n-men! I’ve been advocating the very same thing for a while now…something Txp hosted and database driven would be awesome; most likely a custom database for plugin archival/management, and a custom interface for smart searching the darn thing right (multiple field combinations)!

I’ve even been suggesting that the textpattern.org domain perhaps be revamped for it, since that site is mostly used for plugins now anyway (but not nearly as effectively as what Reid and I hear are getting at).

Plugin database design, anyone?

Ahh, what am I waiting for, this is a project going into TextBook for brainpooling right now. People can at least start talking about how such a database would be designed for maximum utility and usability. See the starter link here!

Offline

#17 2006-06-08 22:19:54

reid
Member
From: Atlanta, Ga.
Registered: 2004-04-04
Posts: 224
Website

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

Well, it would seem most efficient for textpattern.org to have the plugin.txt file archived and linked within the posting about it. Adding it to the database would be ideal, if more complex. But simply archiving static *.txt files would work, too.


TextPattern user since 04/04/04

Offline

#18 2006-06-08 23:05:03

yhugo
Member
From: Québec, Qc
Registered: 2006-01-17
Posts: 18
Website

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

nardo wrote:

download URL appears broken – can anyone assist?

Hum … i need it too …

thanx

yhugo


«Là où croît le péril, croît aussi ce qui sauve.»

- Friedrich Hölderlin -

Offline

#19 2006-06-09 05:57:34

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

reid wrote:

Well, it would seem most efficient for textpattern.org to have the plugin.txt file archived and linked within the posting about it. Adding it to the database would be ideal, if more complex. But simply archiving static *.txt files would work, too.

Yeah, that’s the idea; getting the file in there from the beginning (and keeping it updated, of course). But also to provide more variables to search.

I guess Textpattern’s interfacing could still work fine, just start using the File upload feature for the text files would be better than what we have at the moment, and if plugin authors get in the habit of updating the database with their revised files…well…then we’re getting somewhere.

Thing is, I think they like the traffic to their own sites (perfectly understandable), so it could be a snipe hunt.

Offline

#20 2006-06-09 07:57:28

NeilA
Member
From: Blue Mountains, Australia
Registered: 2004-08-15
Posts: 316
Website

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

I have a compiled copy of the latest version (PFA_Beginning_06.txt) of this plugin.

Available here

Help yourselves!

Cheers


Neil – Blue Mountains, Australia

http://westserve.org
http://ministrygrounds.net.au

Offline

#21 2006-06-09 11:07:00

yhugo
Member
From: Québec, Qc
Registered: 2006-01-17
Posts: 18
Website

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

NeilA wrote:

I have a compiled copy of the latest version (PFA_Beginning_06.txt) of this plugin.

Thanks NeilA … :)

have a good day …

yhugo

Last edited by yhugo (2006-06-10 12:36:36)


«Là où croît le péril, croît aussi ce qui sauve.»

- Friedrich Hölderlin -

Offline

#22 2006-06-09 12:22:16

TheEric
Plugin Author
From: Colorado & Montana.
Registered: 2004-09-17
Posts: 603
Website

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

Thank you!

Offline

#23 2006-06-17 03:54:30

mhulse
Plugin Author
From: Eugene Oregon
Registered: 2005-01-21
Posts: 200

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

Hi,

Cool plugin…

Just curious if someone could post some example code showing how they use this plugin.

I am able to get it to work, but when I go to the perma-link, I do not get the full body… I am pretty sure this is becuase I am using one form for both types of content…

TIA.
:)
M

Offline

#24 2006-06-17 04:15:06

mhulse
Plugin Author
From: Eugene Oregon
Registered: 2005-01-21
Posts: 200

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

Ah, I think I found the answer:

http://textpattern.com/faq/24/how-do-i-show-only-an-excerpt-in-article-lists

<code>
<txp:if_article_list>
<! — list page: display the short version — >
<txp:beginning length=“500” linktext=“Read More” styleclass=“morelink” />
</txp:else />
<! — article page: display the complete article — >
<txp:body />
</txp:if_article_list>
</code>

And, actually, this works pretty good for me without the plugin:

<code>
<txp:if_article_list> <!— List page, display the short version: —> <txp:if_excerpt> <!— The article has an excerpt: —> <txp:excerpt /> <txp:permlink>Read more</txp:permlink>&nbsp;&raquo; <txp:else /> <!— There is no excerpt: —> <txp:body /> </txp:if_excerpt>
</txp:else /> <!— Article page, display the complete article: —> <txp:body />
</txp:if_article_list>
</code>

Hths someone.

M

Last edited by mhulse (2006-06-17 04:51:10)

Offline

#25 2006-06-23 02:47:05

dinosauer
New Member
Registered: 2006-03-03
Posts: 2

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

does anyone know how to add the article’s title to the linktext? something like, ‘…continue reading My First Article’ ?

Offline

#26 2006-06-23 03:37:26

marios
Archived Plugin Author
Registered: 2005-03-12
Posts: 1,253

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

dinosauer wrote:

does anyone know how to add the article’s title to the linktext? something like, ‘…continue reading My First Article’ ?

I think you just want to omit the article title and then place a conventional <code> continue reading my nbsp&;<txp:permlink><txp:title /><txp:permlink></code> below your beginning tag inside your article form.
I think it is much more convenient to use a custom field for this so you can always enter some alternative candie teaser slogan in there.

This is how I use it for the main frontpage:
<code>
<txp:if_article_list>
<h2>♨&nbsp;<txp:permlink><txp:title /></txp:permlink></h2>
<txp:wet_article_thumb /><txp:kgr_safe_excerpt count=“35” mode=“words” linktext=”“ countexcerpt=“true” />
<txp:if_first_article><txp:chh_if_data><p class=“category”>New entry about&nbsp;༺<txp:category1 />༻&nbsp;</p></txp:chh_if_data>
<txp:else />
<txp:chh_if_data><p class=“category”>Archived entry about&nbsp;༺<txp:category1 />༻&nbsp;</p></txp:chh_if_data>
</txp:if_first_article>
<p class=“more”><txp:if_custom_field name=“reedmorevar”>
<txp:permlink><txp:custom_field name=“reedmorevar” />…….</txp:permlink></p>
<txp:else />
<txp:permlink>…more,more,..more…</txp:permlink></p>
</txp:if_custom_field>
<txp:else />
<txp:title /><txp:body />
</txp:if_article_list></code>

You can easily adapt this to your needs,

regards, marios

Last edited by marios (2006-06-23 03:38:33)


⌃ ⇧ < ⌃ ⇧ >

Offline

#27 2006-06-23 08:56:12

tkn
Member
From: New York
Registered: 2004-06-29
Posts: 39
Website

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

Is there a way to get it to close off a blockquote tag if it is in the middle of one?

Offline

#28 2006-06-23 16:53:27

philipashlock
Member
From: Bellingham, Washington - USA
Registered: 2004-06-20
Posts: 58
Website

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

@tkn

I’ve yet to figure out how to parse to check for unclosed tags, so for the time being, you’ll have to put something that nests paragraphs within the excerpt field. Any situation where this plugin might break a closing tag can use the excerpt field and it shouldn’t break the functionality of textpattern or this plugin, but obviously not as convenient. This issue is something still under investigation.

Also, my apologies to all for the broken link to the plugin – had an issue changing servers. All fixed now. Yes, it would be nice for textpattern.org to host the files.

Offline

#29 2006-07-01 19:14:40

valmeria
Member
From: France
Registered: 2005-10-22
Posts: 46

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

Hi All, I have a problem with this plug in.

I’m using it like that in my form

<code><div id=“une”>
<h3>A la une : <txp:title /></h3>
<txp:beginning length=“050” format=“insidelinktext=: Lire l’article” styleclass=“0” /></div></code>
.
but result is always much more than 50 characters or any value else I can put (even if I put 10 or 5 or 0 …).

I thought plug in was able to “cut” current paragraph to length indicated.

If my article (html) body is

<code><p>A l’occasion de la deuxi&egrave;me discussion du projet de loi DADVSI &agrave; l’Assembl&eacute;e Nationale en mars dernier, les d&eacute;put&eacute;s ont formalis&eacute; l’exigence de l’interop&eacute;rabilit&eacute; entre les diff&eacute;rents formats de fichiers num&eacute;riques et les diff&eacute;rents dispositifs de DRM pr&eacute;vus dans le texte. <p>Le paragraphe 7 prévoit notamment l’obligation de mettre à la disposition des divers intervenants de la filière les informations relatives aux différentes mesures techniques de protection, de manière à rendre possible l’utilisation d’un fichier acheté par exemple sur la boutique en ligne de VirginMega.fr sur le très convoité petit baladeur d’Apple, ou vice-versa. Le Sénat a introduit le création d’une Autorité de régulation, à même d’arbitrer entre les demandes d’ouverture de la part de Virgin par exemple, des Mesures Techniques de Protection – le jargon français pour DRM – d’Apple (au hasard) et la demande d’Apple dans cet exemple et des ayants-droits de conserver intacte l’efficacité de ces mesures de protection. La Commission Mixte Paritaire a maintenu ce dispositif dans son texte, voté ce matin par le Sénat, puis en début d’après-midi par l’Assemblée à sa suite.</p><p>Personne ne conteste la nécessité à terme de l’interopérabilité : mais était-il pour autant indispensable de légiférer et surtout aussi tôt?</p></code>
.
then I have the following result with the plug in :

A la une : DADVSI et l’obligation d’interopérabilité : Chantecler fera-t-il le soleil se lever? A l’occasion de la deuxième discussion du projet de loi DADVSI à l’Assemblée Nationale en mars dernier, les députés ont formalisé l’exigence de l’interopérabilité entre les différents formats de fichiers numériques et les différents dispositifs de DRM prévus dans le texte. Le paragraphe 7 prévoit notamment l’obligation de mettre à la disposition des divers intervenants de la filière les informations relatives aux différentes mesures techniques de protection, de manière à rendre possible l’utilisation d’un fichier acheté par exemple sur la boutique en ligne de VirginMega.fr sur le très convoité petit baladeur d’Apple, ou vice-versa. Le Sénat a introduit le création d’une Autorité de régulation, à même d’arbitrer entre les demandes d’ouverture de la part de Virgin par exemple, des Mesures Techniques de Protection – le jargon français pour DRM – d’Apple (au hasard) et la demande d’Apple dans cet exemple et des ayants-droits de conserver intacte l’efficacité de ces mesures de protection. La Commission Mixte Paritaire a maintenu ce dispositif dans son texte, voté ce matin par le Sénat, puis en début d’après-midi par l’Assemblée à sa suite. :: Lire l’article

As you can count, result is much more than 50 first characters of text …

Do I miss something ? Help please …

Offline

#30 2006-07-01 23:18:13

The-Exit
Member
From: Berlin
Registered: 2005-07-16
Posts: 175
Website

Re: [plugin] [ORPHAN] Beginning (update and merge of pfa_beginning + ede_beginning)

hi

the help tells you:

length=”xxx” = The number of characters before the plugin generates the excerpt at the end of the current paragraph. Default is 350.

this means, the plugin will cut after the paragraph containing the 50th character.

if you want to cut at 50 you should use the kgr_safe_excerpt pluging.

Last edited by The-Exit (2006-07-01 23:18:43)

Offline

Board footer

Powered by FluxBB