Tinderbox User-to-User Forum (for formal tech support please email: info@eastgate.com)
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi
Tinderbox Users >> Documentation and Tutorials >> aTbRef - sitemap & similarTo tweaks
http://www.eastgate.com/Tinderbox/forum//YaBB.cgi?num=1359136308

Message started by Mark Anderson on Jan 25th, 2013, 12:51pm

Title: aTbRef - sitemap & similarTo tweaks
Post by Mark Anderson on Jan 25th, 2013, 12:51pm

I've just uploaded an updated ZIP file of the current aTbRef with two interesting new things.

Demo: a sitemap.xml. [url-http://en.wikipedia.org/wiki/Sitemaps]Whats a sitemap[/url]? If you don't know what one of these is, likely your website doesn't need one. Anyway, this came up in conversation yesterday and a wondered if it would be easy. Turns out it is: a single note and 2 new templates! See note "ATbRef sitmap.xml" in the TBX document. Be aware the export is turned off at present as it will make TB chug a bit running out the whole file - plus the XML resulting file is >8 MB.  still, if you're interested in the 'how', take a look at the TBX and the templates and borrow the concept for your own projects.

Faster Export. When a added in ^similarTo^ to most pages' templates export went from seconds to minutes. This is frustrating if I just want to do a quick full export to check a template change. So, and in a way another demo, I've made the made the code for the similar links into an inlcude in the main templates and in the include (note: /BOILERPLATE/similarto-panel) I've put the original code inside an ^if()^ which checks a Boolean that is a key attribute for the include note. Now, simply ticking-un-ticking the Boolean toggles in/out inclusion of the resource-intensive ^similarTo^ code:



Enjoy.

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.