-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wrong css path / Undefined index: alt #3
Comments
Hi, Though, do you get the correct urls when you fetch an image manually on a template? Something like The solution for the notice seems fine - haven't looked at the code for a while now, but if it works for you then it seems to be good :) |
Thank you for the plugin! I have to look into the path problem because I am also using a subfolder to develop my site and move it as soon as i want to publish the new site. |
Hello Blynx - thanks for the plugin. Regarding the Issue "wrong paths for css and js". This will come up when installing PW in a subdirectory. Easy fix to bring up correct paths is i.e. by adding: |
... and to find the correct paths of css and js files of other gallery types, in MarkupPwpswpGallery.module Line 71 should be: |
Damn, totally forgot about this one. |
Hey, thanks for the plugin!
Unfortunately I couldn't make it work yet, but I am also pretty new to Processwire at all, so this may be a problem on my end as well.
First issue I have is, that I am using processwire not in document root on the page, but in some subdirectory called processwire.
It seems the css path is wrong as it does seem to miss the subdirectory processwire:
Edited: The path to $scriptUrl seems to miss the subdirectory too.
second problem I have is that I always get
Notice: Undefined index: alt in /opt/users/www/html/processwire/site/modules/MarkupProcesswirePhotoswipe/MarkupPwpswpGallery.module on line 168
No matter what I try.
Editing line 168 to
$imageData['alt'] = $image->alt ?: $imageData['description'];
silences this warning, but I am not really sure if this would be correct approach.
Using PHP7.0.21 right now and processwire 3.0.98 if this is of any importance
The text was updated successfully, but these errors were encountered: