This shows you the differences between two versions of the page.
rotation_pages [2014/01/29 18:04] |
rotation_pages [2014/01/29 18:04] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Rotation Pages ====== | ||
+ | Template is a regular html with special tags which are replaced by actual thumbs. | ||
+ | Upon creation of template try to image whole page as a table and add rows\cols numbers (it's just for your future conveniences) | ||
+ | |||
+ | First of all you have to add at least 1 subtemplate. Subtemplate - this is how each of your thumbs looks like. | ||
+ | |||
+ | <a href="/ | ||
+ | |||
+ | you can have as much subtemplates as you want. Notice that script uses &link parameter to track clicks o dont forget to add it. | ||
+ | |||
+ | |||
+ | Variables: | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |||
+ | There are 2 options to mark place in template where you want to see thumbs: | ||
+ | |||
+ | <thumb num=1></ | ||
+ | |||
+ | or | ||
+ | |||
+ | as pattern < | ||
+ | example | ||
+ | < | ||
+ | |||
+ | This means that script have to replace this tag with thumb number 1 (by CTR) using subtemplate default. There' | ||
+ | |||
+ | You can make a bridgments like | ||
+ | <thumb num=1-5></ | ||
+ | the same as | ||
+ | < | ||
+ | |||
+ | will be replaced with thumbs 1,2,3,4,5 | ||
+ | |||
+ | You can also use special parameters , for example | ||
+ | |||
+ | <thumb num=1 group=Images></ | ||
+ | |||
+ | or | ||
+ | |||
+ | <thumb num=1 group=Images template=my_tpl></ | ||
+ | |||
+ | I hope there parameters are self-explained. Notice that group name is case-sensitive. | ||
+ | |||
+ | All templates are in DB so you will not see any files on ftp till rotation. To force file creation go to Rotation -> Specials. | ||
+ | |||
+ | You can include results as any other file, for example | ||
+ | |||
+ | < | ||
+ | |||
+ | |||
+ | |||
+ | ===== Examples ===== | ||
+ | |||
+ | |||
+ | You can see default template - test.html | ||
+ | |||
+ | **subtemplate default** | ||
+ | |||
+ | <a href="/ | ||
+ | |||
+ | **template** | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <thumb num=1></ | ||
+ | <thumb num=2></ | ||
+ | <thumb num=3></ | ||
+ | <thumb num=4></ | ||
+ | <thumb num=5></ | ||
+ | <thumb num=6></ | ||
+ | <thumb num=7></ | ||
+ | <thumb num=8></ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | As a result you'll see file scj/ | ||
+ | |||
+ | Script recreates files in compliance with Rotation-Settings (for example once in 10 minutes or 1000 clicks). |