Welcome, Guest. Please Login
Tinderbox
  News:
IMPORTANT MESSAGE! This forum has now been replaced by a new forum at http://forum.eastgate.com and no further posting or member registration is allowed. The forum is still accessible via read-only access for reference purposes. If you wish to discuss content here, please use the new forum. N.B. - posting in the new forum requires a fresh registration in the new forum (sorry - member data can't be ported).
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
Export title and $HTMLExportFileName (Read 3979 times)
mike wrenn
Full Member
*
Offline



Posts: 12

Export title and $HTMLExportFileName
Oct 19th, 2010, 6:30am
 
For a link list, I'm currently using this:
<li><a href="^title^.html">^title^</a></li>

Works fine with notes that have one word titles or no concern for appearances. My notes have more than one word, and I'm concerned about appearance. So I tried this:

href="^value($HTMLExportFileName)^.html">^title^</a></li>

and this:

href="^value(format($HTMLExportFileName))^.html">^title^</a></li>

They produced ".html" and "0.html" respectively.

Should I be headed some other direction?

Many thanks
Back to top
 
 

Twitter: @Auxhiler
  IP Logged
Mark Bernstein
YaBB Administrator
*
Offline

designer of
Tinderbox

Posts: 2871
Eastgate Systems, Inc.
Re: Export title and $HTMLExportFileName
Reply #1 - Oct 19th, 2010, 8:42am
 
I believe you want href="^URL^"  ...
Back to top
 
 
WWW   IP Logged
Mark Anderson
YaBB Administrator
*
Offline

User - not staff!

Posts: 5689
Southsea, UK
Re: Export title and $HTMLExportFileName
Reply #2 - Oct 19th, 2010, 8:54am
 
It's a little confusing as the example given will make the exported HTML link to itself, which I suspect is not what you're actually trying to do.

Two codes to look at are ^url(item)^ and ^linkTo(item)^. In both cases the 'item' parameter is the $Name of the note to which you're trying to link. Taking your example as a reference, ^linkTo^ will replace the red code with the correct output:
<li><a href="^title^.html">^title^</a></li>
<li>^linkTo(some note)^</li>

With ^url^, the green code is replaced by the appropriate output:
<li><a href="^title^.html">^title^</a></li>
<li><a href="^url(some note)^">^title^</a></li>
Back to top
 
« Last Edit: Oct 19th, 2010, 10:55am by Mark Anderson »  

--
Mark Anderson
TB user and Wiki Gardener
aTbRef v6
(TB consulting - email me)
WWW shoantel   IP Logged
mike wrenn
Full Member
*
Offline



Posts: 12

Re: Export title and $HTMLExportFileName
Reply #3 - Oct 21st, 2010, 2:38am
 
Thank you both. Either way works just fine. We decided to go with ^URL(original)^, because the file structure is simpler and mimics the way we're developing the document (and that might have been what Mark Anderson was referring to).
Back to top
 
 

Twitter: @Auxhiler
  IP Logged
Pages: 1
Send Topic Print