Jump to content

Tyssen

Members
  • Posts

    358
  • Joined

  • Last visited

Posts posted by Tyssen

  1. I'm working on a site where I want people to be able to create listings but to do so they need to create accounts first.

    For the login/register forms, I'm using https://github.com/ryancramerdesign/LoginRegister but it says in the module settings "Roles with page-edit permission are not shown."

    But I want my new users to be added to a role with page-create/edit permissions for the template in question, so how do I assign that role to the module? Or is there another way I should be doing this?

  2. @ngrmm I did what you suggested and installed the new module locally. It has more fields on it than the old one and I tested adding settings specifically to the templates for the pages that are missing and then added a priority of 1 to them which seems to be the only thing I can do for when they're not showing (the rest of the options are for hiding pages that are in the sitemap), but I still don't get the pages showing.

    The way things are set up is like:

    - Shop
    --Categories
    ---Category 1
    ---Category 2
    --Product 1
    --Product 2

    So the /shop page and all the products directly below it show up in the sitemap, but the /shop/categories page and all its children don't show.

    I can't see anything in the settings for the templates for the categories or the children or the pages themselves that should be hiding those pages.

  3. 11 hours ago, ngrmm said:

    @TyssenMaybe the old module has also these fields.

    No, the old module doesn't have any fields. The only thing I can do is uninstall it. And I can't even do that because when I try I get:

    Quote

    Argument 1 passed to ProcessWire\Fields::___delete() must implement interface ProcessWire\Saveable, null given, called in /wire/core/Wire.php on line 397

     

  4. I've inherited site that uses Markup Sitemap XML for generating the site map but there's a certain group of pages that are missing from it and I can't figure out why.

    There is a checkbox field for hiding pages from the sitemap but it's not actually assigned to any templates.

    There is no sitemap-xml.php file or anything like that.

    I've looked in ready.php and there's nothing in there related to sitemaps.

    Where else should I look?

  5. I'm upgrading an old PW site which originally just had a single body field and now giving them a repeater matrix field which will allow more types of content.

    For the template, if the repeater matrix field has content I want to hide the old body field from the editor. What would be the conditional that I'd enter into the settings for the body field? I thought it might be something like matrix_content.count=0 but that doesn't work.

  6. I've inherited a PW site that has something installed which forces changes to the page title field to update the page name field under the settings tab too, and vice versa.

    The site does have the Connect Page Fields installed but title and name aren't set as connected fields. It also has Custom Inputfield Dependencies installed but that doesn't look like it would do this.

    Anyone have any other ideas what might be causing it? Because I'd like to turn it off.

  7. 2 minutes ago, flydev said:

    And to be sure, you can try the code above on a mock server:

    // $url = 'https://json-api-url-domain.com/matches?id=XX&division=YY&teams=[ZZ]';
    $url = 'https://my-json-server.typicode.com/typicode/demo/comments';

    With pw, or not - should give you a resource ok message, a 200 http code, with an array of two objects as a result. 

    Yes, I get successful output with that. Still get 500 with your updated code on my URL.

×
×
  • Create New...