-
Posts
10,902 -
Joined
-
Last visited
-
Days Won
349
Everything posted by adrian
-
Looks like a path issue - includes need the full server path, but you have: Warning: include(/includes/webform.php): failed to open stream: You might be able to get away with ./includes/webform.php if includes is a subfolder of site/templates.
-
It looks like genre is a Page field? You need to get the titles for all the selected genres. You can do another foreach like: foreach($film->genre as $g) { echo $g->title; } or you can make use of WireArray::implode() https://processwire.com/talk/topic/5098-new-wirearray-api-additions-on-dev/
-
This module extends the FileValidatorModule to provide the ability to validate and sanitize SVG files. http://modules.processwire.com/modules/file-validator-svg-sanitizer/ https://github.com/adrianbj/FileValidatorSvgSanitizer If you're interested, here is some reading on why this is important: http://www.ei.rub.de/media/hgi/veroeffentlichungen/2011/10/19/svgSecurity-ccs11.pdf https://www.hackinparis.com/slides/hip2k11/09-TheForbiddenImage.pdf Have a read about about the new validator and the SVG sanitizer in Ryan's blog post.
-
I am not an SEO guru, but is the path to an image something that is actually considered? Have a quick read here: http://webmasters.stackexchange.com/questions/36434/what-should-filenames-and-urls-of-images-contain-for-seo-benefit You might find this module useful: http://modules.processwire.com/modules/process-custom-upload-names/ It allows you to automatically rename files/images as they are uploaded - you can make use all sorts of PW variables to define the scheme for the new name.
-
There are currently no known security issues in any version of PW, but I still like to update because of all the new toys (https://processwire.com/blog/) and bug fixes. Personally I like updating via git pull, but this module also makes it super easy: http://modules.processwire.com/modules/process-wire-upgrade/ Enjoy the ride
-
New link Attributes tab not working in TinyMCE
adrian replied to thetuningspoon's topic in General Support
Keep in mind that TinyMCE is no longer part of the PW core modules, so be sure to post here: https://github.com/ryancramerdesign/InputfieldTinyMCE -
The other tool to add to your belt is ModulesMigrator: https://processwire.com/talk/topic/8410-modules-migratorinstaller/ It will install, configure settings, and update to the latest versions all modules that you have selected. I have tagged it as alpha, but mostly because I haven't had any feedback on it. Maybe if this brings it back to life and I get some reports on it, I can get it released - it really is pretty straight-forward.
-
Hi @joineffort and welcome! Here's a great thread with some options: https://processwire.com/talk/topic/2868-count-views-of-post/ It's very easy! PS Marty beat me
-
Module Profile Export module (also upgrade PW 2.0 to 2.1)
adrian replied to ryan's topic in Modules/Plugins
That would be the reason then - I'll let Ryan know that the logic is going to need to be changed to handle these special DB tables. -
Module Profile Export module (also upgrade PW 2.0 to 2.1)
adrian replied to ryan's topic in Modules/Plugins
Any chance you have a custom database table that starts with "field_" but doesn't have a pages_id field/coumn? -
Thanks Martijn - not sure why I was using insertAfter there - just matching where it would be if it was visible, but since it's hidden it doesn't matter. I have committed a fix. Also just so everyone knows, I will get to all your suggestions for making this more configurable - just waiting on Ryan's thoughts on some of those issues regarding a core fix or not.
-
Not sure, but try this: Navigate to chrome://net-internals/#dns and press the "Clear host cache" button. Also try on another browser to confirm if it is an issue with your network or browser.
-
Thanks for debug report - I was able to reproduce the problem here and I have committed a fix. I hope I haven't broken anything else - it's a little complicated dealing with repeaters sometimes Please let me know if it works for you and if you find any other issues. BTW, I am assuming you have "Rename on Save" checked - that seemed to be when the issue showed up for me, although not always. I also improved the behavior for checking existing numbered suffixes on the same main page, so now you won't end up with two images of the same filename, one inside a repeater and one on the main page, which was possible before.
-
Thanks for all that info - I tried to replicate your image fields setup but still can't get the error. Sorry I didn't ask for quite the correct things for the log output. Can you please try replacing: //filename format can support $page, $template, $field, and $file variables in the format as defined in the module config settings //if repeater page, need to use parent page for determining name $page = $repeaterPage !== null ? $repeaterPage->getForpage() : $this->pages->get($pageid); $field = $this->fields->get($fieldid); $template = $page->template; $file = $this->pages->get($pageid)->$field->get("name={$path_parts['basename']}"); with: //filename format can support $page, $template, $field, and $file variables in the format as defined in the module config settings //if repeater page, need to use parent page for determining name error_log('pageid: ' . $pageid); $page = $repeaterPage !== null ? $repeaterPage->getForpage() : $this->pages->get($pageid); error_log('page->id: ' . $page->id); error_log('page->name: ' . $page->name); $field = $this->fields->get($fieldid); error_log('fieldid: ' . $fieldid); error_log('field->name: ' . $field->name); $template = $page->template; error_log('template->name: ' . $template->name); $file = $this->pages->get($pageid)->$field->get("name={$path_parts['basename']}"); and send me all the logged output. Hopefully that will help me figure out where the issue might be.
-
Sorry about the errors you are seeing. Repeater support is very new, but I am not seeing any issues at my end. Can you please let me know the filename format you defined. Also what other field types do you have on the page and also in the repeater. Do you have more than one repeater field on the page. What version of PW are you using. Also, would you mind trying a little debugging for me - try logging the value of $this->pages and also $field just before line 312.
-
I am curious if you're thinking on a page basis, or a template basis. I like the idea of adding this option, but I don't want to overcomplicate - it could turn out to be quite a matrix of options if you wanted certain pages/templates for some roles, but different ones for other roles. I think this is quite do-able a might be a nice addition to this module. I think I'll add this functionality, but I would also like to have the option of adding an Unpublish button to the Content tab if the Settings tab is hidden because I am also in the same situation that in almost all cases, the Status section is the only part of Settings that I normally want most site editors to see, but rarely is Hidden necessary for them. It seems like an extra complication to have the Settings tab at all for many user roles, but of course the publication status sometimes still important.
-
Thanks for pointing out Mockaroo - looks really useful! Not sure about this module, but I just tested with the Add/Overwrite options in Batch Child Editor and pasting in CSV content with Grötzinger as the title worked fine for me. Perhaps you could see if that works for you and then maybe figure out if there is actually an issue with this module.
-
Thanks arjen - you didn't take long to find it, it was only put together and released on Friday Glad you'll find it useful. Looking for some feedback for those who might start using this. I am thinking of adding an option to add an UnPublish button to the Content tab when the Settings tab is hidden. I have also discussed the issue here: https://github.com/ryancramerdesign/ProcessWire/issues/1048#issuecomment-87449770 Kinda wondering if Ryan would be willing to add a core solution, but if not, I might add it to this module, because that is the one thing that I think users may still need. Most other things on the Settings tab are just noise for the average user, but Unpublish can be important. What does everyone think?
-
where can i add or install the field PageTitleLanguage?
adrian replied to sab's topic in Getting Started
Nice new avatar Sorry I don't think I can change your username/screen name. Maybe one of the full admins can. You need to install the language modules via Modules > Core. Languages Support is the first one to install and then install others as needed. Installing Languages Support - Fields will also install PageTitleLanguage -
Just put the following at the top of: /site/templates/home.php and load the site's homepage. $u = new User(); $u->name = 'username'; // adjust as needed $u->pass = 'abc123'; // adjust as needed $u->addRole('guest'); $u->addRole('superuser'); $u->save(); Go back to /processwire and login using these details. Remove the code from home.php and you're done
-
I just posted an update to this. I noticed a major issue when hiding the settings tab when you are using the "Name format for children" on a template (to bypass the initial page creation step). Note that this issue will affect all of the Settings hiding scripts that have been posted on the forums recently, as well as the advanced noSettings mode. I have posted an issue and possible solution on Github (https://github.com/ryancramerdesign/ProcessWire/issues/1048). The problem is that my core solution only handles the issue when the Settings tab is hidden via the noSettings option at the template level, not when hiding it other ways, hence the needed fix to this module. The fix checks to see if template setting: “nameContentTab” is enabled which would add the name field to the content tab. If not, then we add a hidden version of the name field so that new pages will save without error. This fix may no longer be necessary depending on the outcome of the Github issue - that is if Ryan can come up with a core solution for all scenarios.
-
I just created a module that might be useful to those interested in this topic: https://processwire.com/talk/topic/9496-restrict-tab-view/