-
Posts
2,321 -
Joined
-
Last visited
-
Days Won
44
Everything posted by tpr
-
I played a bit with InputfieldIcon.js and CSS and a few improvements could be made: use :active state to zoom the icons + show its name using CSS attr() deselect an icon by clicking on it (instead of selecting the first option in the select box) do not re-initialize the icons after re-open (click events are currently fired multiple times if so) plus do not add those 675 spans
-
jets looks great! The icon selector's markup seems a bit overkill to me. The spans are unnecessary and the JS hover events could be replaced with a few lines of CSS. The markup for the .InputfieldIconAll div is 100+ kbytes which could be easily cut by half. I know it's not a big deal but still. Perhaps a facelift PR could be put together containing a filter update?
-
$config->urls->templates with absolute URL?
tpr replied to Jonathan Lahijani's topic in API & Templates
From the weekly blog -
Yepp I noticed that after posting. Somehow mixing the two would be the best, having an autocomplete and preview too. Choices could use a callback to filter the icons too but it would overlap the icons. Using Choices with custom template that shows the icons in multiple columns could work though (just tried it in devtools).
-
Sure, but I would take a different approach, namely Choices, see the "Single select input" example.
-
v046 is just uploaded and contains a new setting for ignored templates (thanks to @mke). Make sure to save the module after the update to apply the defaults.
-
How can I test template cache? I occasionally enable it and google pagespeed gives slighty better results. It works fine with ProCache though.
-
Glad to hear that, thanks for sharing Unfortunately I don't have From Builder so I'm afraid I can't tell you anything smart. Does this php file render the form html? How about using something like this? (in basic-page.php or other 'controller file', or in /site/ready.php if you have checked 'Use latte extension ... ' in module config): $view->form = wireRenderFile('path_to/form-builder.php'); Then in .latte file use '{$form|noescape}'. Perhaps if you could send me the contents of the php file in PM I could tell something smarter
-
In Chrome, built-in smooth scroll disabled it's still very laggy. You may consider using SmoothScroll.js or similar alternatives. But if you ask me, do not use parallax
- 6 replies
-
- architecture
- isotope
-
(and 2 more)
Tagged with:
-
I like it! I've used Shuffle.js (non-jQuery, non-commercial) recently to replace Isotope and it did the job nicely.
- 6 replies
-
- 2
-
- architecture
- isotope
-
(and 2 more)
Tagged with:
-
body {filter: saturate(0)} img {filter: saturate(1)} calm version the quick way
-
You would need the first Related_Downloads and not the first $page (which is assumably only 1). I think you can use this instead (without foreach): $download = $page->Related_Downloads->first();
-
Why are my pages only accessable in default language?
tpr replied to Timo's topic in Multi-Language Support
You should activate those pages, check the checkboxes next to the page names (Settings tab at page edit). -
My best guess is you need to add getVars: https://processwire.com/api/modules/markup-pager-nav/ (in other words read the fascinating manual )
-
if ($page->directors && $page->directors->count())
- 1 reply
-
- 2
-
Thanks, please re-download (only .module file was changed).
-
Hallelujah.
-
Here are the updates. You can use absolute (fully qualified) or relative paths (relative to site root). aos-assetpaths.zip
-
is it possible to show a field on a specific page id() ?
tpr replied to adrianmak's topic in General Support
afaik it works with template id too, "template!=1200" -
AFAIK you can overwrite some paths/urls but I wouldn't use it if not necessary (to avoid breaking things). I'll implement the idea I wrote above, that would simplify things a lot (although autoloading assets will be gone).
-
I'm thinking of removing the default paths and load only files that the user has written something into the inputs, and also remove the file_exists() limitation. So it would be entirely the user's responsibility to add an asset that is surely available (to avoid 404s).
-
Hi @theo, please try this and see if you can manage to make it work. What would be handy here having an ajax button to check whether these assets exist. AdminOnSteroids.module
-
You mean tree level 1 and 2? There were issues with the thumbs lately, make sure you're having the latest version.
-
Would it help if there would be a setting for a rootPath? (and rootUrl)
-
I must admit that the site is much enjoyable when JS is off (even though I like anims in general). I guess I'm fed of all the anims I saw in the recent years