-
Posts
2,951 -
Joined
-
Last visited
-
Days Won
20
Everything posted by szabesz
-
Proof of concept: Floating buttons and position storage
szabesz replied to David Karich's topic in Wishlist & Roadmap
Sure, but that only takes care of save although that is definitely the most important part as the other buttons are used a lot less frequently. Having to scroll back to where I have been is something that would be great to get rid of.- 5 replies
-
- 1
-
-
- ux
- ux improvement
-
(and 1 more)
Tagged with:
-
Proof of concept: Floating buttons and position storage
szabesz replied to David Karich's topic in Wishlist & Roadmap
Great! I commented it at GitHub, and I would also like to add that maybe @tpr wants to add it to AdminOnSteroids? Maybe along with supporting Profields Page Table too? As that is also facing similar issues.- 5 replies
-
- 1
-
-
- ux
- ux improvement
-
(and 1 more)
Tagged with:
-
+1 I am all for slim GUI for development tools...
-
Thanks Peter, however I never fall for "first year is cheaper" and such because after that period normally one has to pay the full price.
-
If I were you, I would not put too much effort in it – as we are talking about the backend – but if you want to learn Gulp then why not? Soon it is http2 time and as far as I can remember I read that when using http2 merging assets into one is often the wrong choice. But even with http1, since files are cached by the browser you loose a few millisecs first, that's all I guess. I have seen WP sites with about a hundred js/css files loaded separately but the real issue with page load speed never seemed to be loading those but mostly other bottlenecks are at play. Of course, I biased, just read my current motto: "It is unwise to relentlessly chase performance at the expense of everything else. Better is the enemy of good!"
-
I can confirm this and there is a similar issue with Lister's "refresh" and "reset" icon buttons, which are also partially covered by the standard "Sticky header" (I never used the Compact option besides testing it once upon a time).
-
Sounds great! I think I will give it a test drive, however, I cannot find its features listed: https://www.idrive.com/pricing Do they mean that the Free plan is exactly the same as Personal except the difference in storage limit?
-
Thanx a lot! I will check it out this week.
-
Thanks for the showcase! Two major UX issues worth noting: I cannot find a menu to navigate the site. On the home page I could not spot the language switcher as it is tiny and blends into the red line too much.
- 1 reply
-
- 1
-
-
Yeah, we got that Since inputfields are used by the admin, hooking into InputfieldPage::getSelectablePages is what makes ASM selects (and other multi page inputfields) "customizable".
-
Hi, If I understand you right, you need to hook into getSelectablePages. I presume you use ASM select, so one example can be found here: https://processwire.com/talk/topic/15267-best-way-to-setup-room-availability/?do=findComment&comment=136584 Also, you can perform a google search like : https://www.google.hu/search?q="getSelectablePages"+site%3Aprocesswire.com%2Ftalk
-
HEEELP! This request was aborted because it appears to be forged!
szabesz replied to Pixrael's topic in General Support
+1 And in the cases of migrating a site to its new home, one should always install a clean ProcessWire instance in advance in order to test that the server environment is OK to begin with. -
HEEELP! This request was aborted because it appears to be forged!
szabesz replied to Pixrael's topic in General Support
So you can see that it is a server environment issue and a ProcessWire one, ie. both. That is why it is hard to track down. -
Happy to help Sorry for this, I forgot to replace this: <div class="portfolio-item <?php echo $single->categories->first->name ?> "> with this: <div class="portfolio-item <?php echo $single->categories->implode(' ', 'name') ?> "> WireArray's explode and implode methods are cool shorthands for such a thing.
-
Hello Roych, First of all, I recommend a few things: Installing @adrian's TracyDebugger module. Makes development a lot easier, you can instantly spot issues like undefined variables and null objects, it also has support for one click online html validating and about a hundred more features to ease the "pain" I mean to help get more fun out of coding. Also, turning on $config->debug = true; in config.php is very helpful during development. Next, after a successful system or module upgrade you might want to delete files/directories beginning with a dot, in your case: /.wire-3.0.36 /.htaccess-3.0.36 /.index-3.0.36.php /site/modules/.MarkupSimpleNavigation I installed @tpr's AdminOnSteroids as it has very useful features to support development: in the Page Tree it can show the ID and templates of a page, it has a one click jump link to open template/field editor pages right from a page editor page (just hover over the lables and links appear in tooltips) so it made it easy to find my way around your template/field setup. Actually, it always makes it easy to find my way around MY OWN setups too! I also uninstalled the FrontendEditing module. Frontend editing is an advanced technique, it has its limitations and quirks, and most importantly since it injects code into your frontend it is best not to use it when learning PW. It just makes issues a little bit harder to track down. Back to your code. Things I could spot: PHP Notice: Undefined variable: title in .../site/templates/_prepend.php:6 which is: <?php echo $title; ?> and should be <?php echo $page->title; ?> First I cleaned up your code to get rid of issues of invalid html. TracyDebugger has a tool to one-click validate your html which helps a lot to pinpoint issues. Your HTML was broken, I found an unnecessary "</div>" and a "<" which were simply syntax errors. With broken HTML it might be impossible to generate a working JS portfolio. You get a collection of "portfolio-detail" templates, but in the page tree the following pages are created based on this template: children of Portfolio Kategorije children of Kategorije Which is not right when your selector is this: $portfolio_details = $pages->find('template=portfolio-detail, sort=-created'); because it collects unrelated pages. You need to add "parent=portfolio, " to get the specific pages: $portfolio_details = $pages->find('template=portfolio-detail, parent=portfolio, sort=-created'); Since your original template setup was problematic, I made changes: Changed template of page Kategorije from "portfolio-detail" to "categories" Changed template of pages Vizitke, Logo and Publications from "portfolio-detail" to "category" (I renamed Kategorije to category.) Note that it is best to stick to English when writing code and setting up names in the admin. You never know when you need to pass your code to someone not speaking your native language Similarly, when testing multilingual fields, if you put Slovenian in the English fields then you make it harder to follow your own setup, so I used English names for each "en input". The more things you do not put in the right pace the harder you find to make sense of your own site, even when "just testing things out". I did not touch the Family settings of categories/category templates but you should set them up like this: https://processwire.com/talk/topic/15842-200200200-field-texturltextarea-into-1-template/?do=findComment&comment=141413 I renamed the field category to categories, as it is a Page Reference field with ASM selects, so using plural is more appropriate. I removed the setting of "Select the template of the pages that are selectable. May be used instead of, or in addition to, the parent above.", because setting the parent to the Categories page is enough. Back to code changes: this loop is not needed: <?php //foreach ($cat_items as $item) : ?> $single->images->description->first was changed to $single->images->first->description normally I use <?= ?> when echoing single values but in that case it is not possible to temporary comment them out, so that is why I switched to <?php echo ?> It helps testing. Using title as a css class or id will not work as is can contain spaces and other special characters, you need to use the name property (Settings tab > Name in the admin): <a href="index.htm#" data-filter=".<?php echo $item->name ?>"> and in the portfolio loop, you need to output the related category name(s): <?php foreach ($portfolio_details as $single) : ?> <div class="portfolio-item <?php echo $single->categories->first->name ?> "> After making all these changes it works for me, I'm going to send my version to you in a PM soon. Note that you still have unrelated owl Carousel erros in your JS. Here is the content part of the code for anybody else who might find it useful as an example: All in all, I recommend using Tracy and AdminOnSteroids (AOS), always look for PHP errors and invalid HTML and fix them before you move forward. And always work by changing things one at a time and then test if the change really does what you want. Tracy is your best bet to do testing the fastest way possibe with ProcessWire
-
Hehe. The PW forum is a nice snippets manager and knowledge base for free
-
Well, I am not suggesting you should switch to it, the only thing which is clearly better to have is its MIT license. I just thought you might want to reconsider it just once more but I know its not fun switching libraries "just because" Feel free to ignore my notes.
-
Yeah, at firts sight ag-grid looks great but have you seen http://tabulator.info/ lately? Namely the new release: http://tabulator.info/news I have also checked out a lot of these JS table libraries and Tabulator seems to be the only one which is completely open source (MIT) and is being actively developed. I have not used it just yet but I am planning a test drive in the near future.
-
@Roych Can you send me a copy of the site? It would be easier to help by taking a closer look. You can use Duplicator to pack it up easily. I would have time to examine it this weekend. Just PM me if you want to proceed this way.
-
Hi @renobird I keep getting these since I've been using the module: 2× PHP Notice: Trying to get property of non-object in .../modules/MarkupActivityLog/MarkupActivityLog.module:405 2× PHP Notice: Undefined variable: fieldID in .../modules/MarkupActivityLog/MarkupActivityLog.module:370 And because I use Tracy, they kept popping up in the debug bar but today I though it is just enough of them and applied these: if (!isset($fieldID) || $fieldID == null) continue; https://github.com/Renobird/MarkupActivityLog/blob/9d37de692b74185e6391828806c84b730ab07630/MarkupActivityLog.module#L370 also: $string = is_object($field) ? $field->className : $field; switch($string) { https://github.com/Renobird/MarkupActivityLog/blob/9d37de692b74185e6391828806c84b730ab07630/MarkupActivityLog.module#L404 I don't know if this is enough but the module seems to work as before but without the notices.
-
Hello Neo, are you in the Matrix already?
-
Hello @Robin S, I've just noticed your initial post of this thread points to no longer available images, you might want to fix that. Also, I find it a bit strange you use the GitHub link in the module's info instead of this thread's or the module directory's, since in the README.dm there is no link to learn about the other two pages.
-
Ability to define convention for image and file upload names
szabesz replied to adrian's topic in Wishlist & Roadmap
Oh yes, it does help a lot! Thanks for fixing it for me! I was just too much concentrating on anything else but creating those image variation which can be performed in the after hook only. And you are right, renaming them is a different matter which can be done in the before hook. -
Option to set a "home" child as admin menu link
szabesz replied to neosin's topic in Wishlist & Roadmap
That's strange. I have it installed on all my sites and I do not remember having any issues besides personal taste of its UI which is still far better than the default one pushing the whole page downward "all the time".