Jump to content

Macrura

PW-Moderators
  • Posts

    2,765
  • Joined

  • Last visited

  • Days Won

    40

Everything posted by Macrura

  1. I did have that selected, as i installed it after some content was already in the system.. ok sure, thanks! - that was fast!
  2. Slight bug report - if you have a template where the title is locked, it will cause the name field to clear and then you will get an error when trying to save the page about missing required value of name...
  3. @netcarver - thanks for the compliment! Hope someone else finds this useful; for me this has become a life-saver and the clients/editors have given a lot of positive feedback, and less questions/problems/confusion... saves a ton on screen real estate when you absolutely have to have a fairly verbose field description, since you can hide most of it under the reveal...
  4. @gmclelland you definitely won't be able to ckeditor images, because there is no Page to store the images under; unless there is some way that you can use a hook, and then use the PHP option for your field defs and then in that file define your hook etc, In terms of Ck editor, i think you'd need to study the inputfield itself and see how the options are supplied to the inputfield, and then just mimic that; So far i have not had the necessity to use ckeditor field, or images for the Settings Factory, and i don't think it will be able to support images unless someone comes up with an idea for how to solve that problem...
  5. This module was finally released and in the Modules Directory: http://modules.processwire.com/modules/field-descriptions-extended/ Future Plans: Make the 'more' text configurable, as well as multi-langauage allow specification of which field to use for Field Selection, where the selected field on any content page would be a candidate to get the extended field description (in panel or modal) treatment. allow specification of which field to use for the content, when in "Page Content for Field Description" mode. oops, just realized the module already does #2 & #3:
  6. yes you just need to make the permission the same name as the process page, and then use that permission to restrict; if you need examples i can explain it more, but essentially this is like the core permissions setup used by stuff like lister pro, where the permission for a process matches the process page name. I haven't looked at MarkupSEO for a while, instead i use my (yet unreleased) MarkupSiteMetaAdvanced module, which has like a gazillion seo settings, but much more since it covers basically everything related to meta data, including schema, all social media, DCMI, analytics, copyrights, location, as well as the ability to setup custom key value pairs or define a path to a json inputfields definition file (sort of like mini settings factory); preview:
  7. there is FieldtypeHandsontable which is exactly what you displayed, it lets you have an excel-like input field. Very cool and useful thanks to @bernhard
  8. @Noel Boss how are you doing the selectable pages, are you using custom PHP option?
  9. not sure if this helps, but there is a little known trick you can do where you can change the active fieldgroup of any template at runtime... I'm using this a bit in situations where i want to use a single template for something, but i want to be able to change stuff about the the layout, field descriptions, visibility, collapsed status and so forth, based on the value of a field; but it could be done based on other parameters/conditions..
  10. ok thanks - looks like a problem with UiKit; it does work on reno for sure; uikit doesn't use jquery ui tabs so that event is not firing
  11. @Noboru – are you using the latest version, 106, and are loading latest js file (check to see if you have the correct line 41)? https://github.com/outflux3/InputfieldSimpleMDE/blob/d8eab8ad345d5961ab4ae65c7272bf281e5b5728/InputfieldSimpleMDE.js#L41
  12. For any users out here of this module, who are using languages, can anyone test to see if the latest version initializes the textareas on the language tabs when switching between language tabs? I had a github issue report that only the first visible language tab's instance was getting initialized, so added the language tabs switching event to the array of events that trigger the field to get instantiated, and this works on my local testing, but the person who reported the issue was not seeing it working..
  13. I use one, but haven't released it yet; started documenting it here... https://outflux3.gitbooks.io/markup-theme-engine/content/
  14. yes, i know, i'm talking about site profiles that require no coding https://modules.processwire.com/categories/site-profile/ and these:
  15. @Knubbi - i think you may be missing the fact that there are already some awesome profiles available that are out-of-the box very usable sites. I haven't done the dare yet, but i **think** if I needed a complete site real quick, like a one pager, or a simple blog, i'd guess it could be completed quickly and easily. Guess I'll have to try it to find out, and take the "how fast can you setup a (preconfigured profile, generic, no additional custom fields) processwire site" challenge. Will report back when done..
  16. as far as I know the latest version of the inputfields all support UiKit theme; After upgrading all to the latest, you can post screenshots if you see any issues.
  17. @flydev, thanks - that's like a relative positioning problem with UiKit (in the tags field); i think i added some jQuery that removes the uikit class from the inputfield, maybe I didn't commit that change yet, will check now.
  18. It all looks correct; you can also just do this: echo $sm2->player($page->audio, $options); If you are not getting players showing you'd need to ensure that the settings are all correct in the module config, and then check to make sure the CSS and JS are being output on your page; then make sure the markup is being output correctly; it would be easier once these things are checked; if you are getting styles & scripts output, and are getting markup output, and still not seeing players, check the console to see if there are any JS errors.
  19. it works well, are you seeing css problems?
  20. The process of setting up a settings page is very simple; You need to start with a JSON or PHP fields definition file; There are samples of these in the module. Once you have your file in valid JSON, or PHP that returns an array of inputfields, you would create a page somewhere under your Admin branch. You can name this whatever you want, but bear in mind that the name of the process page is how you will access your settings. Once you create the page (using Admin template), and set the process as "ProcessSettingsFactory", you should see a blank text field; In this field you enter the path to your definition file, which should be located somewhere in templates. At this point you can now access your settings page and see if it works (you should see your fields). You can populate the fields, and save, and your data will save in the module config. You can now access your settings on the front end by doing this: $factory = $modules->get("SettingsFactory"); $newsSettings = $factory->getSettings('news-settings');// where news-settings is the name of the process page holding the settings you want to get, You can view the contents of what is returned Tracy (e.g. bd($newsSettings);) So far this has been rock solid on some very big sites, both in terms of users accessing and modifying settings, as well as dealing with permissions to the settings, and outputting the settings in the front end; Haven't noticed any performance issues, and some sites have 5-6 different settings panels.
  21. @LAPS form-builder.inc: /** * * Add custom scripts to the form. * */ $forms->addHookBefore('FormBuilder::render', function($event) { $form = $event->arguments(0); $config = wire('config'); switch ($form->name) { case 'name-of-form': $config->scripts->add($config->urls->templates . "libraries/chosen/name-of-js.js"); $config->styles->add($config->urls->templates . "libraries/chosen/name-of-css.css"); $config->scripts->add($config->urls->templates . "FormBuilder/custom-js-init-file.js"); break; // other forms can be added below... } }); in your init file: $("#Inputfield_name_of_input").chosen({ no_results_text: "The planet exists not", allow_single_deselect: true, width: '100%' });
  22. the Soundmanager2 module works well for me, using it on like 8 sites now, no problems so far.. Allows api use (e.g. code output in template) or shortcode, like in an RTE, insert an audio player; Rock solid, HTML5, read id 3, skins... really a dream module for audio in PW.
  23. You'd really need to be checking to see if there is an image, here in your code it takes the assumption there is always an image; but instead you'd want to check if there is an image prior to running size on it; that would solve your issue. $image = ''; if(count($page->images)) $image = $page->images->first(); $thumb = ''; $dims = ''; if($image !='') { $thumb = $image->size(100,100)->url; $dims = $image->width . 'x' . $image->height; } $data = array( 'title' => $page->title, 'thumb' => $thumb, 'img_dims' => $dims, 'edit_src' => $page->editUrl ); '<div class="item" style="width:100%;">' + (item.thumb ? '<div class="image-wrapper" style="float:left;"><img src="' + escape(item.thumb) + '" alt=""></div>' : '') + '<div class="info-wrapper" style="float:left; padding:5px;">' + '<span style="font-size:14px;font-weight:bold">' + escape(item.title) + '</span><br>' + '<span>Type: ' + escape(item.type) + '</span><br>' + (item.img_dims ? '<span>Dims: ' + escape(item.img_dims) + 'px</span><br>' : '') + '<a class="pw-modal pw-modal-medium" href="' + escape(item.edit_src) + '">Edit <span class="ui-icon ui-icon-extlink"></span></a></div>' + '</div>'
  24. ok yeah, I'll see if i can improve the readme and i'll post a walkthrough here with some screenshots shortly... In the meantime a lot of the info in this post is still relevant:
  25. you should be able to set the file that the template uses at runtime, so wherever you render the page: $page->template->filename = '/path/to/file.php'; or $t = $templates->get('some-template'); $t->filename = '/path/to/file.php'; quoted from here:
×
×
  • Create New...