Jump to content

Lance O.

  • Posts

  • Joined

  • Last visited

  • Days Won


Posts posted by Lance O.

  1. I have a template that includes an image field that supports multiple images. The images uploaded to this field include a description field.

    If one of these images is embedded into a textarea field (i.e. Body), should the image description will be inserted into the image's alt attribute when embedding the image?

    I always assumed that it would, but there is a separate option to add an alt attribute when inserting the image.

    Is the purpose of the description field purely for use with the API and unnecessary for images that are intended to be embedded within a textarea field?

    I guess I need clarification as to how this works. Either something changed, or I never understood the differences between the image description and the alt attribute as it is used in ProcessWire.

    I'm currently using ProcessWire 3.0.15.

  2. The field type is definitely set to "Image." There is no caption option. :-(

    Here is the field export, if that helps:

        "portrait": {
            "id": 144,
            "type": "FieldtypeImage",
            "flags": 0,
            "name": "portrait",
            "label": "Portrait",
            "extensions": "gif jpg jpeg png",
            "maxFiles": 1,
            "outputFormat": 2,
            "defaultValuePage": 0,
            "inputfieldClass": "InputfieldImage",
            "collapsed": 2,
            "descriptionRows": 1,
            "adminThumbs": 1,
            "defaultGrid": 0,
            "maxReject": "",
            "fileSchema": 2,
            "icon": "image",
            "overwrite": null,
            "outputString": "",
            "textformatters": "",
            "entityEncode": "",
            "useTags": "",
            "showIf": "",
            "columnWidth": 100,
            "required": "",
            "requiredIf": "",
            "unzip": "",
            "maxWidth": "",
            "maxHeight": "",
            "minWidth": "",
            "minHeight": ""
  3. I've set up search on a client site and discovered that the search results are a bit finicky.

    Searching for meter returns a faculty page with the title of "Timothy L Van Meter". But searching for van meter returns no results.

    My selector looks like this:

    $pages->find(template=campus-view|campus-view-archive|campus-view-article|component-event|component-feature|component-post|component-showcase|component-video|faculty|faculty-directory|home|news-archive|news-publications|page|post|section|seminary-hill-farm|slide|staff|staff-directory|videos,title|headline|heading|subhead|lead|body|profile|summary|meta_keywords~=van Meter,limit=12);

    Changing the selector operator to %= produces results, but the client doesn't want visitors to the site to have to enter an exact word or phrase.

    Can someone explain why the more specific "van meter" does not display in results, but that "meter" does?

  4. I'm receiving the following error when uploading to an image field named "portrait":

    SQLSTATE[HY000]: General error: 1364 Field 'caption' doesn't have a default value

    Settings on this field:

    Valid file extensions = gif jpg jpeg png

    Maximum files allowed = 1

    Formatted value = Single item (null if empty)

    Text formatters (for file descriptions) = no selection

    Overwrite existing files = checked

    Number of rows for description field = 0

    The site is hosted on ServInt and I'm using ProcessWire 2.7.3 dev.

    Is this error that can be corrected by changing the SQL mode, or is this a ProcessWire error? Any insight is appreciated.

  5. When exporting a field to be used on another site installation, is there any harm in removing send_templates from the export code?

        "vcard_tel": {
            "id": 134,
            "type": "FieldtypeText",
            "flags": 0,
            "name": "vcard_tel",
            "label": "Phone",
            "textformatters": [
            "maxlength": 2048,
            "tags": "vcard",
            "collapsed": 2,
            "size": 0,
            "send_templates": [
            "showIf": "",
            "columnWidth": 100,
            "required": "",
            "requiredIf": "",
            "stripTags": "",
            "placeholder": "",
            "pattern": ""
  6. I've always used a PHP file that resides outside of PW and included an include to the index.php page, but if you are working within PW, you probably don't need to include this at the top of your template:

    • Like 1
  7. Image bottleneck or not, if the PW admin is loading slowly, there must be another issue. This site didn't load this slowly in the past. Images are uploaded via the studio that designed the site, so I don't have complete control over what gets added.

    The site was originally using 5.3.29 FastCGI, but was changed to 5.5.21 CGI (latest).

    I just added that bit of wizardy to the .htaccess file as DaveP suggested. Seemed to make a little bit of a difference, but the backend still loads slow.

  8. The following site developed in PW loads very slowly. I updated PW to 2.7.1, but I don't know if that is the culprit, since the client told me that the site was loading slowly for a couple of days before the upgrade.

    The site is hosted on Media Temple Grid and is using PHP 5.5.21. Both the public site and the PW admin load slowly. Media Temple has suggested adding a MySQL GridContainer.

    Any ideas? This is the first time I've encountered this problem, and I honestly don't think PW is to blame. Currently, I don't have caching enabled, but even if I did, that wouldn't help the PW admin. Anyone else hosting on Media Temple?


  9. It looks like setting up the Source URL with the additional code works. (It doesn't look like we need to add the additional code to the page url.)

    Thank you for your quick response! Client is happy and has restored faith in PW and Jumplinks. :-)

    • Like 1
  10. I am using Jumplinks for one of my clients. We have set up a number of redirects to monitor several campaigns we have in place. For instance, we have links like this:


    that redirect to actual pages in the site:


    The original link is being used in Google AdWords. AdWords is adding a Google Click Identifier (gclid) to the url, so when a user clicks on the link, it actually appears like this when they visit the site:


    The problem is that the link with the gclid parameter is returning a 404 error. Jumplinks doesn't appear to recognize when a parameter is appended to the url.

    Is there a way to prevent this, or perhaps I didn't set something up correctly? Any advice is appreciated. I'm using Jumplinks 1.3.1 with ProcessWire 2.6.1.

  11. No offense to the developer of FrontendUser, but I'm cautious about using modules that provide functionality that are core to a project's success. I came from the WordPress world and was burned more than once on plugins that were no longer supported by the developer. I'm at the point where I would rather spend $100 on a module and be confident that it is going to be supported rather than using a free module that may later be abandoned.

    Yes, basics like registration, login, change password, email address, name, and upload image would need to be supported, allowing users to edit their profile using a custom front end template without having access to PW's back end admin.

    • Like 2
  12. My preferred approach is to create a high level "Slideshows" page. Then I will create a parent "Slideshow" page and add individual slides as child pages. On the page where a slideshow needs to be assigned, I create a Page field that allows for a single slideshow selection.

    Using repeater fields is a bit limited in that you have to completely delete the slide from the slideshow if you no longer want to use it. Some of my clients want to unpublish a slide and then use it again in the future. Using pages as individual slides provides them more flexibility, and using pages as slideshows allows them to create a variety of slideshows that can be swapped out. For example, a client may want to change Home page slideshows on a seasonal basis.

    • Like 2
  13. Processwire is chosen, wordpress is followed.

    I like ProcessWire, and I've used it on almost every project in the past three years. But to state this in the way that you have is borderline trolling. You are of course entitled to your opinion, but in my world, things aren't as easily defined in black and white. And they aren't for my clients, either.

    • Like 2
  • Create New...