Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2005-06-02 13:20:43

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: Plugin: pfa_beginning - excerpt generation based on length attribute

philipshlock: thanks

seku: I usually have this plugin autogenerate the excerpt also but sometimes I want something different than what is in the body or more control so I enter the excerpt manually.

Offline

#74 2005-06-18 16:16:57

flashlight
Member
Registered: 2004-06-01
Posts: 13

Re: Plugin: pfa_beginning - excerpt generation based on length attribute

Another cheer and another request: I’ve found that when a post begins with a blockquote as entered in textile (ie bq . )
the plugin doesn’t close the blockquote. Is there a way around this?

Thanks again!

Offline

#75 2005-06-18 17:02:13

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: Plugin: pfa_beginning - excerpt generation based on length attribute

I had this same problem, so I basically ensured I removed ALL text formating from the start. If you want unformatted excerpts then you might want to try safe page excerpt.

Offline

#76 2005-06-18 17:39:40

flashlight
Member
Registered: 2004-06-01
Posts: 13

Re: Plugin: pfa_beginning - excerpt generation based on length attribute

I’d actually like to keep the formatting. I’m wondering if there is a way for the plugin to close the tag if it spans multiple paragraphs.

Offline

#77 2005-06-19 03:07:29

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

Re: Plugin: pfa_beginning - excerpt generation based on length attribute

the plugin could be made to see if there are open tags and close them if they haven’t been, but I don’t know how I could ensure that this was done in the proper order (ie have the tags nested as intended).

I think this would require some pretty good analysis of the tags used. I wonder if this might be easier to do before textile is applied, but I think it’s pretty much the same situation with html or textile tags. The code would probably have to run a lot of different tests to figure out what to do about open tags. This is not something I know how to do.

If anyone knows of an efficient solution, please contribute. Thanks.

Offline

#78 2005-09-05 03:44:02

TigerX4
New Member
Registered: 2005-09-05
Posts: 9

Re: Plugin: pfa_beginning - excerpt generation based on length attribute

Could someone tell me where this plugin’s data has disapeared to? When I click on the download link all that appears in my browser is the enclosing tags for a PHP script and nothing more.

Offline

#79 2005-09-05 03:52:38

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: Plugin: pfa_beginning - excerpt generation based on length attribute

Even though you can’t see it the php is there. Press ctrl-A, to select all (or whatever the mac command for this is), ctrl-C to copy. Then paste that into the plugin box in your textpattern admin.

Offline

#80 2005-09-06 07:09:46

TigerX4
New Member
Registered: 2005-09-05
Posts: 9

Re: Plugin: pfa_beginning - excerpt generation based on length attribute

Well whatta ya know?! Now the encoded data is there. Problem solved! :-)

Offline

#81 2005-10-01 13:31:04

apo
Member
From: Germany
Registered: 2004-10-27
Posts: 53

Re: Plugin: pfa_beginning - excerpt generation based on length attribute

uhm… i cant get it to work properly. could also be i’m just too dumb, but i’m trying the following:

< txp:if_individual_article> < txp:article /> < p> Vorheriger Artikel: < txp:link_to_prev>&laquo; < txp:prev_title /> &laquo;< /txp:link_to_prev>< br /> N&auml;chster Artikel: < txp:link_to_next>&raquo; < txp:next_title /> &raquo;< /txp:link_to_next> < /p> < /txp:if_individual_article> < txp:if_article_list> < txp:beginning length=“500” linktext=“weiter lesen” styleclass=“morelink” /> < p> < txp:older>zurück< /txp:older> < txp:newer>vor< /txp:newer> < /p> < /txp:if_article_list>

this is the content area of my default page… but if i do so, it just shows nothing, no output. any idea on this, or corrections on my way to put the articles there? :-)

Offline

#82 2005-10-01 13:36:32

zoeglingjulian
Member
From: London, UK
Registered: 2004-12-23
Posts: 52
Website

Re: Plugin: pfa_beginning - excerpt generation based on length attribute

You have to put the pfa_beginning-stuff in the article form, not on the frontpage.

Offline

#83 2005-10-01 13:47:09

thomasstache
Member
From: Dresden, Germany
Registered: 2005-01-18
Posts: 14
Website

Re: Plugin: pfa_beginning - excerpt generation based on length attribute

I was just going to write something similar, but let me elaborate some more. You should replace the <code>< txp:body /></code> tag in your “default” form with the <code>< txp:pfa_beginning /></code> stuff. That should work.

What the heck, here’s what I use to see the excerpt for the list and the full article “if individual”.

<pre><code>< h2>< txp:permlink>< txp:title />< /txp:permlink> < /h2>
< txp:if_individual_article>
< txp:body />
< /txp:if_individual_article>
< txp:if_article_list>
< txp:beginning length=“200” linktext=“Mehr&hellip;” styleclass=“more” />
< /txp:if_article_list>
</code></pre>


Thomas Stache

Offline

#84 2005-10-01 13:53:36

apo
Member
From: Germany
Registered: 2004-10-27
Posts: 53

Re: Plugin: pfa_beginning - excerpt generation based on length attribute

ah, sorry, now i got it :-) thx

Offline

Board footer

Powered by FluxBB