|
List Info
Thread: Summary Plugin Created
|
|
| Summary Plugin Created |

|
2007-04-18 05:30:11 |
|
Hi David,
With reference to the Summary Discussion below, I have, under Sopan
Shewale's guidance created the Plugin that does this.
It can be found at http://jira.blojsom.com/jira/browse/BLOJSOM-215
Regards,
Shalini
From:
blojsom-developers-bounces lists.sourceforge.net">blojsom-developers-bounces lists.sourceforge.net [mailto: blojsom-developers-bounces lists.sourceforge.net">blojsom-developers-bounces lists.sourceforge.net
]
On Behalf Of David Czarnecki
Sent: Sunday, April 15, 2007 12:30 AM
To: blojsom developers
Subject: Re: [Blojsom-developers] Internal Aggregator in 3.1 (Help)
Yeah, you could probably write a plugin similar to the RSS
enclosure or language selection plugin that adds a field to the add/edit blog
entry screen to stuff a summary into the metadata for the blog entry.
On 4/14/07 8:10 AM, "Cliffano Subagio" < cliffano gmail.com">cliffano gmail.com>
wrote:
If you
don39;t mind not having a separate text field on the admin interface
1. Add the summary as a metadata on the blog entry text:
meta-summary=This is the summary of my new blog entry.
Here's the real content of the blog entry. Bla bla bla.
2. Display that meta summary on the vm template:
<div
class="blogSummary">$entry.getMetaData().get("summary")</div>
You can add the logic to display the entry content on permalink view, and the
summary otherwise.
On 4/14/07, Sopan Shewale < sopan_shewale persistent.co.in">sopan_shewale persistent.co.in> wrote:
Kenny,
Displaying
Summaries is also my requirement. Blojsom has show-me more plugin but really
does not help me much.
It
would be nice to have "Summary" field for each entry. The summary
should be added by the author of the blog.
The
summary can be part of entry-metadata.
Regards,
--sopan
shewale
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Blojsom-developers mailing list
Blojsom-developers lists.sourceforge.net">Blojsom-developers lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-developers
--
David Czarnecki
http://www.blojsom.com/blog/
| http://blojsom.sf.net
-- Yesterday I played a blank tape at full blast. The mime next door went nuts.
|
| Re: Summary Plugin Created |
  United States |
2007-07-11 08:49:12 |
Ok. I'm trying to use this as a "show me more"
plugin.
I've placed the jar file in /WEB-INF/lib/ folder.
Made the following modifications in
WEB-INF/classes/blojsom-plugins.xml.
<bean id="entry-summary"
class="org.blojsom.plugin.common.SummaryPlugin"
init-method="init"
destroy-method="destroy">
<property name="servletConfig">
<ref
bean="servletConfigFactoryBean"/>
</property>
<property name="eventBroadcaster">
<ref bean="eventBroadcaster"/>
</property>
<property name="blojsomProperties">
<ref bean="defaultProperties"/>
</property>
<property name="minWords">
<value>160</value>
</property>
<property name="maxWords">
<value>180</value>
</property>
</bean>
and
<property
name="defaultPluginProperties">
<map>
<entry key="admin"
value="admin"/>
<entry key="atom"
value=""/>
<entry key="default"
value="conditional-get, meta, limiter,
nofollow, rss-enclosure, entry-summary"/>
<entry key="html"
value="meta, tag-cloud, date-format,
referer-log, calendar-gui, calendar-filter, comment,
trackback,
simple-search, limiter, emoticons, macro-expansion,
days-since-posted,
word-count, simple-obfuscation, nofollow, rss-enclosure,
entry-summary,
technorati-tags"/>
<entry key="rdf"
value=""/>
<entry key="rsd"
value=""/>
<entry key="rss"
value=""/>
<entry key="rss2"
value=""/>
</map>
</property>
Then I've changed this: (common to summary)
<bean id="entry-summary"
class="org.blojsom.plugin.common.SummaryPlugin"
init-method="init"
destroy-method="destroy">
into this:
<bean id="entry-summary"
class="org.blojsom.plugin.summary.SummaryPlugin"
init-method="init"
destroy-method="destroy">
Then I've made something like this in my asual-entry.vm (but
not exactly
like this, I have some different stuff):
#if(!$BLOJSOM_PERMALINK)
#if($entry.getMetaData() &&
$entry.getMetaData().get("summary"))
$entry.getMetaData().get("summary")
#end
#end
#if($BLOJSOM_PERMALINK)
<div class="post">
$entry.getDescription()
#TechnoratiTags($entry)
</div>
#end
#if(!$BLOJSOM_PERMALINK)
<strong> $permalink Read More ... </strong>
#end
The problem:
The text is summarized. I would like my formating from the
original post
(with brakelines). Also I guess the images are not
displayed. How can I have
my images?
The image smilies into my blog are processed into a
">" character. That must
be changed... too.
My blog: http://programaresociala.
ro
--
View this message in context: http://www.nabble.com/Summary-Plugin-Create
d-tf3600212.html#a11540659
Sent from the Blojsom - User mailing list archive at
Nabble.com.
------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|
|
| Re: Summary Plugin Created |
  India |
2007-07-11 23:04:42 |
|
Hi,
Images will not be displayed in the Summary. (I will think of some way
of doing that little later...). When you click the Read More link, then
your entire post is displayed - images and all.
I don't really understand what you are saying about the formatting. If
you could paste the summary it would be nice.
Are your fullstops and other punctuation marks missing?
Tip : In Weblog Settings->preferences change the editor to RICH
TEXT. The default editor will not give your breaklines when you press
ENTER.
--Shalini
Thank
you for your email. Your credit card has been charged $5.99 for the
first 10 words and $1.99 for each additional word in your message.
http://www.theessenceoftech.blogspot.com
Arise wrote:
talk.nabble.com" type="cite">
Ok. I'm trying to use this as a "show me more" plugin.
I've placed the jar file in /WEB-INF/lib/ folder.
Made the following modifications in WEB-INF/classes/blojsom-plugins.xml.
<bean id="entry-summary" class="org.blojsom.plugin.common.SummaryPlugin"
init-method="init" destroy-method="destroy">
<property name="servletConfig">
<ref bean="servletConfigFactoryBean"/>
</property>
<property name="eventBroadcaster">
<ref bean="eventBroadcaster"/>
</property>
<property name="blojsomProperties">
<ref bean="defaultProperties"/>
</property>
<property name="minWords">
<value>160</value>
</property>
<property name="maxWords">
<value>180</value>
</property>
</bean>
and
<property name="defaultPluginProperties">
<map>
<entry key="admin" value="admin"/>
<entry key="atom" value=""/>
<entry key="default" value="conditional-get, meta, limiter,
nofollow, rss-enclosure, entry-summary"/>
<entry key="html" value="meta, tag-cloud, date-format,
referer-log, calendar-gui, calendar-filter, comment, trackback,
simple-search, limiter, emoticons, macro-expansion, days-since-posted,
word-count, simple-obfuscation, nofollow, rss-enclosure, entry-summary,
technorati-tags"/>
<entry key="rdf" value=""/>
<entry key="rsd" value=""/>
<entry key="rss" value=""/>
<entry key="rss2" value=""/>
</map>
</property>
Then I've changed this: (common to summary)
<bean id="entry-summary" class="org.blojsom.plugin.common.SummaryPlugin"
init-method="init" destroy-method="destroy">
into this:
<bean id="entry-summary" class="org.blojsom.plugin.summary.SummaryPlugin"
init-method="init" destroy-method="destroy">
Then I've made something like this in my asual-entry.vm (but not exactly
like this, I have some different stuff):
#if(!$BLOJSOM_PERMALINK)
#if($entry.getMetaData() && $entry.getMetaData().get("summary"))
$entry.getMetaData().get("summary")
#end
#end
#if($BLOJSOM_PERMALINK)
<div class="post">
$entry.getDescription()
#TechnoratiTags($entry)
</div>
#end
#if(!$BLOJSOM_PERMALINK)
<strong> $permalink Read More ... </strong>
#end
The problem:
The text is summarized. I would like my formating from the original post
(with brakelines). Also I guess the images are not displayed. How can I have
my images?
The image smilies into my blog are processed into a ">" character. That must
be changed... too.
My blog: http://programaresociala.ro
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.
|
| Re: Summary Plugin Created |
  United States |
2007-07-12 03:25:15 |
My entries text becomes concatenated. I'm loosing the
newlines, paragraphs,
etc...
I'm posting my entries using Windows Live Writer. I don't
use the admin
interface to post my messages.
P.S. About this: "Your credit card has been charged
$5.99 for the first 10
words and $1.99 for each additional word in your
message."
Are you actually paying money to write me messages?
:respect:
shalini israni wrote:
>
>
>
>
>
>
>
>
> Hi,
> Images will not be displayed in the Summary. (I will
think of some
> way
> of doing that little later...). When you click the Read
More link, then
> your entire post is displayed - images and
all.
> I don't really understand what you are saying about the
formatting. If
> you could paste the summary it would be nice.
> Are your fullstops and other punctuation marks missing?
>
> Tip : In Weblog Settings->preferences
change the editor to RICH
> TEXT. The default editor will not give your breaklines
when you press
> ENTER.
>
> --Shalini
>
> Thank
> you for your email. Your credit card has been charged
$5.99 for the
> first 10 words and $1.99 for each additional word in
your message.
> http://www.t
heessenceoftech.blogspot.com
>
>
>
>
> Arise wrote:
>
> Ok. I'm trying to use this as a "show me
more" plugin.
>
> I've placed the jar file in /WEB-INF/lib/ folder.
>
> Made the following modifications in
WEB-INF/classes/blojsom-plugins.xml.
>
>
> <bean id="entry-summary"
>
class="org.blojsom.plugin.common.SummaryPlugin"
> init-method="init"
destroy-method="destroy">
>
> <property
name="servletConfig">
> <ref
bean="servletConfigFactoryBean"/>
> </property>
>
> <property
name="eventBroadcaster">
> <ref
bean="eventBroadcaster"/>
> </property>
>
> <property
name="blojsomProperties">
> <ref
bean="defaultProperties"/>
> </property>
>
> <property
name="minWords">
>
<value>160</value>
> </property>
>
> <property
name="maxWords">
>
<value>180</value>
> </property>
>
> </bean>
>
>
> and
>
> <property
name="defaultPluginProperties">
> <map>
> <entry key="admin"
value="admin"/>
> <entry key="atom"
value=""/>
> <entry key="default"
value="conditional-get, meta,
> limiter,
> nofollow, rss-enclosure, entry-summary"/>
> <entry key="html"
value="meta, tag-cloud, date-format,
> referer-log, calendar-gui, calendar-filter, comment,
trackback,
> simple-search, limiter, emoticons, macro-expansion,
days-since-posted,
> word-count, simple-obfuscation, nofollow,
rss-enclosure, entry-summary,
> technorati-tags"/>
> <entry key="rdf"
value=""/>
> <entry key="rsd"
value=""/>
> <entry key="rss"
value=""/>
> <entry key="rss2"
value=""/>
> </map>
> </property>
>
>
> Then I've changed this: (common to summary)
> <bean id="entry-summary"
>
class="org.blojsom.plugin.common.SummaryPlugin"
> init-method="init"
destroy-method="destroy">
> into this:
> <bean id="entry-summary"
>
class="org.blojsom.plugin.summary.SummaryPlugin"
> init-method="init"
destroy-method="destroy">
>
>
> Then I've made something like this in my asual-entry.vm
(but not exactly
> like this, I have some different stuff):
>
> #if(!$BLOJSOM_PERMALINK)
> #if($entry.getMetaData() &&
$entry.getMetaData().get("summary"))
> $entry.getMetaData().get("summary")
> #end
> #end
>
> #if($BLOJSOM_PERMALINK)
> <div class="post">
> $entry.getDescription()
> #TechnoratiTags($entry)
> </div>
>
> #end
>
>
> #if(!$BLOJSOM_PERMALINK)
> <strong> $permalink Read More ...
</strong>
> #end
>
>
> The problem:
>
> The text is summarized. I would like my formating from
the original post
> (with brakelines). Also I guess the images are not
displayed. How can I
> have
> my images?
> The image smilies into my blog are processed into a
">" character. That
> must
> be changed... too.
>
> My blog: http://programaresociala.
ro
>
>
>
> DISCLAIMER
> ==========
> This e-mail may contain privileged and confidential
information which is
> the property of Persistent Systems Pvt. Ltd. It is
intended only for the
> use of the individual or entity to which it is
addressed. If you are not
> the intended recipient, you are not authorized to read,
retain, copy,
> print, distribute or use this message. If you have
received this
> communication in error, please notify the sender and
delete all copies of
> this message. Persistent Systems Pvt. Ltd. does not
accept any liability
> for virus infected mails.
>
>
>
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2
express and take
> control of your XML. No limits. Just data. Click to get
it now.
> http://sourcefor
ge.net/powerbar/db2/
> _______________________________________________
> Blojsom-users mailing list
> Blojsom-users lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
>
>
--
View this message in context: http://www.nabble.com/Summary-Plugin-Create
d-tf3600212.html#a11555670
Sent from the Blojsom - User mailing list archive at
Nabble.com.
------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|
|
| Re: Summary Plugin Created |
  United States |
2007-07-12 03:58:11 |
Yup. The original message remains untouched. Only the
summary gets
"concatenated".
I understand this might be the goal of a "summary"
plugin, but still... If I
want to display only the first lines of my message?
(Correctly formated?).
P.S. Nice signature...
--
View this message in context: http://www.nabble.com/Summary-Plugin-Create
d-tf3600212.html#a11556036
Sent from the Blojsom - User mailing list archive at
Nabble.com.
------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|
|
| Re: Summary Plugin Created |
  United States |
2007-07-12 04:32:29 |
In org.blojsom.blog.database.DatabaseEntry.java it's a
function:
public String getDescription() {
return _description;
}
Let's say I'm creating a new function in the same file,
like:
public String getSummaryDescription(){
return
BlojsomUtils.MySuperDuperCuttingFunction(_description);
}
where my MySuperDuperCuttingFunction should get the
first 5 lines and
then close all opened tags that occur between those 5
lines.
Is this the right way to do it?
Or I'm wasting my time?
--
View this message in context: http://www.nabble.com/Summary-Plugin-Create
d-tf3600212.html#a11556498
Sent from the Blojsom - User mailing list archive at
Nabble.com.
------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Blojsom-users mailing list
Blojsom-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
|
|
[1-6]
|
|