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 » Mon 23. Nov 2009, 15:56

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: 9478
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau
Contact:

Re: how to load a template

Post by Oliver Georgi » Mon 23. Nov 2009, 18:42

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 | Kleintierpraxis am Georgengarten

r3chn3r
Posts: 1
Joined: Wed 10. Mar 2010, 23:58

Re: how to load a template

Post by r3chn3r » Thu 11. Mar 2010, 00:04

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 » Thu 11. Mar 2010, 09:57

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 » Thu 3. May 2012, 19:09

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 » Fri 4. May 2012, 20:01

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 » Fri 4. May 2012, 20:47

the link&email content part...

nameless1
Posts: 847
Joined: Sun 27. Apr 2008, 23:22

Re: how to load a template

Post by nameless1 » Fri 4. May 2012, 23:06

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 » Fri 4. May 2012, 23:39

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