-
Posts
926 -
Joined
-
Last visited
-
Days Won
1
Everything posted by PWaddict
-
I'm using hreflang within head as shown on the languages PW3 templates. Should my sitemap-xml template include only the default language since I'm already including hreflang within head or I should include all the additional languages too?
-
Because I'm hiding few pages from my clients but on the tree they were still visible.
-
Actually I needed to hide the entire "Pages" tab menu and I did it with css on the Admin Custom Files module. How can I add a css rule that only applied if the admin is non-superuser? I'm using the lastest dev 3 version.
-
-
Thanks a lot! Problem solved
-
I'm using on _aside.php the below selector to display the latest post on the entire site and it's working fine but when I'm viewing a page2, page3, etc I don't see the latest post but the next one in the array. How can I fix it? $posts = $pages->find("template=posts, limit=1, sort=-date");
-
Will it cause any issues if I convert all of my Text, Textarea & PageTitle fields to TextLanguage, TextareaLanguage & PageTitleLanguage without acctually adding additional languages for now? The additional languages will be added after months. Sorry if my question is stupid.
- 1 reply
-
- 1
-
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
PWaddict replied to ryan's topic in Modules/Plugins
Is the Content Type: Markup/HTML? If you have that too then I'm not sure why it's not properly working for you. Maybe another installed module causing this issue. -
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
PWaddict replied to ryan's topic in Modules/Plugins
Is the field textarea? Is the Inputfield Type: CKEditor? -
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
PWaddict replied to ryan's topic in Modules/Plugins
Make sure your link added as plain text not as clickable link. Also try chaning the order of the text formatters. "Video embed for YouTube/Vimeo" should be on top. -
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
PWaddict replied to ryan's topic in Modules/Plugins
@blynx Actually I've unistalled TextformatterMakeLinks cause I don't really need it so problem solved. Thanks again for the help. @ryan Can you update the module with a new option for lazy load? On the module config there must be 2 new fields. A checkbox field for the lazy loading option and a text field with the css class name from the lazy script used. Eg. I'm using lazysizes so the class name is lazyload. Here is the replaced code on the 129 line of the module: $out = preg_replace("/(<iframe.*)src(.*)(youtube|vimeo)/", "$1data-src$2$3", $out); $out = str_ireplace('<iframe ', "<iframe class='lazyload' style='position:absolute;top:0;left:0;width:100%;height:100%;' ", $out); -
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
PWaddict replied to ryan's topic in Modules/Plugins
On that order I have it and it doesn't work. -
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
PWaddict replied to ryan's topic in Modules/Plugins
Thanks @tpr & @blynx for the help. I replaced the 129 line of the module with this and it's working: $out = preg_replace("/(<iframe.*)src(.*)(youtube|vimeo)/", "$1data-src$2$3", $out); $out = str_ireplace('<iframe ', "<iframe class='lazyload' style='position:absolute;top:0;left:0;width:100%;height:100%;' ", $out); BUT on some fields I'm using the TextformatterMakeLinks module and the videos on that fields aren't loading cause it adds the video links with href inside of data-src. -
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
PWaddict replied to ryan's topic in Modules/Plugins
I found a way how to apply lazysizes. Sharing it here in case anyone wants to do the same thing. With the below javascript code you are replacing iframe's "src" with "data-src" and of course adding the lazyload class and you are 100% ready var iframeEl = document.getElementsByTagName('iframe'); for (var i=0; i<iframeEl.length; i++) { if(iframeEl[i].getAttribute('src')) { iframeEl[i].setAttribute('data-src',iframeEl[i].getAttribute('src')); iframeEl[i].removeAttribute('src'); } } $('iframe').addClass('lazyload'); -
Module: Video embed for YouTube/Vimeo (TextformatterVideoEmbed)
PWaddict replied to ryan's topic in Modules/Plugins
I would like to combine the module with lazysizes. Is there a way to replace "src" with "data-src" ? -
Yep that was the problem. Now it's working perfect. Thank you very much.
- 100 replies
-
- 1
-
- template
- autogenerate
-
(and 2 more)
Tagged with:
-
There are no errors. It's just doesn't update the page name. I'm on localhost with php 7 and ProcessWire 3.0.52.
- 100 replies
-
- template
- autogenerate
-
(and 2 more)
Tagged with:
-
I just tried it and unfortunately it doesn't work at all. I tried with both checked and unchecked the option just in case that was the problem.
- 100 replies
-
- template
- autogenerate
-
(and 2 more)
Tagged with:
-
Shouldn't be say: Session: Current installed version is already up-to-date like on the other modules?
-
Take your time to do it right. I'm using the 0.9.17 version and when I check for updates from the module config I get: Session: Error reported by web service: Unable to find that module EDIT: I've just manually upgrade to 1.0.0 and the issue still exists.
-
Ok thanks for the info. Let us know if you update the module to be visible on the Upgrades.
-
@horst Is it possible to force update the variations when the main crop has been edited without deleting the variations?
-
@kixe Are you planning to make the module to update the page name when the fields that used to generate the name have been edited?
- 100 replies
-
- template
- autogenerate
-
(and 2 more)
Tagged with:
-
I'm not sure cause every other link on ProcessWire works great except the link injection in this module. On the AdminCustomFiles.module I replaced the 249 line: 'relative' => substr($base, strpos($base, '/site/templates/')), to this and it worked: 'relative' => substr($base, strpos($base, '/mysite.com/site/templates/')), It seems that the module can't recognize that ProccessWire installed on localhost/mysite.com.
-
I tried both. The default one injects a broken link as I described above and the dependencies doesn't inject anything.