Page 1 of 1

how to load a template

Posted: Mon 23. Nov 2009, 15:56
by wilgen
Hi

How do I get a new template for an article?
I only get the sample Template ( very basic)
How do I select an other template?

Ruud

Re: how to load a template

Posted: Mon 23. Nov 2009, 18:42
by Oliver Georgi
You can create new one and select it then. There is no editor for those kind of templates in the backend.

Re: how to load a template

Posted: Thu 11. Mar 2010, 00:04
by r3chn3r
I'm in the same boat. I'm not good enough with coding to create a template. I did download one though. I just have no idea how to get it to work with my install. I just have the basic template and the template download that I have has some files that aren't in my install at all and I'm kinda lost. Where is the documentation? From what I've seen is a bunch of links that go to the faq that links to the main site that links to the documentation site that links to the faqs again. There's no real, "how-to" written... There are a couple of forum posts that are obscure to me with a bunch of code in it. I just want to know how to use the template I downloaded from http://www.128.weitzelmedia.de/index.php?install_tmpl6

Even the template site fails to include directions..

This system seems really cool, but there's a bit of a learning curve even for saavy people. Documentation borders bad to poor...

Re: how to load a template

Posted: Thu 11. Mar 2010, 09:57
by flip-flop
Hi,

please have a look e.g. Templates (Big John´s Piefecta)

The same procedure you can use for your template - or take out another from the list.

Knut

Re: how to load a template

Posted: Thu 3. May 2012, 19:09
by nebenaube
Ummm, I am being really dense today, I'm trying to create a template for cnt3 to include the revised websnapr, any clues available? I have the new javascript in the page template. Now I could like to add the link related js to cnt3. My install has a folder for one, e.g. www/template/inc_cntpart/linkemail which suggests that I can override the default but it appears I need to create a custom cnt_part or modify cnt3.

Re: how to load a template

Posted: Fri 4. May 2012, 20:01
by flip-flop
What do you mean by CNT3?

Knut

Re: how to load a template

Posted: Fri 4. May 2012, 20:47
by nebenaube
the link&email content part...

Re: how to load a template

Posted: Fri 4. May 2012, 23:06
by nameless1
hello nebenaube,

you can choose new template-files in backend but it wont work, yet. phpwcms will alway render its own mind.

cheers

nml1

Re: how to load a template

Posted: Fri 4. May 2012, 23:39
by flip-flop
At this time there is no template call in use for this cp.

All possible settings are made in config/phpwcms/conf.template_default.inc.php

Code: Select all

$template_default['article']['link_email_before']		= '<div class="linkEmail"><img src="img/article/extlink_1.gif" alt="" /><img src="img/leer.gif" width="1" height="11" alt="" />';
$template_default['article']['link_email_after']		= '</div>';
An easy way to integrate a template is shown in the CP wysiwyg html.

Core:
include/inc_front/content/cnt14.article.inc.php

Template:
template/inc_default/wysiwyg.tmpl
template/inc_cntpart/wysiwyg/wysiwyg.tmpl

Knut