Jump to content

Macrura

PW-Moderators
  • Posts

    2,776
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by Macrura

  1. replying to the OP - use a data- attribute on the select using jQuery you read that data attribute for the selected item and then show it... see more here: https://processwire.com/talk/topic/419-extending-inputfields/?p=76861
  2. right i just checked and i do have all of the spf and dkim records correctly done but i think you are saying that i should not use the mg subdomain and change that to the normal domain so i don't get those sent by things.. i wonder if you can have both mailgun and mandrill txt records
  3. ok thanks - i followed their recommendation of the mg subdomain but i guess i need to now add all of the sending domains and dkim records for those domains, at least that's how it is with Mandrill...
  4. @Pierre-Luc thanks for this module, everything seems to be working well and i greatly appreciate all the time you put into it; Mailgun is great, and i can see myself using it a lot in the future for transactional emails in processwire. My only issues are probably more about adjusting from Mandrill to Mailgun, i do like the Mandrill interface in terms of seeing the outbound activity list, sender, status, subject, view content etc; it's a bit more user friendly; also, this may be how i have it configured but the from address on mailgun shows a "sent by " and then a long email address like person@mg.domain.com ; i know i'm going to get some complaints from clients if that is something that can't be changed, and they may just prefer paying the $10/month mailchimp minimum plan to carry on with Mandrill..
  5. you would have 2 options i think (besides the runtime sort field as described above), one is to sort the Pagearray after , using ->sort(field1|field2) or you could store the sortdate as a hidden field on the page using a module to write that field everytime the page is saved
  6. been playing with Selectize.js for complex single selects; in combination with a module that lets you take various fields from the page you are selecting and put those into a json array as a data-data attribute... the selected option: open with search: sort of a supercharged chosen select .. might be worth having selectize.js into an alternate to chosen select, and bundled with the ability to define the array for json data att
  7. oh yeah, cool, for some reason i thought i fixed it, but i will take care of it and update - many thanks for reporting this!
  8. thanks - the latest version should have this already on line 93: $siblings = $this->editedPage->siblings("include=all"); are you sure you have the latest version?
  9. this is presenting a major hassle for me, i have 2 places now where this markup appears in selects, one in admin and one on a formbuilder form, and i can't launch this site till i can fix it. any idea on how to hook and fix? been trying various things with no luck; tried hooking into FieldtypeMulti, FieldtypePage, Fieldtype, can't get the hook to fire or strip those tags EDIT: while it would still be good to have a fix for PW 2.7 branch for displaying these, i have found a solution described here: https://processwire.com/talk/topic/12045-page-select-subfield-display-issue/?p=115674
  10. @justb3a - thanks, and i accepted the pull req and i'll up the version and add the table css tomorrow...
  11. hey this is great and was something i was eventually going to work on also, because it would be good to have a dedicated fieldtype for key value where they are entered into fields like this. Currently i use tables for this, and here is a thread with some other info, possible use cases; one thing that might be cool would be to have another column as in Martijn's example, so there is a name (key) label and value, and in his example there is also a trick for hiding the name of the keys from non super users (so they wouldn't break the front end in case they changed an in-use variable) https://processwire.com/talk/topic/8373-use-delimited-texarea-table-or-yaml-for-settings/
  12. cool, glad it's working out; i just added table css, from uikit to the scoped css; not sure how needed it is, but i just started using tables in my documentation and saw there was no styling; ** i'll be adding the table styles to the next update
  13. the process admin help does not interact with the help tabs; the process module only gives you like a global page where all of the help docs are in 1 long accordion. the help tab on the page editor is rendered in the help tab module, so it does a selector to see if there are any matching help docs based on the template select and then I think it uses a hardcoded body field, so in terms of that, i would probably need to implement a setting to allow users to select which field will contain the markup... i will check it out and get back
  14. Right, they are just body fields rendered in the accordion; you would setup the help root and then the help pages themselves, and then select which templates to show on; all markup for the help page itself would be done in the ckeditor
  15. could you post a screenshot ? does the lightbox option work? i can test again, maybe i broke something on the last update...
  16. do you mean the help tab, or the process page, that shows all of the help docs?
  17. this may also be of use: https://gist.github.com/pamelafox-coursera/5359246
  18. I didn't know it was possible. but RSS seems to support pagination; you'd need to hack the module i think though in order to support the pagination. In terms of filtered feed that sounds riskier, but you can always load the feed with a different page array, shouldn't be any issue, maybe you can explain more about why you need it - i guess you want different feeds with different titles, but want to generate them all off the same page?
  19. update - if you need to be able to access your variables inside functions or the admin you can use $config.. in config.php, setup an empty array for siteSettings like this: $config->siteSettings = array(); then in ready.php file, array merge values from a settings table (profields table) or any other type of setting (MultiValue Textformatter, YAML settings ...), in the admin like this: // Get your settings from wherever $st = $pages->get('/settings/')->settings_table; // temporary array to merge with global $settings = array(); foreach($st as $row) { if(!$row->value) continue; if($row->disable == 1) continue; $settings[$row->setting] = $row->value; } // merge $config->siteSettings = array_merge($config->siteSettings, $settings); i'm curious if anyone sees any possible issues with this; it works now and i can access my siteSettings everywhere doing this; you can access the settings like this from templates: echo $config->siteSettings['yourKey']; or in function.. echo wire('config')>siteSettings['yourKey'];
  20. so if i wanted to make an api variable called settings, how would i populate it with the object, say from the ready.php, or would i need to create a module? so would it then be possible to have a wire('settings')->siteTitle sort of thing?, instead of $config->siteSettings['siteTitle']
  21. ok thanks - that's good to hear ! on some previous projects i was getting those values in the _init and just setting variables i could use in templates, but were not available in functions, modules or the admin (such as in runtime markup field). For this, I had initially tried to add items to the array directly but was running into an "indirect modification of overloaded property" error. After researching that, i solved it by using the array merge; though i am curious if there is a way to add items directly on the fly from a template file, maybe i need to use the _set ? __set( $key, $value ) Provides direct reference access to set values in the $data array
  22. in my config.php, i setup an empty array for siteSettings like this: $config->siteSettings = array(); then in my ready.php file i'm array merging some values from a settings table (profields table), in the admin like this: $st = $pages->get('/settings/')->settings_table; $settings = array(); foreach($st as $row) { if(!$row->value) continue; if($row->disable == 1) continue; $settings[$row->setting] = $row->value; } $config->siteSettings = array_merge($config->siteSettings, $settings); i'm curious if anyone sees any possible issues with this; it works now and i can access my siteSettings everywhere doing this;
  23. sorry if this sounds nitpicky, but i've never seen all caps for php tag (<?PHP) (?)
  24. you'd probably need to redo this logic; 1.) maybe consider an array for your body classes which you an unset keys for based on some conditions 2.) you should not be rendering the sidebar at all if there are no widgets, which means that you need to check your widget counts for each area before _main; that's why you probably need to do a pagearray or something; it's too late to check the selector once you are already looping, unless you can at that point you can unset/set the necessary array key for the body class; this can be resolved but the logic needs to be adjusted because as of now you are assuming there is always something in the sidebars; when i did my example, it was on a template that always had a sidebar no matter what, so i was able to safely foreach those addon widgets; but again, in your case you need to collate your widgets for each respective part of the page before you output any markup so that your body classes can be correct
  25. you may need to make a pagearray, it's hard to tell because i can't see where/how you're excluding widgets by selector. my example runs a 'negative' $page->is($selector) over the found items - i would assume you actually want to find all items that don't have the selector set:
×
×
  • Create New...