Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-07-02 14:18:37

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

hcg_themes

We don’t need no stinking Themes!

hcg_themes is a modified version of the hcg_templates plugin.

hcg_themes was created as an interim step for testing the new proposed Themes mechanism in Textpattern. Yes, you heard that right, Textpattern is slated to have the ability to easily import Theme packages.

Proposed folder layout:

  • /files
  • /images
  • /textpattern
  • /themes
    • /default
      • /files
        • Scripts – .js, .swf, …
      • /forms
        • Presentation – Forms (.txp)
      • /images
        • Graphics – .jpg, .gif, .png, …
      • /pages
        • Presentation – Pages (.txp)
      • /styles
        • Presentation – Style (.css)

Features

  • Import a complete theme set – Pages, Forms and Styles.
  • Export your themes for archive purposes or offline editing.

Installation

  1. Create the /themes folder in the root of your Textpattern install.
  2. Make the /themes folder writable by the web server.
  3. Install hcg_themes via Admin / Plugins.

Download

hcg_themes_v0.5.txt (Textpattern 4.3.0 and above)

Last edited by hcgtv (2015-09-26 15:13:19)

Offline

#2 2015-07-02 16:51:55

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: hcg_themes

Hi Bert,

I moved the topic in the plugin author support forum and updated your profile so as to be able to start topics there should you have any other plugins under your sleeve.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#3 2015-07-02 18:11:04

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

Re: hcg_themes

colak wrote #292513:

I moved the topic in the plugin author support forum and updated your profile so as to be able to start topics there should you have any other plugins under your sleeve.

Thank you sir, you are most kind.

Offline

#4 2015-07-06 17:12:49

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: hcg_themes

hcgtv wrote #292498:

hcg_themes was created as an interim step for testing the new proposed Themes mechanism in Textpattern.

Nice, thanks, I’ll give it a try!


Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#5 2016-05-04 08:39:42

NicolasGraph
Plugin Author
From: France
Registered: 2008-07-24
Posts: 860
Website

Re: hcg_themes

Hi, the help content of the plugin seems to be outdated.

Naming conventions example…

  • themes
    • forms
      • comments.comment.txp
      • default.article.txp
      • plainlinks.links.txp

…should be:

  • themes
    • forms
      • comment.comments.txp
      • article.default.txp
      • link.plainlinks.txp

Nicolas
Follow me on Twitter and GitHub!
Multiple edits are usually to correct my frenglish…

Offline

#6 2016-06-17 13:14:25

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: hcg_themes

Heads up:
I tried this on 4.5.7 and it garbled my txp_form table on re-importing, causing a JS error whenever I opened a page under Admin > Forms. Might be this is caused by the plugin not taking suffixes into account (rah_eo_form_name.html). On the other hand I have two suffixed forms and only one went wrong. Anyways, looking at the txp_form table I found my form’s name was split so I had the suffix in the name column and the name part in the type col which created an inaccessible twistie on top of the forms column on Admin > Forms.

I’ve not yet tried hcg_themes on 4.6, so it might be this is only an issue in versions up to 4.5.7. But regardless my advice is to have a backup at hand when importing.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#7 2016-06-17 15:03:28

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: hcg_themes

Another issue I see with this plugin: Before importing anything it creates a backup (which actually is a good thing) in a folder named preimport-data. But you don’t really have a safety copy with this feature cause that folder’s contents is overwritten on the next import. That’s also valid, BTW, for hcg_templates, its predecessor. Perhaps also for the plugin it’s based upon (mcw_templates) and those that are derived from hcg_templates (cxc_templates, mem_templates).

To my mind, the preimport-data folder should have a timestamp in its name.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

Board footer

Powered by FluxBB