Progress bar in portlet, list of signatures and slow loading of campaign action page

21 views
Skip to first unread message

Vallant.biz

unread,
Oct 23, 2007, 11:21:13 AM10/23/07
to eCampaigning Tool for Plone
Hi,

I'm trying to use in eCampaigning portlet same progress bar as it is
on top of campaign action. Tried with:

<div class="prog-border">
<div class="prog-bar" style="width: [onsite_edition_progress]%;">
[onsite_edition_count]
</div>
</div>

but this is not working as there are obviously missing definitions and
locations for [onsite_edition_progress] and [onsite_edition_count].
Would appreciate help to make this work, also I think this should be
standard feature in eCampaigning portlet.

Also I can't figure it out how to present/load list of signatures in
normal page/document so everyone could see who signed the petition.

Also I noticed that actual campaign action page/form to enter
signature takes very long to load comparing to other normal pages in
site. Check it out at http://vallant.biz/campaign/peticija-za-zascito-slovenske-narave/takeaction
. Are there ways to cache/speed this up and how to do it?

Thank you.

Primoz

Duane Raymond (FairSay)

unread,
Oct 23, 2007, 11:57:48 AM10/23/07
to eCampaig...@googlegroups.com
Hi Primoz,

> I'm trying to use in eCampaigning portlet same
> progress bar as it is
> on top of campaign action. Tried with:
>
> <div class="prog-border">
> <div class="prog-bar" style="width:
> [onsite_edition_progress]%;">
> [onsite_edition_count]
> </div>
> </div>

As Petri previously mentioned, the portlet hasn't received any
attention for a very long time, and thus the progress bar as you
have used won't work because the underlying data isn't fetched
into the portlet. I'll check with Petri how much work this
requires (as we're about to release a beta 2 version of the
tool).

> Would appreciate help to make this work, also I think
> this should be
> standard feature in eCampaigning portlet.

If you are good a coding, you can try adapting the code from the
templates that generate the steps - I think it is the
'action_step_view.pt' template from
\branches\0.2\skins\ecampaigning_templates...and if you have any
success would love a working portlet with this added to svn :-)


> Also I can't figure it out how to present/load list of
> signatures in
> normal page/document so everyone could see who signed
> the petition.

There is now a template in the 0.2 branch of the ectool SVN to
allow this called 'actions_listing.pt' or
'actions_tabular_view.pt' (from PloneCollective:
\eCampaigning\branches\0.2\skins\ecampaigning_templates ). You
need to update to this new version and install it. The data
comes from the actionrecord_catalog that will be added to your
Plone instance and you'll need to add existing actions to the
catalog (using 'find objects > 'Action Record' ) if you want them
included.

> Also I noticed that actual campaign action page/form to enter
> signature takes very long to load comparing to other
> normal pages in
> site. Check it out at
>
http://vallant.biz/campaign/peticija-za-zascito-slovenske-narave/
takeaction

> Are there ways to cache/speed this up and how to do it?

I'm not sure why it is slow or what can be done about it - but I
do know the normal caching isn't applicable to this page since
you have a number of dynamic elements on the page (e.g. action
count, country list auto-detection, and a few you don't use but
are still possible using the tool). Petri: any insight you can
give?

Cheers,

Duane


===========================================================
Duane Raymond
FairSay - Making Campaigning Count
+44 (0)207 993 4200
IM: fairsay (Skype, Yahoo!, Google, MSN)
Blog: http://fairsay.com/blog?utm_source=dr&utm_medium=ems
Bookmarks: http://del.icio.us/fairsay
Web: http://fairsay.com/

FairSay is a ltd. company registered in England and Wales. Reg.
No. 5244802

Vallant.biz

unread,
Oct 23, 2007, 4:11:16 PM10/23/07
to eCampaig...@googlegroups.com
Hi Duane,

Thx for your replay.

> -----Izvirno sporočilo-----
> Od: eCampaig...@googlegroups.com
> [mailto:eCampaig...@googlegroups.com] Namesto Duane
> Raymond (FairSay)
> Poslano: torek, 23. oktober 2007 17:58
> Za: eCampaig...@googlegroups.com
> Zadeva: [eC Tool] Re: Progress bar in portlet, list of
> signatures and slow loading of campaign action page


>
>
> Hi Primoz,
>
> > I'm trying to use in eCampaigning portlet same progress bar
> as it is
> > on top of campaign action. Tried with:
> >
> > <div class="prog-border">
> > <div class="prog-bar" style="width:
> > [onsite_edition_progress]%;">
> > [onsite_edition_count]
> > </div>
> > </div>
>
> As Petri previously mentioned, the portlet hasn't received
> any attention for a very long time, and thus the progress bar
> as you have used won't work because the underlying data isn't
> fetched into the portlet. I'll check with Petri how much
> work this requires (as we're about to release a beta 2
> version of the tool).
>
> > Would appreciate help to make this work, also I think this
> should be
> > standard feature in eCampaigning portlet.
>
> If you are good a coding, you can try adapting the code from
> the templates that generate the steps - I think it is the
> 'action_step_view.pt' template from
> \branches\0.2\skins\ecampaigning_templates...and if you have
> any success would love a working portlet with this added to svn :-)

Actually the code I posted for progress bar in portlet is from those
templetes and is used to give progress bar in campaign action, searched and
tried everything and is obvius that missing definitions and locations for
[onsite_edition_progress] and [onsite_edition_count] are the problem, which
is causing this not to work. I'm not such an expert to figure this out by
myself, thats why I contacted this group. Seems to me just defining and
locating those 2 varibles would solve the problem, sadly I don't know how.
Hope Petri or someone else has.



>
>
> > Also I can't figure it out how to present/load list of
> signatures in
> > normal page/document so everyone could see who signed the petition.
>
> There is now a template in the 0.2 branch of the ectool SVN
> to allow this called 'actions_listing.pt' or
> 'actions_tabular_view.pt' (from PloneCollective:
> \eCampaigning\branches\0.2\skins\ecampaigning_templates ).
> You need to update to this new version and install it. The
> data comes from the actionrecord_catalog that will be added
> to your Plone instance and you'll need to add existing
> actions to the catalog (using 'find objects > 'Action Record'
> ) if you want them included.

Could you be more precise where and how exactly to perform this? Tried just
adding and cataloging Action Records in plone>portal catalog>find
objects>find and catalog, this gave no result in plone>portal catalog. Do I
have to add actionrecord_catalog in Plone root, is this of type Action
Record or zCatalog? Or do I add this in plone>portal catalog>Indexes>...?
What HTML code I use exactly in my page to get signatures listed?

>
> > Also I noticed that actual campaign action page/form to enter
> > signature takes very long to load comparing to other normal
> pages in
> > site. Check it out at
> >
> http://vallant.biz/campaign/peticija-za-zascito-slovenske-narave/
> takeaction
> > Are there ways to cache/speed this up and how to do it?
>
> I'm not sure why it is slow or what can be done about it -
> but I do know the normal caching isn't applicable to this
> page since you have a number of dynamic elements on the page
> (e.g. action count, country list auto-detection, and a few
> you don't use but are still possible using the tool). Petri:
> any insight you can give?

It would be great if we could find ways to speed up loading of main Action
action/signature form.

>
> Cheers,
>
> Duane
>
>
> ===========================================================
> Duane Raymond
> FairSay - Making Campaigning Count
> +44 (0)207 993 4200
> IM: fairsay (Skype, Yahoo!, Google, MSN)
> Blog: http://fairsay.com/blog?utm_source=dr&utm_medium=ems
> Bookmarks: http://del.icio.us/fairsay
> Web: http://fairsay.com/
>
> FairSay is a ltd. company registered in England and Wales. Reg.
> No. 5244802
>
>
>
>
> >

Thank you.

Regards,

Primoz Vallant
Vallant.biz
Innovative Consulting, Management, Services, Products, VallCastT &
WildLifeCastT
http://vallant.biz
in...@vallant.biz
MSN & Skype:vallant.biz

Duane Raymond (FairSay)

unread,
Nov 15, 2007, 12:03:20 PM11/15/07
to eCampaig...@googlegroups.com
Hi Primoz,

If you can wait a few more days we should have a packaged release
shortly that will allow some of the things you want (public
listing of those who have taken action, portlet working with
action count - although I haven't tried to integrate the progress
bar yet)


> > > Also I can't figure it out how to present/load list of
> > signatures in
> > > normal page/document so everyone could see who
> signed the petition.

This will be dealt with in the next release (coming shortly)

> > There is now a template in the 0.2 branch of the ectool SVN

<snip>

> Could you be more precise where and how exactly to
> perform this?

This is done via the e-campaigning tool code - so not related to
'portal catalog'.

To get something from SVN - you might want to install an svn tool
like Tortoise SVN (http://tortoisesvn.net/ ) and the use it to
checkout an version from the SVN (a version control system) onto
your local machine. If you check out that site and google around
you should be able to get it to work using the URL:
https://svn.plone.org/svn/collective/eCampaigning/branches/0.2

> What HTML code I use exactly in my page to get
> signatures listed?

In the version in SVN you will notice a new 'recent actions' tab
which is what you can use (or customise) to list the actions.

Cheers,

Duane

Reply all
Reply to author
Forward
0 new messages