ComicCMS User Manual

HomeDownloadManualForums

Editing Templates :: Variables

So that you don't have to write every page of your site by hand ComicCMS gives you variables which are, to put it simply, things that vary. If you put the variable {{comic_title}} in your template then, depending what comic is being shown on that page the variable will be replaced by it's title. Pretty simple!

So, if you have the template: <h2>{{comic_title}}</h2> and you were viewing a comic with the title "Alice meets Bob", the HTML in that page would be: <h2>Alice meets Bob</h2>

Comics aren't the only things with variables, news has them too. e.g. {{news_title}}. Lots of other things can use these kind of variables which can be added in with plugins and they take the same kind of shape as these.

ComicCMS, free php webcomic management software Copyright © 2007 Steve H