Jump to content

kongondo

PW-Moderators
  • Posts

    7,529
  • Joined

  • Last visited

  • Days Won

    161

Everything posted by kongondo

  1. Yes you can get the value. See the examples in the first page, first post of this topic. However, you cannot use a selector to query the value. Yes, you cannot use a selector to query it, but you can access the value.
  2. @Manol, It seems your question has been answered? Moderator Note Please don't start different topics about the same issue. Also, use this module's support forum for all questions related to it. I have merged your other topic here.
  3. The very ugly configuration is the new style (since a couple of versions back). What you saw in the (old) 'official' video is the old style. Welcome to the forums ?.
  4. Yeah, coz it's not even picking up the README.
  5. Maybe it only works with GitHub hosted modules?
  6. New members are allowed a maximum of two posts within 24 hours the first time they post. It is meant to be a spammer deterrent. We are working on either relaxing the limit and/or making it clear to new members that the limit exists. moderator note @Mikaello and @Michkael. There's no need to create two profiles. Please delete one. After 24 hours, you should be able to post normally without restrictions.
  7. moderator note I've moved this thread to module dev since it is no longer a support thread. I might lock it in the future if there is a need.
  8. Moderator Note: Please don't double post
  9. No. Not true . The docs themselves show how to add an image from an external URL.
  10. Oops my bad. I misread. The URL string is not malformed since it works when accessed directly.
  11. The URL (the one in the PW error) works fine if you access it directly. So, maybe some other formatting issue?
  12. Sounds like a circular reference issue...
  13. Hi. Just looked at your issue quickly, so you might be already doing the right thing. Note that you need to first save a new page before adding images to its image field. Save the page first, then add the image, then save again.
  14. Hi @Noel Boss, In your case, if the module extends (not in a PHP technical sense) $page, then it will have to be an autoload module. Your module adds methods to the Page and WireArray classes. Hence, if it is not an autoload module, I don't see how it will work just by doing this: $json = $pages->find('template=skyscraper')->pageQueryJson(['title']); You will definitely get a PHP error about Method PageArray::pageQueryJson does not exist etc. Maybe I'm missing something. Did it work for you with the new changes? Sorry if I am taking your round in circles ?.
  15. Thanks @Pete, Stuff on the left side seem a bit squished?
  16. Do you mean a separate field for time? Not out of the box, no. You'd have to edit the source code. If you can be a bit more specific about your needs, we can rustle up something for you.
  17. You only use autoload if the module needs to load automatically when ProcessWire boots so that you can listen to every single request and typically attach hooks to some event of interest. Don't let this confuse you though. Modules can hook into events without being autoload modules. An example autoload module is Blog module's Publish Date. It listens to when Blog Posts are published and sets a publish date. As such, it needs to be auto-loaded. Does your module need to boot with ProcessWire or does one call it when one needs it? If the latter, then it means presently, it is just loading and using up resources when it doesn't need to. Can your module work like this? $pageQuery = $modules->get('PageQueryBoss'); $query = $pages->find('template=skyscraper'); $json = $pageQuery->pageQueryJson($query); It doesn't seem to me like it needs to autoload, but I've only had a brief look, so I could be wrong. You can read a bit more about autoload modules in the module class docs here.
  18. Maybe you are calling your hook late. Have a look at the code in the first post of the following thread, just below the /site/templates/includes/hooks.php sub-heading
  19. @Noel Boss, Looks great, thanks! I've just had a quick look. Any reason why the module is autoload?
  20. Use either InputfieldPageAutocomplete or InputfieldPageListSelectMultiple as input for the page reference field. These will only load selectable pages on request.
  21. No surprise here.. I guess I am from the old school. A 'long time' ago, logos used to be background images set on anchors (<a> tags). Menu items (<a> tags) used to have background images called sprites that would 'shift' on hover to create a nice hover effect...
  22. Like I stated, my page has children and grandchildren . It does have custom fields...but yeah, maybe not like yours. So, maybe, show us the custom fields you have. Otherwise, it's a bit more difficult to help. Also, ProcessWire version.
  23. I there's maybe two things to consider Can your fwrite() access the location you want to write to? The location of the js script needs to be accessible (readable) to the world so that browsers can serve it.. If the js script are for external use (i.e. external to PW), maybe you want to keep it clean and add them to the file system of whatever app you are using them for. Just my lazy 2p on a lazy Friday afternoon..
  24. <unrelated> I need to try laragon again. Last time I did, it didn't work for me or I didn't want to exclusively work on PHP 7.x. I still need to support PHP 5.3 + for some of my modules and laragon did not seem to support that? </unrelated>
×
×
  • Create New...