Git Product home page Git Product logo

staticsaver's People

Contributors

argnist avatar linlex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

staticsaver's Issues

Better Docs Please

It's really helpful if you include full working examples in your docs any time you release code. For example:

For example,create Media Source with name "Templates" and path something like "{core_path}/elements/templates/"

The {core_path} placeholder does not seem to be supported, and even if it were, the core_path ends with a trailing slash, so at best that example is wrong. It's also incomplete. Should the path be relative or absolute? Defining a source type has a lot of other options and it's not clear how (or if) any of them affect the saving of the elements.

Also, please include links back here to Github clearly on your package description: that's the only real way you can get feedback from users.

Flat file processor support is deprecated in MODX 2.7.0

(ERROR in modProcessor::run @ /.../core/model/modx/modprocessor.class.php : 177) Flat file processor support, used for action check with path /.../core/components/staticsaver/processors/check.php, is deprecated since version 2.7.0.

Adding more settings for file types

maybe:
.chunk.html
.template.html
.snippet.php
.plugin.php
just for adding some room for devs preferences.
haven't tried the plugin. its only a suggestion parting from the readme contents.

After few months from your last commit, do you still use it for your workflow?
Does it works ok in 2.2.7/2.2.8?

Unwanted prefix being added to file and category folder on creation

First of all thanks for the great plugin. I like modx but not its insistence of storing code in the db. Your plugin makes using IDE much easier.

Got a strange issue though. upon creation of any element the type of element is being pre-fixed to the file name or category folder name.
For example creating a new chunk called 'test' results in the file called 'chunkstest.chk'
Creating a new chunk 'chunk1' in a category 'testcategory' results in 'chunkstestcategory/chunk1.chk'
It looks like lowcase name of the media source is being prepended. I looked through the javascript file but couldn't find where that happens.
Any suggestions?

Also the staticsaver setting staticsaver.include_category is set to no but the category folder is still being created.

'Include category folder' does not create folders

After enabling staticsaver.include_category in the system settings, folders are not automatically created on disk. If I prefix the generated filename with "foldername/", the folder is created.

Replicated on v2.2.15 and 2.3.1

It seems that the following lines in staticsaver.js are the issue as if the condition is true only the chunk name is used:

if (staticFile.getValue() == '') {
            setValue(staticFile, nameInput.getAttribute('value'));
        } else {
            getRequest();
        }

Не получается настроить

Виталий, подскажите, в чем может быть проблема?
Создаю сниппет. Настройки выполнил по видео. Но!

  1. источник файлов автоматом не устанавливается, приходится вручную выбирать.
  2. Имя файла не формируется. Но если обновить страницу, то начинает работать правильно - появляется расширение php и имя формируется из названия сниппета.
  3. static_default установлен в 1. Но галочка не ставится.
    В журнале вижу только:
    Error caching lexicon topic lexicon/ru/staticsaver/default

Create Modx Element from new file located in Element's basePath

I would like to see an Element, like chunk or snippet, get created when the file exists in the SaticSaver basePath but does exist in the Element's tab.

This would be useful for deploying code with git. When pulling in new files, all you would need to do is log into the manager and ClearCache. Then the Element is created, stored in the DB, and able to be edited from within the CMS.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.