* Graham * bemethavinci
All that a blog is is a collection of posts usually with some sort of voting and comments

What this is is the same basic script that has been used for years on xtgem to create a filelist with description files except the targets of the links are html pages instead of download files
It has no voting or comment routines
although you can add these using things like xtcat rating widgets or xt:poll functions and external commenting systems like htmlcommentbox ( https://www.htmlcommentbox.com/ ) on the target pages

The only restriction is you cannot use xt functions etc in the actual description files due to the parsing order
although you can add other functions to the template
and it must be in xtscript or the include in the template will not work

All you have to do is create a folder to hold the pages and another to hold the descriptions
and set the correct paths markup and classes for your own css in the filelist and embedded include functions
the description files must have the same name as the target pages

The full pages are just pages and can contain anything
The description files can be either plain text with just the html etc of the actual description
or full html pages xt:include only uses the content and discards the headers

The demo is not really that good yet but it shows the principal

the template converter on the page also inserts the converted filelist template into the xtscript in the bottom panel it's not a live test though
it is possible to use jquery and json to get the short description directly from the file
instead of using a separate file but that will prevent it from working on devices that don't support jquery
plus this way allows more flexibility

Another way of doing this is to use the 'paged content' tags
( http://syntax.xtgem.com/manual/xtgem/default?func=paged_content )
and add all the descriptions and links to the full files on the actual page
this method would not use xtscript xt:filelist or xt:include so there would be no restriction on what you could use in the descriptions
2017-03-06 04:24 (edited 2017-03-06 05:13 by Graham ) · (0)

Online: Guests: 1