rsr

Postby rsr » Mon Apr 27, 2009 12:26 pm

I have recently purchased the latest version of your software and is in the process of customizing the Report Templates for our use. However, I am have having an issue with the formatting of the feed item’s “Published/Last changed/….” date and time.

I have been trying the following formatting constructs in order to modify the default date and time format that is being generated by Awasu:

Code: Select all

{%ITEM-METADATA% timestamp format="%m/%d/%y"}


The “format” argument does not seem to have any effect. The default Awasu feed item date and time is still being displayed in the in the reports.

We are generating reports from the Work pads.

Can you please let me know if I have overlooked something.

User avatar
support
Site Admin
Posts: 3021
Joined: Fri Feb 07, 2003 12:48 pm
Location: Melbourne, Australia
Contact:

Postby support » Mon Apr 27, 2009 12:40 pm

This is a bit of a subtle issue, caused by the problem feeds have with timestamps. When you use <tt>{%ITEM-METADATA% timestamp}</tt>, Awasu chooses one of the "last modified", "published time" or "time received" timestamps and inserts that into the report, along with a prefix indicating which one it chose e.g. you'll see something like "Received: Today 18:05"

The "format" parameter does work (e.g. try changing "%y" to "%Y") but if you want to remove the prefix, add a "noCaption" parameter:

Code: Select all

{%ITEM-METADATA% timestamp noCaption format="%m/%d/%y"}

rsr.

Postby rsr. » Thu May 07, 2009 7:54 am

Hi,

Thanks again for your prompt response.

I have tried your suggestion of changing the case of the date parameters

{%ITEM-METADATA% timestamp noCaption format="%m/%d/%Y"}


but unfortunately the problem still exist.

The timestamp format option actually does work great when generating reports from the Channel Filter or Folder. However i have been unsuccessful in getting it to work
while generating reports from the Workpads.

I reinstalled Awasu and modifed a default notebook template, just to make sure it.

The modification is shown below:
<This>

<div>

{%REPEAT% Channels-IfGroupingItems} <iterate>

{%?GROUP-ITEMS-BY-CHANNEL%} <start>
<div>
<div>
<a href="{%CHANNEL-METADATA% homeUrl encode=sgml chars=<&\"}">{%CHANNEL-METADATA% name}</a>
</div>
{%ENDIF%}

{%REPEAT% FeedItems} <iterate>
<div>

<insert>
<div>
<img src="{%ITEM-IMAGE% encode=sgml chars=<&\"}" />
<a href="{%ITEM-METADATA% url encode=sgml chars=<&\"}">{%ITEM-METADATA% name!}</a>
<also>
{%!GROUP-ITEMS-BY-CHANNEL%}
{%?CHANNEL-METADATA% name} <span>({%@%})</span> {%ENDIF%}
{%ENDIF%}
</div>

<div>{%ITEM-METADATA% timestamp noCaption format="%m/%d/%Y"}</div>
<insert>
<div>{%ITEM-METADATA% description}</div>
{%?ITEM-NOTES%}
<div>{%@%}</div>
{%ENDIF%}

</div>
{%/REPEAT%}

{%?GROUP-ITEMS-BY-CHANNEL%}
</div> <channelGroup>
{%ENDIF%}

{%/REPEAT%} <Channels>

</div>

Here is an example of the output:

Combine Power over Ethernet & Power Line Carrier for low cost & low power networking (Embedded)
Published: Yesterday 19:07
Koen Geirnaert describes how to combine PoE and PLC in your embedded design in ways that are "green" in both the power and environomental sense and in the
money it will save in both development and end user costs.

User avatar
support
Site Admin
Posts: 3021
Joined: Fri Feb 07, 2003 12:48 pm
Location: Melbourne, Australia
Contact:

Postby support » Thu May 07, 2009 11:40 am

Works for me :-) You are running 2.4, right?

However, I have to make a confession, I accidentally deleted your post when I was cleaning out some spam :oops: I managed to reconstruct it but I've maybe messed up your report template snippet a bit. Email me a copy so I can be sure I've got exactly what you have.

The only explanation I can think of right now is that the bit of template code you highlighted doesn't correspond to the output you highlighted :?:

User avatar
kevotheclone
Posts: 239
Joined: Mon Sep 08, 2008 7:16 pm
Location: Elk Grove, California

Postby kevotheclone » Fri May 08, 2009 4:11 am

rsr, thanks for posting your Channel Report Template code, it makes testing the problem easier.

I am able to duplicate the problem using rsr's code.

As a test I used this feed:
http://feeds.feedburner.com/igvita

I watched the results of this item:
Ruby Proxies for Scale and Monitoring

I created a Channel Report based upon the folder where this Channel lives and the date of the above item was formatted as: 04/20/2009

I copied the Channel Report into a new Channel Report and changed it's source to be a Workpad where I had added several feed items (including the above feed item) and the date was formatted as: Published: Mon Apr 20 12:33

I duplicated the process on my Portable USB copy of Awasu with the same results (same PC, different Awasu instance).

User avatar
support
Site Admin
Posts: 3021
Joined: Fri Feb 07, 2003 12:48 pm
Location: Melbourne, Australia
Contact:

Postby support » Sat May 09, 2009 9:29 am

OK, I've managed to repro this problem (my bad :oops:).

It's being caused by a bug in Awasu and unfortunately, there isn't a workaround. I'll include a fix in 2.4.1.alpha2 (out in a week or two), or shoot me an email if you need something earlier.

User avatar
kevotheclone
Posts: 239
Joined: Mon Sep 08, 2008 7:16 pm
Location: Elk Grove, California

Postby kevotheclone » Mon Jun 01, 2009 3:13 am

I upgraded to 2.4.1 alpha 2 a couple of days ago, re-tested this problem and after some initial difficulties, it appears that this problem is resolved.

Here's the details of those "initial difficulties":
I still have feed item ("Ruby Proxies for Scale and Monitoring") that I referenced in my previous post on May 7, 2009 in the same Workpad and it still appears in same Channel's archive; I also have the same Channel Report Template that I previously used to test. So everything is set up exactly the same as it was on May 7... easy to retest right... wrong!

I ran the Channel Report and there were no timestamp dates in the Channel Report's output except for a newer item that I had added to the Workpad; all other items did not have a value for the "timestamp" parameter. When I view the Channel in it's Summary Template I can see the date "04/20/2009" for the feed item.

After I upgraded to 2.4.1 alpha 2, I optimized the database and rebuilt the index, maybe that's part of the problem, maybe not.

My Test:
So finally I created a new Channel from igvita.com's feed, and I sent all new items to a new Workpad. I created a new Channel Report from the new Workpad and the timestamp date formatting worked correctly for all Workpad items.


Return to “Awasu - General Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests