Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2007-03-26 16:48:43

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Theme mechanism for TxP 4.0.X

zero, I kept the Pages, Forms and Styles names close to the defaults to ease understanding of the mechanism. But anybody can use what they desire, as long as you have a unique prefix denoting your design.

mrdale, good to hear CrystalX is working. Yes, the setting of defaults in the sections needs improving, I’m looking into this.

Offline

#26 2007-04-30 04:55:06

root
Member
From: Manila, Philippines
Registered: 2004-05-31
Posts: 48

Re: Theme mechanism for TxP 4.0.X

Oh wow, I can’t believe I missed this! I’ll try this when I have free time. Thanks :D

Offline

#27 2007-05-21 20:39:08

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Theme mechanism for TxP 4.0.X

Bert, I finally got round to trying this out and it’s great! It will save everyone a lot of time in the template competition if everyone uses it. You’re da man!

Is there a way for me to export an existing template and add a prefix to every file, so it imports in the same way as Mistylook? I know I will have to then manually add the prefix here and there to the contents of forms, pages and styles to make it work, but if I could add the prefix on export, it would help me a lot cos I have a lot of forms and pages and styles.

Alternatively, is there some utility that I could do this with the exported files?


BB6 Band My band
Gud One My blog

Offline

#28 2007-05-21 22:00:07

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Theme mechanism for TxP 4.0.X

OK, I found something called Bulk Rename Utility that does the job perfectly :-)

( for those who want to use it just add the prefix to Add 7 )


BB6 Band My band
Gud One My blog

Offline

#29 2007-05-22 13:11:25

hcgtv
Plugin Author
From: Key Largo, Florida
Registered: 2005-11-29
Posts: 2,722
Website

Re: Theme mechanism for TxP 4.0.X

zero wrote:

OK, I found something called Bulk Rename Utility that does the job perfectly :-)

I use XnView for my file renaming needs, even though it’s an image viewer it has a very capable file renaming utility.

Glad you like the templating mechanism, hope to add more designs as time permits.

Offline

#30 2007-05-22 13:39:17

zero
Member
From: Lancashire
Registered: 2004-04-19
Posts: 1,470
Website

Re: Theme mechanism for TxP 4.0.X

hcgtv wrote:

I use XnView for my file renaming needs, even though it’s an image viewer it has a very capable file renaming utility.

Cheers, it looks interesting. I’ll check it out later


BB6 Band My band
Gud One My blog

Offline

#31 2008-01-29 11:01:21

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: Theme mechanism for TxP 4.0.X

I found that the _templates directory crerated by the hcg_templates plugin can’t be deleted by the admin of the server: the files and directories it writes are owned by the webserver (Apache in my case).

Any solution to this?

Offline

#32 2008-08-18 22:00:16

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: Theme mechanism for TxP 4.0.X

I was getting the following warning when trying to create a ‘_templates folder’ within my root directory;

Warning: opendir(/home2/andymitc/public_html/templates) [function.opendir]: failed to open dir: No such file or directory in /home2/andymitc/public_html/textpattern/lib/txplib_misc.php(574) : eval()'d code on line 306
Warning: readdir(): supplied argument is not a valid Directory resource in /home2/andymitc/public_html/textpattern/lib/txplib_misc.php(574) : eval()'d code on line 310

But then I tried creating “templates” (without the underscore) and voila, it worked.

What’s up with that?

Last edited by dreamer (2008-08-18 22:00:51)

Offline

#33 2008-08-18 22:13:24

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: Theme mechanism for TxP 4.0.X

This plugin looks great!

Offline

#34 2008-08-18 22:25:06

MattD
Plugin Author
From: Monterey, California
Registered: 2008-03-21
Posts: 1,254
Website

Re: Theme mechanism for TxP 4.0.X

dreamer wrote:

But then I tried creating "templates" (without the underscore) and voila, it worked. 

I noticed that also. Seems like the documentation and the code are out of sync. You can easily change it to use _templates on this line

"base_dir" => "_templates",

Strange, mine says version 0.3 and doesn’t say it’s been modified but has it as _templates


My Plugins

Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker

Offline

Board footer

Powered by FluxBB