Jump to content

joshuag

Members
  • Posts

    282
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by joshuag

  1. Hi guys, I was very excited for this module, but my life took a huge direction change and I no longer have the time to invest in module development. I am gonna leave the files here. You guys can take it and run. Maybe there might be something useful here. Maybe not. I still think it's a good idea to do drag and drop modal building in PW. So hopefully one day something like that can come to light. I love this community and I love ProcessWire.

    Live long and prosper. 
    - Joshua

    Designme 2.zip

    • Like 20
    • Thanks 4
  2. 4 hours ago, Roych said:

    Hello,

    just a question ... Is this module now free or ...? As I can see you can download a "free" copy of Recurme from the site, but it's not working because you still need a license key. If it is free to try is it possible to get a license somehow? 

    If it is no longer supported not sure if I would pay for it. 

    Thank you

    R

     
    In MarkupRecueme.module file. 
    Line 1082
     
    Change the first “false” to “true”:
     
    private function i(){$this->v = false;} // change to true;
  3. 9 hours ago, happywire said:

    Totally agree. Keep ProcessWire clean and do what you like to do in the backend.
    Having a default editor that all new devs/clients must use would ruin ProcessWire for good.
    More a fan of "build it yourself, nice and clean" than "click and drag it yourself" .. and be left with a mess of badly performing source code full of external libs etc.

    We are using the included in PW jQueryUI drag, drop, sorter. 

    • Like 3
  4. @Robin S

    Quote

     Yes, but it can be set by anyone linking to your site, so I think it definitely needs to be verified. If you just display the event date from the GET variable without verifying it then any third party can create a link to your site that causes your event page to display any date of their choosing. I solved it like this:

    Oh that is a good point. I never thought of that. 

    Quote

    Not quite. You are first passing the string through date()...

     

    On 9/2/2018 at 2:57 AM, Robin S said:

    // ... if(date('U',$date)){ $date = $date; } // ...

    ok, I am going to write a test for this line for your 2 examples. I need a better way to test for a unix timestamp. 

     

    • Like 1
  5. @chcs You are right, you would have to "manually" use the date from the get variable. I did it this way because I didn't want to make any assumptions about how to use the event data. the event/page Recurme data contains ALL the dates for an event/page. SO, by passing the calendar day date in the url, you are able to highlight the correct day in your template however you want. 

    The way we use this on most of our applications is that an event/page will actually list all it's event dates/days and highlight the one that you are currently looking at (by comparing it to the get variable). That is just one way to use it. 

    I think you are right, that in some cases, mutating the event/page data internally depending on the date variable could be more convenient in some cases, but what if you don't want to do that? What if there is no date variable in the URL. Either way, you have to make some considerations of how your logic is for your event/page depending on how you are viewing it. The link with the date, is suppose to be an easy and convenient way to have some flexibility. 

    Sometimes we have multiple lists and calendars pointing to the same event/page but for different dates. All those links go to the same event/page. 

    The ->date property is the original event date. Useful for a number of cases in conjunction with the currently viewed date variable in the url. Maybe the right answer is to have a ->currentDate property or something along those lines for those that want to use it. Default to the original even date if there is no currentDate? or False, will have to think this through. 

    Thanks for the great feedback. 

     

  6. @Robin S @chcs foo.com/events/three_days/?date=1534968000

    The date get variable ie. ?date= that is part of the calendar or list href is the day that the link is on. Since an event page holds all the recurrences, you can use this date to show the current date in your event view when visited from a calendar. That is all it's for and is optional. It will always be the date the link is on. No need to 'verify' this date. it's going to be correct, otherwise it wouldn't have shown up on that day in the calendar or list. We use it all the time to highlight this day in the event view when you click a link. It is not used internally. 

    @chcs use $event = $recurme->event($page)

    @Robin S 

    • I will try to reproduce the error you are having with stdClass::$timeEndUnix. The last set of files I sent you were my dev version. 
    • Find will return the events of TODAY if there are no dates supplied. If there are no events TODAY then it will be empty.
    • I will PM you a New link to download updates. I suspect my emails to you go to your junk. 
    • As for date strings, take a look at 137 - 148 in MarkupRecurme.module. You will see that I am actually passing the dates straight to strtotime().

     

     

  7. 11 hours ago, Robin S said:

    When removing a field from Page Edit, is the user removing that field from the associated template? Does that happen on the fly or Is there some sort of "Apply" step that happens at the end with the normal warnings about the loss of data that will occur? If it happens on the fly is there an undo feature? I'd be a bit nervous about accidentally clicking on the field remove button otherwise.

    It's happening on the fly. You are right, lot's of potential for destruction or accidents. I have double confirmation on deletes, but I keep turning it off because I am adding and removing a million fields every day. I will post an example in the next video. It's pretty un-intrusive, but adds the protection. Good catch ?

    (also, thanks for the help with showing empty fieldsets. As you can see in the video, it worked out quite nicely).

    • Like 3
  8. 11 hours ago, MilenKo said:

    Joshuag, from the videos I can tell that the work of your team is a masterpiece. It would be great to test the functionality in real whenever you are ready for a release. Keep up the good work. That is why I signed up for ProcessWire - because of its super creative and extremely supportive community.

    If you need some testers, you can count on me. I am just starting a new project and a module like yours would help me get more efficient while at the same time I would make sure to report any issues spotted or share ideas of improvement (if any ofcourse ? )

    OK, in the next few days I will send you a copy. Thanks! ?

  9. 1 hour ago, BrendonKoz said:

    Is it dynamically creating a custom template on-the-fly? Just quickly thinking how it works, though it doesn't really matter. Quite slick indeed.

    In this demo video, it is working from the existing 'home' template. All Ajax requests are going directly to the existing ProcessPageEdit url. there are no 'dynamic templates', but very shortly, you will have the ability to create templates on the fly from the page tree and start editing directly in Designme to speedup template/data model creation. So you can start with a completely blank template/editscreen and start throwing in fields as fast as possible. (hope this makes sense). 

    • Like 6
  10. 3 minutes ago, Pete said:

    I've been thinking PW could do with something like this for a long time but your implementation is way better than anything I had imagined - great work! ?

    Thanks a lot. I think the biggest challenge so far has been to try to make Designme feel like a natural extension of using PW instead of an additional layer of complexity.  

    • Like 1
  11. 3 hours ago, jmartsch said:

    Wow, I waited so long for something like this. I think this could push ProcessWire really forward. When do you plan to release? And will it be a paid module or a free one?

    Thank you for creating this.

    It's coming along quite nicely. I do not have a firm release/completion date yet, although working towards it as fast as possible. As soon as I can I will answer all your questions about Designme. Hopefully by the end of this week I will be able to show you guys some more features that I didn't include in the preview video. ?

    • Like 5
  12. @Robin S Ok, thanks a lot for your help, this worked perfectly. I don't know why I didn't think of this after so much digging. Seems so simple hindsight. You literally just helped me remove a BUNCH of JS I didn't want in my application. Thanks a million. This worked for both tabs and regular fieldsets. (well I am doing it to all InputfieldWrappers). 

    Here is what I used: 

    // make inputfieldWrappers render by FORCE even if they are empty
    $this->addHookBefore('InputfieldWrapper::render', $this, 'inputfieldWrapperShim');
    
    public function inputfieldWrapperShim($event){
    	$inputfieldWrapper = $event->object; 
    	$f = new InputfieldText();
    	$f->attr('id','-hidden-shim-'.rand());
    	$f->attr('name','-hidden-shim');
    	$f->attr('class','-hidden-shim');
    	$inputfieldWrapper->add($f);
    }


    For anyone wondering, I didn't use InputfieldMarkup because it's an InputfieldWrapper so we would end up being stuck in a loop forever. 

    • Like 2
  13. 1 hour ago, Robin S said:

    Testing with actual fields in the template (just for convenience, and will be the same for inputfields added dynamically with InputfieldWrapper::insertAfter(), etc)...

    2018-07-04_150557.png.4ed92f81c13179097a03b60295316a1e.png

    Empty fieldset: renders fine.

    Empty fieldset tab: tab itself renders but not the tab content. Probably needs some inputfield contained within it even if that inputfield isn't visible. Try InputfieldHidden, or InputfieldMarkup with no markup and the skipLabelHeader option.

    Thanks Robin, 

×
×
  • Create New...