How can a website template file .htm
Posted: Wed Sep 07, 2011 6:03 pm
Good time of the day.
Please tell me how to add the website template file .htm
Please tell me how to add the website template file .htm
Welcome to the CMSimple_XH–Community!
https://cmsimpleforum.com/
I guess that's the name of the template. Where did you get it?Termin wrote:Good time of the day
Code: Select all
<a href="../../php5/PHPDOCX.htm" onClick="NewWindow(this.href,'name','600','600','yes');return false"><p>ЧИТАТЬ</p></a>
<script language="javascript">
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}</script>
The template is intrinsically linked to content.htm by the whole structure of CMSimple, and the structure of content.htm has to be special. So it is not possible to just use an arbitrary html file as replacement for content.htm. So you have basically to options:Termin wrote:The template is connected file content.htm I need to connect to the template of another file myfile.htm
This can not be!cmb wrote:So it is not possible to just use an arbitrary html file as replacement for content.htm.
content.htm crowded!cmb wrote:Include the body of myfile.htm directly to content.htm with the CMSimple editor.
Plug-ins are very poorly made my opinion.cmb wrote:This could be easily done with the Wrapper plugin.
Ah, I see!So there is a third possibility: you can use the multilanguage feature of CMSimple, as it is quite versatile. Just make of copy of the 2lang/ folder and rename it to have exactly 2 letters (e.g. my/) Then browse to http://www.example.com/my/ and edit it's content. And link to it from your website. You can have as many of those "language" directories as you wish. This language specific content shares all the settings with the base installation (config.php, template.htm etc.) except the language settings; so you can copy cmsimple/languages/ru.php to cmsimple/languages/my.php and cmsimple/languages/ruconfig.php to cmsimple/languages/myconfig.php.Termin wrote:content.htm crowded!
Are you referring to the plugin system or to individual plugins?Termin wrote:Plug-ins are very poorly made my opinion.
All except the system.cmb wrote:Are you referring to the plugin system or to individual plugins?
Termin wrote:Plug-ins are very poorly made my opinion.
cmb wrote:Are you referring to the plugin system or to individual plugins?
IMO there is room for improvement, at least for many plugins. But I won't say: "all of them are poorly made". I would be glad, if you will explain, what is poorly made about them (perhaps in a new thread in the "Open Development" section):Termin wrote:All except the system.
And that's not understand what to do with flags?cmb wrote:So if you're going to use it the way I've described above, you have to sort the pseudo-languages out in languagemenu().
Code: Select all
function languagemenu() {
... // same as it was
while (($p = @readdir($fd)) == true ) {
if (@is_dir($pth['folder']['base'].$p)) {
if (preg_match('/^[A-z]{2}$/', $p)
&& !in_array($p, array('my', 'pseudo', 'languages')) // replace the strings with the names of your "special" language folders
$r[] = $p;
}
}
... // same as it was
I'm afraid that only a minority of plugin developers understand Russian. But anyway, I'll be glad if you'll post a link to your article, when you've written it. Perhaps somebody will translate it.Termin wrote:but it will be described in Russian language!