Textpattern CMS support forum

You are not logged in. Register | Login | Help

#71 2017-03-14 10:34:16

etc
Developer
Registered: 2010-11-11
Posts: 3,207
Website

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

Textpattern dev is not a lethal curse — what a relief! Nice to see you again, Sir Jukka.


etc_[ query | search | pagination | date | tree | cache ]

Offline

#72 2017-03-14 11:07:03

Gocom
Plugin Author
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,532
Website

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

etc wrote #304717:

Sir Jukka

Oh, silly you; despite my absence, I’ve not been knighted. The ravier is just for slicing these pineapples.

NicolasGraph wrote #304715:

…Please don’t haunt my home! ;-)

Don’t worry, even if I want to, I’m not able to. See, ghosts are attached to the object or the place they are haunting in the first place. Altho, if I were to ship this laptop to France…

Offline

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

mrdale
Moderator
From: Walla Walla
Registered: 2004-11-19
Posts: 2,202
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
Moderator
From: Walla Walla
Registered: 2004-11-19
Posts: 2,202
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: Farnham, Surrey, UK
Registered: 2009-06-11
Posts: 3,196
Website

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: 1,483
Website

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

Board footer

Powered by FluxBB