Hi!
Is it possible to embed the outline of notes inside HTML Fixed Sidebar? I’ve only succeeded with creating the sidebar divided into three parts: Parent, Siblings, and Children, but this solution makes navigation between notes disorienting for me (not to mention people who would see exported file for the first time). I would like to have an outline in a sidebar similar to that in TB “Outline View”, it doesn’t even need to be collapsible. I’m a very beginner in HTML/CSS and TB export code, so any tips on how to do it will be much appriciated! (File: tbx_file_outline.tbx (122.0 KB))
Can you explain your use case? Are you looking for this to be a navigation utility for after exporting your data out of Tinderbox, e.g a template to apply for publication or a utility that you want to use within Tinderbox for some purpose?
Also, I suspect that you would NOT want to always publish your entire document, but select sections, no? For example, chapters. In which case, the use of boolean attributes and conditions in the export code will be very useful.
Yes, but I can handle this problem with boolean attributes and conditions, just like you said. Writing code for navigation template is a much bigger problem. Any thoughts?
Cool. There is A LOT more we could do with this, e.g. add conditionals to include and not include stuff, pull in images, and quotes, format the nav bar, number the sections, include an automatic bibliography, etc. Happy to bound ideas around.
Hey there, here is a second option. I’ve modified the nav outline as well as changed the layout CSS method. Also, the header and footer text are pulled from the Publication note.
UPDATE (12/22/21): I figured out the issues I was having and have updated the file. The problem listed below is no longer an issue. Solution: I needed to create an interim variable and pass the value.
@mwra, I’m running into an export issue. If I try to export the above the links don’t work as they don’t have the full path to the files. I’m not sure how to give a relative path and when I try to give an absolute path with fOutline2() I’m getting an escape error. If you’re around at some point I’d love to discuss this with you. Try to figure out what I’m doing wrong in either more code or approach.
Sounds great! But because I’m not a TB Pro, I’m taking ‘small steps’ approach trying to make nav bar working first.
Your second file looks nice! Even better than the first one, which IMO has one issue i.e. I have to edit function with new $Name of some notes every time when setting it up in the new project. Of course, the latest version has also indents that make the ouline look more like an outline (and easier to navigate )
I would like to throw out a question to the community. If the R2 demo I’ve created, the export seems to only work when publishing the entire document. I’m unable to figure out how to publish just a section, e.g. one chapter. I tried using action code to enable and disable $HTMLDontExport, but that did not seem to work. I’ll keep laying and let you know what I come up with.
To be clear, exporting the entire document is not necessarily a bad thing, I’m just looking for ways to publish to part of the document. I’d also like to see if there is a way to export a document with relative paths.
I like the idea, but alas, it did not work for me. , I get this.
I tried to feed it as a variable, but I get the same result.
I agree RE using the <ul>, I just don’t have time right now. I was going for proving the idea and understand the mechanics first, then I’ll work on pretty.