Enhancement: im/export templates (Templatewizard)

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Enhancement: im/export templates (Templatewizard)

Post 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
Last edited by erich_k4 on Mon 25. Sep 2006, 17:10, edited 24 times in total.
jscholtysik

Post 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
trip
Posts: 657
Joined: Tue 17. Feb 2004, 09:56
Location: Cape Town, South Africa
Contact:

Post by trip »

Very nice
well done

TriP
phalancs
Posts: 793
Joined: Thu 19. Feb 2004, 05:09
Location: Germany

cool

Post by phalancs »

Wow, will test that. I thought about something like that often! Great you realized it!!
2008
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

wauw - this will bring phpwcms a step further and make it even more userfriendly!!
http://www.studmed.dk Portal for doctors and medical students in Denmark
feelX
Posts: 76
Joined: Wed 25. Feb 2004, 03:13
Location: 127.0.0.1
Contact:

Post by feelX »

*big applause*

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

hope it would include :arrow: core ...
felix - proud member of los locos

"Never argue with an idiot. They drag you down to their level, then beat you with experience."
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post 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:
User avatar
StudioZ
Posts: 802
Joined: Fri 28. May 2004, 19:57
Location: Québec, Canada
Contact:

Post by StudioZ »

Wow :D :D :D
Erich strikes again 8) 8) 8)
Will soon give it a try :wink:

Cheers and gratitude Erich 8)
Image
PhpWCMS Evangelist, -- iRoutier.com Running phpWCMS 1.4.2, r354 -> Great Version!!!!
User avatar
Kosse
Posts: 1066
Joined: Thu 9. Sep 2004, 12:08
Location: Brussels, Belgium
Contact:

Post by Kosse »

WOW! :shock: :shock: :shock: :shock: :shock:

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

Cheers
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Post 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
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post 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:
User avatar
sustia
Posts: 651
Joined: Fri 2. Apr 2004, 22:29
Location: Lecce (Italy)
Contact:

Post by sustia »

Well done erich, it's a great feature! :D
Campeones del mundo!
Vegetables!
feelX
Posts: 76
Joined: Wed 25. Feb 2004, 03:13
Location: 127.0.0.1
Contact:

Post 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 €
felix - proud member of los locos

"Never argue with an idiot. They drag you down to their level, then beat you with experience."
erich_k4
Posts: 160
Joined: Thu 31. Mar 2005, 10:29
Location: Austria

Post 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.
Erich
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post 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:
Post Reply