Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 07/18/2018 in all areas

  1. Breadcrumb Dropdowns Adds dropdown menus of page edit links to the breadcrumbs in Page Edit. The module also adds dropdowns in Edit Template, Edit Field, Edit User, Edit Role, Edit Permission, Edit Language, and when viewing a log file at Setup > Logs. Configuration options Features/details The module adds an additional breadcrumb item at the end for the currently edited page. That's because I think it's more intuitive for the dropdown under each breadcrumb item to show the item's sibling pages rather than the item's child pages. In the dropdown menus the current page and the current page's parents are highlighted in a crimson colour to make it easier to quickly locate them in case you want to edit the next or previous sibling page. Unpublished and hidden pages are indicated in the dropdowns with similar styling to that used in Page List. If the option to include uneditable pages is selected then those pages are indicated by italics with a reduced text opacity and the "not-allowed" cursor is shown on hover. There is a limit of 25 pages per dropdown for performance reasons and to avoid the dropdown becoming unwieldy. If the current user is allowed to add new pages under the parent page an "Add New" link is shown at the bottom of the breadcrumb dropdown. If the currently edited page has children or the user may add children, a caret at the end of the breadcrumbs reveals a dropdown of up to the first 25 children and/or an "Add New" link. Overriding the listed siblings for a page If you want to override the siblings that are listed in the Page Edit dropdowns you can hook the BreadcrumbDropdowns::getSiblings method and change the returned PageArray. For most use cases this won't be necessary. Incompatibilities This module replaces the AdminThemeUikit::renderBreadcrumbs method so will potentially be incompatible with other modules that hook the same method. https://modules.processwire.com/modules/breadcrumb-dropdowns/ https://github.com/Toutouwai/BreadcrumbDropdowns
    5 points
  2. 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:
    4 points
  3. Field Descriptions Extended This module enables you to extend field descriptions by dividing short descriptions with a longer text that is revealed in a toggle. Modules Directory: http://modules.processwire.com/modules/field-descriptions-extended/ Github: https://github.com/outflux3/FieldDescriptionsExtended Extending your field descriptions using the standard field's description field. Once this module is installed, it will automatically search your description field for the presence of 5 dashes (-----). Any content above the 5 dashes will be visible and the content below the dashes will be hidden. A 'More...' link will appear at the end of the short description which when clicked will reveal the rest of the description. Using Simple Markdown Editor with the description field If you have Simple Markdown Editor (InputfieldSimpleMDE) installed, you can enable the field description to have that editor. *When using Simple MDE, you can use the button (Insert Horizontal Line) instead of typing 5 dashes. More about SimpleMDE. Extending your field descriptions using content from a ProcessWire Page for the field description. You may use the content from a ProcessWire page as a field description. This would allow you to easily insert images, links, and use hanna codes. To use page content for your field descriptions, please follow these instructions: Install Select Fields module (FieldtypeFields) http://modules.processwire.com/modules/fieldtype-fields/ Create a new field using this field type, e.g. field_select. Add the field to any template you will be using for your field descriptions. Setup your help pages (for example under a settings branch) where you will store the field description content,using the template containing the Field Select. Add content to a page and select the field where that content should show. To show a short text before the link to the longer content, separate them with 5 dashes Be sure to update your settings on this page, first enable page content descriptions,then specify the name of the Select Fields field, template to search, and content field. If you create a field description using this method, please note that the description field must be blank for contexts where you want the page content to appear. You can freely use template context for field descriptions, but the Page Content method is not context sensitive and will display under all contexts where the description is blank. ---- original post: This is a new module, hope to release soon, which allows extended field descriptions, in currently 2 ways. The main feature of the module is that you can have a short description and then a 'more...' link which drops down a longer block of text. This is achieved by separating the intro/visible text and the rest with 5 dashes. Example setup: the 2nd way is if you are using AdminThemeUiKit, you can show extended field instructions in a panel. The content of the panel is edited on a regular PW page. This use case would probably not be that common, but if you had a field that required some extended instructions for how to use, this could be useful; Also, since this allows you to target information and instructions down at the field level, it could reduce the amount of documentation needed on a global level, since it is a lot more context targeted.
    3 points
  4. vscode now includes an outline feature, but to get it to work with php files you will need to install https://marketplace.visualstudio.com/items?itemName=linyang95.php-symbols
    3 points
  5. Just released 0.2.4 of AdminThemeBoss with compatibility:
    3 points
  6. I released a module that adds dropdown menus to the breadcrumbs in Page Edit.
    3 points
  7. I did consider that but decided that show on click is preferrable and I'll stick with that. The original request that inspired this module references the Windows Explorer behaviour that shows dropdowns on click, and I wouldn't want to see menus flying out if my mouse happens to pass over the breadcrumb on the way to the main menu.
    2 points
  8. Make that optional in module config, I personally prefer to click ?
    2 points
  9. Yes, it is weird. I think it must be an issue with the modules directory as the "requires" condition looks legit to me. I remember @Macrura struck something like this before with his Selectize modules - maybe he knows more about it? For now I've removed the entire "requires" condition so the module is at least installable by classname from the directory. Will raise a GitHub issue on the PW repo if it's looking like it is a definite bug with the modules directory.
    2 points
  10. Yes, you have to check if the page you are trying to reference exists, if not, create it through the API. For educational purposes, you can check how InputfieldPage does it. See how it iterates through the titles it receives as input, and makes decisions based on the page already existing or has to make a new one. https://github.com/processwire/processwire/blob/master/wire/modules/Inputfield/InputfieldPage/InputfieldPage.module#L840
    2 points
  11. Have a look also to the section on Sub-selectors in that doc. So this should do it: $matches = $pages->find("template=group, children=[my_int_field=0]"); And for the other case: $groups = $pages->find("template=task,parent=[closed=0]");
    2 points
  12. Not an error only a warning saying theres nothing to foreach.
    2 points
  13. DEPRECATED If you are interested in the new version (commercial module launching in 2023) write me a PM --- Some of you might have followed the development of this module here: https://processwire.com/talk/topic/15524-previewdiscussion-rockdatatables/ . It is the successor of "RockDataTables" and requires RockFinder to get the data for the grid easily and efficiently. It uses the open source part of agGrid for grid rendering. WHY? ProcessWire is awesome for creating all kinds of custom backend applications, but where it is not so awesome in my opinion is when it comes to listing this data. Of course we have the built in page lister and we have ListerPro, but none of that solutions is capable of properly displaying large amounts of data, for example lists of revenues, aggregations, quick and easy sorts by the user, instant filter and those kind of features. RockGrid to the rescue ? Features/Highlights: 100k+ rows Instant (client side) filter, search, sort (different sort based on data type, eg "lower/greater than" for numbers, "contains" for strings) extendable via plugins (available plugins at the moment: fullscreen, csv export, reload, batch-processing of data, column sum/statistics, row selection) all the agGrid features (cell renderers, cell styling, pagination, column grouping etc) vanilla javascript, backend and frontend support (though not all plugins are working on the frontend yet and I don't plan to support it as long as I don't need it myself) Limitations: While there is an option to retrieve data via AJAX the actual processing of the grid (displaying, filtering, sorting) is done on the client side, meaning that you can get into troubles when handling really large datasets of several thousands of rows. agGrid should be one of the most performant grid options in the world (see the official example page with a 100k row example) and does a lot to prevent problems (such as virtual row rendering), but you should always have this limitation in mind as this is a major difference to the available lister options that do not have this limitation. Currently it only supports AdminThemeUikit and I don't plan to support any other admin theme. Download: https://gitlab.com/baumrock/FieldtypeRockGrid Installation: https://gitlab.com/baumrock/RockGrid/wikis/Installation Quikckstart: https://gitlab.com/baumrock/RockGrid/wikis/quickstart Further instructions: https://gitlab.com/baumrock/RockGrid/wikis/quickstart#further-instructions German Translation File: site--modules--fieldtyperockgrid--fieldtyperockgrid-module-php.json Changelog: https://gitlab.com/baumrock/FieldtypeRockGrid/raw/master/changelog.md Module status: alpha, License: MIT Note that every installation and uninstallation sends an anonymous google analytics event to my google analytics account. If you don't want that feel free to remove the appropriate lines of code before installation/uninstallation. Contribute: You can contribute to the development of this and other modules or just say thank you by testing, reporting issues and making PRs at gitlab liking this post buying me a drink: paypal.me/baumrock/5 liking my facebook page: facebook.com/baumrock hiring me for pw work: baumrock.com Support: Please note that this module might not be as easy and plug&play as many other modules. It needs a good understanding of agGrid (and JavaScript in general) and it likely needs some looks into the code to get all the options. Please understand that I can not provide free support for every request here in the forum. I try to answer all questions that might also help others or that might improve the module but for individual requests I offer paid support (please contact me via PM). Use Cases / Examples: Colored grid cells, Icons, Links etc. The Grid also has a "batcher" feature built in that helps communicating with the server via AJAX and managing resource intensive tasks in batches: Filters, PW panel links and instant reload on panel close: You can combine the grid with a chart library like I did with the (outdated) RockDataTables module:
    1 point
  14. @netcarver Great that you solve the issue, but as the further enhancement it would be nice to save field via ajax. I have found this module that intended to do it https://github.com/Klenkes/AjaxSave. So, maybe you can adapt it to your project needs.
    1 point
  15. @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...
    1 point
  16. I tried RockFinder Tester as well, but didn't find my way as I want either. I'm just an amateur programmer but nevertheless happy with ProcessWire capabilities for my needs as far as it gets. My main job is managing an Academic Design Workshop for 1500 students. The website (www.mekano.info) is just a side project next to operating lasercutters, CNC routers, a wide range of hand tools, and painting the studio floor during school holidays.
    1 point
  17. There is 'wiretabclick' event in JqueryWireTabs that you can use to trigger page save. https://github.com/processwire/processwire/blob/50f2834a0ae2a9f9f2ac53439184ebdc04db2f54/wire/modules/Jquery/JqueryWireTabs/README.txt#L31 Also, it worth to look at @tprs realization of hotkey save in the AdminOnSteroid module.
    1 point
  18. @cjx2240 download and install the plugin in the site/modules/InputfieldCKEditor/plugins directory in the field settings, on the Input tab, section plugins, check pastefromword in the CKEditor settings > CKEditor Toolbar, add PasteFromWord save your field
    1 point
  19. Very nice, as usual @Macrura. Thank you!
    1 point
  20. Great module! I'm working on compatibility with AdminThemeBoss. I'd suggest adding the following css, because the default theme has a font-size on <a> inside the breadcrumb: .uk-breadcrumb >li { font-size: .875rem; } I personally would not even include the title because it's there twice with the page title… Also, I get an error when clicking on the arrow after the tree and then the root page:
    1 point
  21. Nice work @Robin S thanks you. Just saying, it works on my side with AdminThemeBoss ?
    1 point
  22. @Robin S 'requires' => 'ProcessWire>=3.0.83, AdminThemeUikit' doesn't work for you?
    1 point
  23. FYI, Got the same error when installing via class name.
    1 point
  24. @adrian, it seems that the $page->siblings() method used in the module already sorts by the sort field defined on the parent page or template. Do you have that set for your blog items parent?
    1 point
  25. 'requires' => 'ProcessWire>=3.0.83, AdminThemeUikit',
    1 point
  26. Looks awesome, but just got this on attempting to install:
    1 point
  27. Interesting to see this: https://www.1and1.com/digitalguide/fileadmin/DigitalGuide/Screenshots_2018/processwire-seitenbaum-beispiel.jpg A german file name. ? And it's not the only file with a hint of german. Here we go... https://hosting.1und1.de/digitalguide/hosting/cms/processwire/ (same as above but in german) https://hosting.1und1.de/cloud-app-center/process-wire-download#apps (some other news)
    1 point
  28. Sorry to hear that. It's all about using the right RockFinder and sometimes it's easier/necessary to populate hidden fields with hooks to efficiently query the data. Did you try RockFinder Tester? Once you have the right RockFinder you can do everything that aggrid can do. Using it as a page selector needs some additional (but not complicated) javascript, though.
    1 point
  29. 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:
    1 point
  30. My fork of MarkupSEO has this ability.
    1 point
  31. 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).
    1 point
  32. Working fine here with AdminThemeUikit. Yes, this module adds features to a PageTable field, so you need to have FieldtypePageTable installed and add a PageTable field to your template. In v0.1.1 I have made FieldtypePageTable an install requirement for the module to avoid any confusion about this.
    1 point
  33. I use one, but haven't released it yet; started documenting it here... https://outflux3.gitbooks.io/markup-theme-engine/content/
    1 point
  34. Maybe a little offtopic, maybe not (and short as I'm on mobile): I was thinking about something like a Frontend Framework several times. Not a theme or a profile. A framework that helps you with the tedious tasks (like including assets in the markup, seo, less compiling, page builder setup etc). Something that brings some kind of structure/Standard (and reusability) to the frontend as well and makes creating the basic setup even faster. But I always end up thinking that it would only be one way of doing it (for example I would build it for the uikit framework) and in the end it would only be useful to me and not to others. Can'treally explain why but I really don't like site profiles. Especially not when it comes to keeping them up to date. That's why I created PW Kickstart. It always grabs the current version and you can easily customize the setup to your needs. If we had a frontend framework that made it easy (basically meaning making it one click) to install common components (like blog, seo, page builder, widgets) that would sometimes be great. But on the other hand that's just not how pw works. At least not yet. If course we have modules, but they are always decoupled from the frontend. IMHO it would be great to have another option of modules that modify the Backend AND the frontend. Looking forward to hearing your opinions. Have a nice weekend ?
    1 point
  35. You should always make sure you actually do have an image (except when it's a required field). Do an if() first, maybe the fields are empty?
    1 point
  36. Just to make things clear in case they aren't, you are getting the selected item - you're actually getting the full $page object for the item. The __toString() method is resulting in the ID of that being being output when you try to echo it as a string. You have to specify what field you want from the page, ->title, ->body, etc.
    1 point
  37. Can be, wrong hostname, wrong MySQL port number, wrong username, wrong password. Double check your DATABASE connection details and double check your config.php file.
    1 point
  38. I think you should create a module and share it in the modules directory. ? It sounds like it would be very useful for a number of different languages. If you only want to set the page name once when the page is first created you would hook after Pages::added() and pass the page title to Utf8Slugger::slugify() to get a name. Or if you want the page name to update whenever the title changes you would hook after Pages::saveReady(). For more advanced usages relating to the latter you might like to take a look at the code in @adrian's Page Rename Options module.
    1 point
  39. @Pablos I've added to your issue as even avatar images under the Reno theme fail to display when pagefileSecure is true.
    1 point
  40. Sorry about that - I've now opened an issue on the current repo. https://github.com/processwire/processwire-issues/issues/625
    1 point
  41. Tabs 4 Life, brah! There is no more definitive authority than Richard Hendricks: (I've posted that before but could not resist) But seriously, the PW code style gets things so right. The braces style too. Some reasoned argument: https://github.com/php-fig-rectified/fig-rectified-standards/blob/master/Reasoning-Tabs-vs-Spaces.md https://github.com/php-fig-rectified/fig-rectified-standards/blob/master/Reasoning-Brace-Styles.md
    1 point
  42. I know this is a year old, but having just run into a similar issue, I wanted to point out that just adding check_access=0 should solve this particular problem without including any unwanted pages as a side effect.
    1 point
  43. Can I add to this, in case anyone is using an RME babyface and linux, and has no sound. The solution for me was to boot into linux, unplug the USB from the babyface, plug it back in whilst holding down select and recall buttons. This puts the device into class compliant mode, which can then be seen in (in my case) Ubuntu Budgie. I'm on linux right now, with sound!
    1 point
  44. If you do not assign a title the autogenerated ID (Inputfield) will be taken. $inputfields->attr('title', 'Weird name'); To put the Inputfields (Tabs) in the right order you could use InputfieldWrapper::insertBefore() or InputfieldWrapper::insertAfter() instead of InputfieldWrapper::add(). Unfortunately this doesn't work in case of ProcessPageEdit. To get it working you need to add another hook to ProcessPageEdit::getTabs() The following code snippet should work. Place it in your /site/ready.php wire()->addHookAfter('ProcessPageEdit::buildForm', function ($event) { $page = $event->object->getPage(); if ($page->template == "bewerbung") { $form = $event->return; $inputfields = new InputfieldWrapper(); $inputfields->attr('title', 'Weird Name'); $inputfields->attr('name+id', 'WeirdTabNameAndId'); // we need both unique ID and Name $markup = wire()->modules->get('InputfieldMarkup'); $markup->label = 'Custom Lable'; $markup->value = '<p>Just a placeholder for any custom markup</p>'; $inputfields->add($markup); $pageEditTab = $form->find('id=ProcessPageEditContent')->first(); $form->insertAfter($inputfields, $pageEditTab); // inserting in the right place is not enough to set the tab order // we need the following hook wire()->addHookAfter('ProcessPageEdit::getTabs', function ($event) { $event->return = array_merge( array_slice($event->return, 0, 1, true), array('WeirdTabNameAndId' => __('Weird Name')), // should be identical to the weird name/title above array_slice($event->return, 1, null, true) ); }); $event->return = $form; } });
    1 point
  45. I think yes, some usage examples: //validate user $session->isValidSession($userID) //get the IP address of the current user $session->getIP() // login a user $session->login($name, $pass) // login a user without requiring a password $session->forceLogin($user) // return true or false whether the user authenticated with the supplied password $session->authenticate(User $user, $pass) // logout the current user, and clear all session variables $session->logout() // redirect this session to another URL $session->redirect($url) // get the session history (if enabled) $session->getHistory() Further informations: https://processwire.com/apigen/class-Session.html http://cheatsheet.processwire.com/ http://processwire.com/api/variables/session/
    1 point
  46. Try this: <?php header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache"); ?> Or this with sunday as example: <meta http-equiv="expires" content="Sun, 01 Jan 2014 00:00:00 GMT"/> <meta http-equiv="pragma" content="no-cache" /> header('Expires: Sun, 01 Jan 2014 00:00:00 GMT'); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', FALSE); header('Pragma: no-cache'); You can also do random Generated Numbers on the files you dont want to be cached.
    1 point
×
×
  • Create New...