Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#73 2017-03-18 22:52:36

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: oui_flat (rah_flat fork) - Manage templates and prefs as flat files

NicolasGraph wrote #304715:

Ok Gocom, no worry, I never wanted to be disrecpectful; I just changed the prefix.

Thanks so much Nicholas for taking a plugin who’s potential was never fully realized and making it exponentially more useful.

I have started using the variables mechanism on every site I build, and the form types work you did is actually a very useful organizational capability that helps simplify more complicated installs.

Thanks again.

Offline

#74 2017-03-21 08:30:37

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

Re: oui_flat (rah_flat fork) - Manage templates and prefs as flat files

mrdale wrote #304895:

Thanks so much Nicolas…

No worry! Glad it helps. Jukka is adding some changes/improvements in a good way and with its core knowledge… Let’s see where it can take us.


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

Offline

#75 2017-03-21 15:51:59

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: oui_flat (rah_flat fork) - Manage templates and prefs as flat files

I like the feature set of your branch, Nicholas, and would prefer not to see the useful features you added rolled back or turned into something less useful.

I use the following features now in all my installs:

  • Prefs as variables
  • Language assignments for prefs
  • Form types assigned by first level subdirectories in forms directory
  • form types not used in form filenames
  • the ability to select which site modes trigger the flat import

I am concerned that the return of sir jukka and a feature merge will remove some of this functionality. Which would force me to use an old unsupported version of switch to oui-flat.

Request: On this last item I would like the ability to trigger imports in live mode as well.

Welcome back Jukka!

Offline

#76 2017-03-21 16:28:45

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

Re: oui_flat (rah_flat fork) - Manage templates and prefs as flat files

mrdale wrote #304964:

If am concerned that the return of sir jukka and a feature merge will remove some of this functionality. Which would force me to use an old unsupported version of switch to oui-flat.

As you can see on Github, Jukka already added some of the features you are talking about.
If there are some good reasons to keep oui_flat alive, I’ll update it.

Request: On this last item I would like the ability to trigger imports in live mode as well.

It should work by customizing the upload_levels function somewhere in the code:

function upload_levels($name, $val)
{
     $vals = array(
         'debug'                => gTxt('production_debug'),
         'testing'              => gTxt('production_test'),
         'debug, testing'       => gTxt('production_debug').', '.lcfirst(gTxt('production_test')),
+        'live'                 => gTxt('production_live'),
+        'debug, testing, live' => gTxt('all'),
    );
    return selectInput($name, $vals, $val, true, '', $name);
}

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

Offline

#77 2017-05-14 02:13:23

murrah
New Member
From: Blue Mountains west of Sydney
Registered: 2017-05-14
Posts: 4

Re: oui_flat (rah_flat fork) - Manage templates and prefs as flat files

Thanks for this! :-)

For a TXP newbie like me, wanting to use my trusty Sublime Text editor, struggling to get my head around the underlying TXP architecture, it would be useful if your Readme included a line that you need to export your data from the database first before you can use your plugin. eg via the jcr_export_txp_templates

Thanks again,
Murray

Offline

#78 2017-05-15 06:48:17

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

Re: oui_flat (rah_flat fork) - Manage templates and prefs as flat files

murrah wrote #305682:

[…] it would be useful if your Readme included a line that you need to export your data from the database first before you can use your plugin. eg via the jcr_export_txp_templates

@murrah, thanks for the feedback, while I don’t use jcr_export_txp_templates, I’ll write something about data export.

Also everyone, I’m still watching rah_flat changes as @Gocom added some (most?) of my changes, sometimes in a better way I did. To be honest, I hope we’ll be able to go back to only one plugin in the next weeks or months, otherwise I’ll throw an update.


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

Offline

#79 2017-06-12 12:17:17

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: oui_flat (rah_flat fork) - Manage templates and prefs as flat files

Hi Nicolas,

Can you please release an update of your plugin with the Composer support commits you made? I’d like to use this plugin on the Textpattern.com site (I am unsure what the current situation is with rah_flat but since Jukka hasn’t visited the forums since March and didn’t release an updated rah_flat version with his extra commits I’m unable to use that plugin).

Thanks in advance!

Offline

#80 2017-06-13 00:16:48

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,072
Website Mastodon

Re: oui_flat (rah_flat fork) - Manage templates and prefs as flat files

Yes, Please lets keep such an important plugin up-to-date and easily findable ….


…. texted postive

Offline

#81 2017-06-14 13:29:01

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

Re: oui_flat (rah_flat fork) - Manage templates and prefs as flat files

Hi, Sorry for the delay; I threw a new pre-release available via Composer. I’ll be back at home next week to see what should be updated from rah_flat.


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

Offline

#82 2017-06-14 13:49:04

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: oui_flat (rah_flat fork) - Manage templates and prefs as flat files

Hi,

Thanks but your textpattern-lock definition is incorrect, causing the Composer install to fail. If this plugin indeed works with Textpattern 4.5 onwards then you need to change:

"textpattern/lock": "4.5.*,4.6.*",

To

textpattern/lock": ">=4.5.0",

Offline

#83 2017-06-15 07:09:42

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

Re: oui_flat (rah_flat fork) - Manage templates and prefs as flat files

philwareham wrote #305965:

Thanks but your textpattern-lock definition is incorrect […]

Ok, sorry, If you can wait untill next week I’ll perform more tests and do something tidy.


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

Offline

#84 2017-06-15 08:04:24

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: oui_flat (rah_flat fork) - Manage templates and prefs as flat files

Sure, I can wait, thanks!

Offline

Board footer

Powered by FluxBB