Page 1 of 7

Enhancement: im/export templates (Templatewizard)

Posted: Tue 14. Mar 2006, 11:07
by erich_k4
Hello phpwcms-friends!

Export and install pagelayouts, templates and templatesets

:idea: it's ready for public testing

for phpwcms ver 1.2.8 and 1.2.6 DEV

comments and bugreports welcome....

basic information, screenshots:
http://www.kmedv.at/wcms/index.php?template_wizard

download here:
http://www.kmedv.at/wcms/index.php?tw_download

Whats new:

25.9.2006
ver 0.96
* now compatible with phpwcms 1.2.8
* some minor layoutchanges


4.4.2006
ver 0.95
fixed a display bug in IE
all IE users please update to ver 0.95

3.4.2006
ver 0.94
some minor enhancements for the template-browser
changes in setup-script



Features:
- export pagelayouts
- export templates
- export templatesets (including pagelayout, template and internal css-file)
- export secured templatesets (password protected)

- import pagelayouts
- import templates
- import (secured) templatesets

- templateset browser for available templates (with screenshots and other information)
- applying templates to the whole site with a mouse click
- copying of pagelayouts
- uninstall templatesets

- frontend-template switcher

- setup script for easy installation


Erich

Posted: Tue 14. Mar 2006, 11:22
by jscholtysik
Hi Erich,


great extension!!!! Great idea!!!


Could you please send an email to Oliver Georgi and ask him if he could add your code to the core system, so that it would be standard for all future releases?


Thanks in advance.


Joachim

Posted: Tue 14. Mar 2006, 11:49
by trip
Very nice
well done

TriP

cool

Posted: Tue 14. Mar 2006, 12:18
by phalancs
Wow, will test that. I thought about something like that often! Great you realized it!!

Posted: Tue 14. Mar 2006, 14:27
by frold
wauw - this will bring phpwcms a step further and make it even more userfriendly!!

Posted: Tue 14. Mar 2006, 14:44
by feelX
*big applause*

now i'm take some of my rare free time to make free templates ...

hope it would include :arrow: core ...

Posted: Tue 14. Mar 2006, 15:03
by pepe
Hi friends,

while writing my templates, the biggest problem was:
How to tranport all the needed files to the users directories....
whithout a fault and in a way, that even an absolut newbee can handle it...

:idea: Now we have a solution... THANKS erich_k4, that's GREAT :idea: ... and i know what i say!

One step more, in the right direction...
Hope, that Oliver will add it (or something like it) to one of his next releases :roll:

Posted: Tue 14. Mar 2006, 15:16
by StudioZ
Wow :D :D :D
Erich strikes again 8) 8) 8)
Will soon give it a try :wink:

Cheers and gratitude Erich 8)

Posted: Tue 14. Mar 2006, 15:48
by Kosse
WOW! :shock: :shock: :shock: :shock: :shock:

This is going to have a loooooooooooooooooong life!
Hip hip erich!!!!

Cheers

Posted: Tue 14. Mar 2006, 18:05
by erich_k4
Thank you all!!!

But its only a first step!
Feelx told me to take look at wordpress and its themes handling,
woow i would say thats userfriendly....

We should think about something similar:

We need a complete themes-package including all the necessary files like pictures, js-files and so on. Currently the template export only handles the pagelayout, template and main-css file.

To do it like wordpress we need:

1. a themes directory were all themes have to be stored e.g.

Code: Select all

--phpwcmsROOT
     |--themes
           |--basic_L
           |--basic_XL
2. a defined directoy structure for the themes-data

Code: Select all

--basic_L
    |--images
    |--js
    |--css
    basic_L.tmpldat 
    notice.txt
    screenshot.jpg             
and 3.? no point 3 at the moment! :wink:

Erich

Posted: Tue 14. Mar 2006, 18:13
by pepe
oh, ohhhh erich_k4.... you are so right :idea:


But: Without OG it's impossible!

Each developement, that changes one file outsite the themes-pack, will kill that good idea :cry:

Posted: Tue 14. Mar 2006, 18:28
by sustia
Well done erich, it's a great feature! :D

Posted: Tue 14. Mar 2006, 22:33
by feelX
i've only php very basic php knowlege but coding logic expiriences i've from many years ago ... :)

here the details behind my idea:

- 1 or 2 files of core change like erich do in his start as bridge to the mod

- rebuild with a template dir and subdirs the structure how phpwcms actual parse html, css, js

- then give it to the parts in the core actuall parse that things

- add a dir for the images

- all templatemod code in its own files and dir

- then in the acp are the old template possibilities and the new one side by side

the (template)bridge should only need small changes in 1-2 core files and should be give the possibilies to use the classes or functions in the phpwcms core

with the new feature we can get more and other users. it would simplify teh handling of templates. we all solve time in case of build and install templates.

in the past me stops to make free templates 4 phpwcms 3 things:

1. no simple template handlings for users, installing needs to much time & knowledge
2. to much time need for do docs for the installing
3. the risc that people request to much suport and time for it

i know i'm not alone with that feelings ...

if we can realize a good templatepart phpwcms get more fun and get more popular ...

hope some of the good php slackers arround here teamed up with erich that he don't has to do the job alone ...

and i gurantee if it would be done with this features i do nice templates under gpl to give the phpwcms users more fun ...

not everybody can pay for professional gfx or design by several reasons ...
so i support since the early internet days projects with free scripts special under gpl or similar licences ...
would be nice if more people do that ...

where we would be without oss like linux, postgres, mysql, perl, php and a lot more ? in a jail build with M$ software ?

just my 0,02 €

Posted: Mon 20. Mar 2006, 20:06
by erich_k4
Hi all!

Here are some news about the import/export-templates topic:

Image

As shown above there is a little screenshot (provided by a template set) for each template and two additional links:
Template information
is a link to a readme.htm file (opens in a new window) where the template-vendor could provide some information about the template like usage instructions or extended copyright information and so on.
apply template
applies the template to the whole site structure, so its very easy for the enduser to switch between different templates.

Also template importing is improved:

Image

Required files for such a template-set:
  • readme.htm
    a template dat file e.g. free_L.tmpldat
    screenshot.jpg
    templatevendor.php
all other files (css, js, images) and folders a free to the template creator..

And with this new version its not necessary to overwrite the default-css file, you can use your own, located in the template folder.

Posted: Mon 20. Mar 2006, 21:21
by pepe
GREAT... Erich! Nothing more to say :idea:

The start of a new era of creating phpWCMS-templates ... and share them in an easy way! Hallelluja :lol: