THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
<template action="weblog"> <name>weblog</name> <description>weblog</description> <link></link> <navbar>false</navbar> <hidden>true</hidden> <templateCode> <templateLanguage>velocity</templateLanguage> <contentType>text/html</contentType> <contentsFile>weblog.vm</contentsFile> <type>standard</type> </templateCode> <templateCode> <templateLanguage>velocity</templateLanguage> <contentType>text/html</contentType> <contentsFile>weblog-mobile.vm</contentsFile> <type>mobile</type> </templateCode> </template> |
One should add template code for a standard template and can leave other types (In here mobile template code) not adding.If there is no templateCode entry for mobile type we are cloning the standard's template code.
Major Changes in Roller code
Entry in createDB.vm
Code Block |
---|
create table rol_templatecode (
id varchar(48) not null primary key,
templateid varchar(48) not null,
template $db.TEXT_SQL_TYPE not null,
templatelang varchar(48),
contenttype varchar(48),
#columnNotNullWithDefault('type' 'varchar(16)' 'standard')
);
|
In Templates interface
Code Block |
---|
public WeblogTemplateCode getTemplateCode(String type) throws WebloggerException;
|
Blog Posts relevant for design
...