Page 1 of 1

Copying item titles

Posted: Mon Nov 03, 2014 10:30 pm
by rkd102
In Awasu, is there a way to save/export (or copy & paste) only the titles of news articles as text into another application such as MS Word?

Thanks for any help.

Re: Copying item titles

Posted: Mon Nov 03, 2014 10:38 pm
by support
EDIT: The procedure described here is only necessary for Awasu 3.0.1 and earlier, and is a little involved since those versions of Awasu don't natively allow the export of item titles. From Awasu 3.0.2 onwards, all feed item metadata is natively exported, and the process is much easier.


This is possible, but there are a few things you have to do. I'm assuming you're running Awasu 3.0 or later.

(*) Locate the Awasu installation directory, go into the Resources folder, then into the Channel Summary Templates folder, then into the includes folder e.g. C:\Program Files\Awasu\Resources\Channel Summary Templates\includes\

(*) Edit the defaultItemHeader.include file and add the following line somewhere:

Code: Select all

<input id="item_title_{%ITEM-METADATA% awasuId}" value="{%ITEM-METADATA% name!}" style="display:none;" />

NOTE: Depending on what version of Windows you are running, you might need to copy this file somewhere, edit it there, then copy it back.

(*) Edit the StandardBody.include file and add the following lines somewhere:

Code: Select all

<script>
function copyItemTitle( itemId ) { document.getElementById( "item_title_"+itemId ).createTextRange().execCommand( "Copy" ) ; }
</script>


We're now going to create a custom "Send-to" tool i.e. something that you can send feed items to, for processing. In this case, the new tool will call the JavaScript function we created above, to copy the item's title to the clipboard.

(*) In Awasu, open any channel, right-click in the item pane (the part of the window that shows the brief list of feed items), choose "Send to", then "Organize".

(*) Click on the green plus icon in the top-right corner of the dialog box, then type in the name you'd like to give to the new tool e.g. "Copy title".

(*) In the "Command" window, add the following text:

Code: Select all

javascript:copyItemTitle( {%ITEM-METADATA% awasuId} ) ;


(*) Click on OK.

And we're done. If you open an Awasu channel, you'll see a "Send to" link at the bottom of each feed item - move your mouse over it and a menu will pop up, with the new "Copy title" tool. Click on it and Awasu will copy that feed item's title to the clipboard. Alternatively, you can right-click on an entry in the item pane, go into the "Send-to sub-menu, and the new user tool will be there as well.

Re: Copying item titles

Posted: Mon Nov 03, 2014 10:41 pm
by support
BTW, all of the above assumes that you want to copy item titles manually, on a case-by-case basis. If you want to automatically get all the item titles from a channel, this can better be done via the Awasu API.

Re: Copying item titles

Posted: Fri Nov 07, 2014 8:44 am
by kevotheclone
I just created this "Send-to" tool and it worked great!

As for other solutions you might want to take a look at these pages:

Awasu is so versatile!!!
Let us know if you need any additional help.

Re: Copying item titles

Posted: Sun Nov 16, 2014 9:58 pm
by support
FYI, Awasu user tools have been updated to allow the full set of metadata to be exported for items. This includes not only the standard things like title, link and content, but also things like the time the item was published, the author, any custom metadata the publisher may have included in the feed, etc.

For example, if you want an item's title, link and author, you would create a send-to tool that looked like this:

Code: Select all

{%ITEM-METADATA% name!} \t {%ITEM-METADATA% url} \t {%ITEM-METADATA% author}
And since the output is tab-separated, it will import nicely into Excel.

This will be available in Awasu 3.0.2.alpha3, in a few weeks.