User-defined structure

Difference (from prior minor revision)

Added: 4a5,6

> * ##%h## Host name (eg: www.someweb.com)
> * ##%p## Path [without ending /] (eg: /someimages)

Removed: 7,9d8

< * ##%t## File type (eg: gif)
< * ##%p## Path [without ending /] (eg: /someimages)
< * ##%h## Host name (eg: www.someweb.com)

Added: 13a13

> * ##%t## File type (eg: gif)

Added: 22a23

> http://forum.httrack.com/readmsg/12712/index.html?pid=12708

Removed: 26d26

< http://forum.httrack.com/readmsg/12712/index.html?pid=12708

Added: 28a29,34

> === Examples ===
> <pre>
> %h%p/%n%[id:-:::].%t
> </pre>
> Use the regular name of files, and if "id" is found in querystring then append "-<id_value>" to name, followed by file extension.
> example.com/page.php?id=news > example.com/page-news.html


Defined in WinHTTrack options Build > Local structure type, click the Options button.

From the command-line use -N <structure>

Variables

New variable in version 3.40?
http://forum.httrack.com/readmsg/12712/index.html?pid=12708

Another option is to use the user-defined build structure to force all types
to be 3-characters long: -N "%h%p/%n%q.%st"

TODO - Test %st variable

Examples

%h%p/%n%[id:-:::].%t

Use the regular name of files, and if "id" is found in querystring then append "-<id_value>" to name, followed by file extension.

example.com/page.php?id=news > example.com/page-news.html