Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Exporting from Tinderbox >> Exporting Notes with URL info
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1308689105

Message started by Eric Luke on Jun 21st, 2011, 4:45pm

Title: Exporting Notes with URL info
Post by Eric Luke on Jun 21st, 2011, 4:45pm

I am trying to export research notes (to Scrivener) with Key Attribute: URL info in addition to note text.  Is there a way to do this?

Thanks

Title: Re: Exporting Notes with URL info
Post by Eric Luke on Jun 21st, 2011, 5:22pm

Actually answered my own question (with custom template), but still wonder what's the best way to do this?  If I select multiple notes as text export, they come out as one long document with  titles missing (?).  Is there a way to export to HTML this way, which is more convenient in Scrivener?

Thanks

Title: Re: Exporting Notes with URL info
Post by Mark Bernstein on Jun 22nd, 2011, 5:33pm

You likely want to export to HTML (which can preserve text styles). Template commands like ^children() can be very helpful here for exporting an entire section in a single page.

Title: Re: Exporting Notes with URL info
Post by Eric Luke on Jun 22nd, 2011, 7:00pm

Sorry, is there a function to include a key attribute in an export to HTML?  I'm not finding how to create a template for HTML export, only to text.  

Title: Re: Exporting Notes with URL info
Post by Mark Bernstein on Jun 22nd, 2011, 7:32pm

It's very much the same, though more export codes are useful for HTML.

^value($ChildCount)

would export the value of $ChildCount

Title: Re: Exporting Notes with URL info
Post by Eric Luke on Jun 22nd, 2011, 9:21pm

Thanks so much for all this personalized help; my systems are working and the whole process is a little addictive.  Is there a way to export the Key Attribute URL as an active link?

Title: Re: Exporting Notes with URL info
Post by Mark Anderson on Jun 23rd, 2011, 4:39am

Assuming the contents of $URL is a valid URL:

<a href="^value($URL)^">^value($URL)^</a>

For those unfamiliar with HTML, in the above code example, the first use of ^value is the target URL passed to the browser when the link is clicked and the second instance is the clickable on-screen link text.

The is no function to 'just' export key attributes. The latter may number zero, one, or many attributes all of which may differ in data type.  You need to insert appropriate code to handle the type of attributes you've chosen as key attributes. As well as the manual, do take a look at my aTbRef resource, especially the listings of export and action codes.

Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com) » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.