how to load a template

post everything related to phpwcms templates here
Post Reply
wilgen
Posts: 4
Joined: Tue 3. Nov 2009, 14:59

how to load a template

Post 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
User avatar
Oliver Georgi
Site Admin
Posts: 9888
Joined: Fri 3. Oct 2003, 22:22
Contact:

Re: how to load a template

Post by Oliver Georgi »

You can create new one and select it then. There is no editor for those kind of templates in the backend.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
r3chn3r
Posts: 1
Joined: Wed 10. Mar 2010, 23:58

Re: how to load a template

Post 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...
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: how to load a template

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
nebenaube
Posts: 139
Joined: Fri 23. Nov 2007, 20:39
Location: Redlands, CA
Contact:

Re: how to load a template

Post 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.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: how to load a template

Post by flip-flop »

What do you mean by CNT3?

Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
nebenaube
Posts: 139
Joined: Fri 23. Nov 2007, 20:39
Location: Redlands, CA
Contact:

Re: how to load a template

Post by nebenaube »

the link&email content part...
nameless1
Posts: 878
Joined: Sun 27. Apr 2008, 23:22

Re: how to load a template

Post 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
Last edited by nameless1 on Sat 5. May 2012, 13:16, edited 1 time in total.
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: how to load a template

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
Post Reply