Git Product home page Git Product logo

daterangetv's Introduction

Hi, I’m Thomas Jakobi 👋

I am a german web-developer & designer based in Münsterland, Germany. I am the developer and/or maintainer of around 35 open source extras for MODX. I am the owner of Treehill Studio, an agency developing premium extras for MODX.

Open Source

I love open source and I commit some of my spare time in open source projects. Most of these projects are extensions to MODX, a content management system to build fast, secure websites.

If you like my work, you can sponsor me on GitHub Sponsors. You can also buy me a coffee (or two) on Ko-fi. I also offer paid coding of custom MODX extras.

Thomas's GitHub stats

Current work

My last open source extra for MODX was TwoFactorX, a MODX extra that adds a two-factor authentication to the MODX manager. Behind the curtain I am working on Cursus, a premium booking system for MODX on base of Agenda.

daterangetv's People

Contributors

dependabot[bot] avatar enminc avatar jako avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

daterangetv's Issues

Fields are not showing in the manager if allowBlank is set to false

Hi,

after upgrading yo 1.3.1-pl3, my daterange TVs don't show anymore.

After some debugging I found that the daterange fields don't show if allowBlank is set to NO. They do if it's set to YES.

Here is what I found in the manager html source of a resource with a daterange tv:

allowBlank set to false:
...

<script type="text/javascript">
    // <![CDATA[
    Ext.onReady(function () {
        MODx.load({
            xtype: 'daterangetv-combo-daterangetv',
            tvId: '17',
            daterangeFormat: '' || MODx.config['manager_date_format'],
            allowBlank: ,
            daterangeStart: '',
            daterangeEnd: '',
            endTV: '',
            renderTo: 'modx-daterange-tv17'
        });
    });
    // ]]>
</script>

...

allowBlank set to true:
...

<script type="text/javascript">
    // <![CDATA[
    Ext.onReady(function () {
        MODx.load({
            xtype: 'daterangetv-combo-daterangetv',
            tvId: '17',
            daterangeFormat: '' || MODx.config['manager_date_format'],
            allowBlank: 1,
            daterangeStart: '',
            daterangeEnd: '',
            endTV: '',
            renderTo: 'modx-daterange-tv17'
        });
    });
    // ]]>
</script>

...

Daterange output in collections is one day off

If I enter in a date such as 02/12/2020-02/15/2020 in a collections child, when I view the collections grid (with the column set up with a daterange renderer) the dates appear as 11.-14.February 2020.

So I know:

  1. The dates are rendering proper format according to the tv
  2. The input is being read by the tv
  3. The input is being rendered by the collection grid properly
  4. I messed up somewhere (or there is a setting that I'm missing hopefully)

I tried turning on the debugging mode and did not get anything helpful, other than I had the wrong locale value. Fixing that has not fixed my issue.

I'm sure this is something dumb and it's staring me right in the face, but for the life of me I can't figure it out.

I can provide screenshots if that helps, too

HAve time be an option too

I see it being super useful for using a daterange for events that start at (for example) 8pm on a monday and run until 10pm on Wednesday. This would be a great enhancement.

year on from and to

My clients wants the year on both the from and to even if it's in the same year. How would I do this.

ie.....August 25, 2015 to December 08, 2015

still broken

DaterangeTV is still broken after update from 1.2.3.

In combination with Migx the daterangeTV breaks down the Migx. You can't give in a date and the other fields are corrupt.

after upgrade to 1.3 daterange tv not working

After an upgrade to 1.3 (on Modx 2.5.1 or 2.5.2) the TV is not working as it should be, no extra fields are shown in the TV and also the other TV's are influenced. After uninstalling daterange the manager of Modx doesn't start up (white page). Error log: (ERROR @ /data/sites/web/nameofsite/www/core/xpdo/xpdo.class.php : 643) Could not load class: DaterangeTV from daterangetv.
(ERROR @ /data/sites/web/nameofsite/www/core/xpdo/xpdo.class.php : 1259) Problem getting service daterangetv, instance of class DaterangeTV, from path /data/sites/web/nameofsite/www/core/components/daterangetv/model/daterangetv/
I had to manually copy the files from github into the component directory to get back access to the manager.

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.