Jump to content

kongondo

PW-Moderators
  • Posts

    7,479
  • Joined

  • Last visited

  • Days Won

    146

Everything posted by kongondo

  1. Currently, you can only do it using the API (hooking), not the GUI. See custom price here: https://www.padloper.pw/documentation/custom-pricing-for-product/ Edit: See correction in next post. There is a basic discount codes module ?
  2. Hi @zoeck, Thanks for your interest in Media Manager. I can't give a definite date but it will be in the autumn.
  3. Thanks Adrian. This got me more curious because I vaguely remember having a talk about lower case vs upper case. So, I went back and checked, all the way from 2.2 up to and including 2.7.3. It was only lower case in those versions. So, this must be a 3.x introduction.
  4. @Karinne Cyphers, Thanks for the screenshots. They've helped clarify issues. I suspected as much given the error MySQL was throwing. The error itself is originating from ProcessPageLister (a core module) which Media Manager extends and uses to fetch and display media pages. As far as I can remember, ProcessWire only allows lower case letters for field names. Going by your screenshot though, it seems this changed sometime back. Back to your issue, the error is a ProcessWire error and not Media Manager's. I'm not sure whether it should be filed as a ProcessWire bug (specific to your server environment, maybe) since it now seems upper case letters are allowed in field names. I'll try and find out.
  5. Hi @Karinne Cyphers, I don't remember ever seeing this error in respect of Media Manager. A couple of questions: Do other fields, either in the same template or a different one work OK? For instance, text fields, etc Is the problem with this one template or have you tried a different template? Maybe there is an issue with the name of your field. Try renaming it to something else and use lower case letters only MySQL and PHP versions? If possible, please post a screenshot or animated gif of the error, thanks.
  6. $roles->find('');// all roles //$roles->find($selector);// if want particular roles http://processwire.com/api/ref/roles/ Adapt as required for module use
  7. Yes, they would be overwritten. I agree, however, the current Blog API documentation is sufficient to get you started, I would think ?. True, but it shouldn't be a problem because the most important thing for you is to use Blog's own methods. E.g. renderPosts(), renderCategories(), etc. They'll still work irrespective of output method. Hence, the reason I pointed you to the examples in the demo template files. Maybe if you could explain what exactly you need help with?
  8. You can also do a check using the template 'menus'. That's the template used by menu builder menus.
  9. Hi @MilenKo, Your code was close. If a menu is not found AND the user is a supersuser, Menu Builder will throw a WireException. If the user is not a supersuser, it will return false (boolean). In such a case, you can do your check like this: $mb = $modules->get('MarkupMenuBuilder'); $out = $mb->render(1234, $options); if($out) echo $out; // OR //if($mb->render(1234, $options)) echo $mb->render(1234, $options);
  10. Not unless you roll back to previous versions or modify the module itself to your liking (being aware that any future updates will wipe out your changes unless you rename your module class and files). Welcome to the forums @Ben Sayers. Yes, apologies for the documentation. Despite my best intentions, I've never been able to find time to complete it. Again, sorry about this. Docs should be clearer. Not at the moment, I'm afraid. Any reason why you can't/won't use the Blog module itself to render your posts? The demo template files and the present documentation provide examples that should get you going.
  11. Hi @pwfans, Welcome to the forums. I'm glad you are finding the module useful. Could you please provide more information regarding this approach? I'm sure it would come handy to others using to look this module. For instance, what template are you referring to? A template file? Also, the bit about the <form> and the textarea is not clear. Thanks!
  12. Excellent idea! I'll add it in the next version of MM. Meanwhile, for now, you can edit the file MediaManagerRender.php and enter the following code after the Filename, i.e. on line #676: '<span>' . $this->_('URL') . ':</span> ' . $m->httpUrl . '<br>' . Please note, the output (URL) might be quite long, so the CSS could be off. However, I cannot work on this now since the new version of MM will have a different layout. It will present a challenge though since the descriptions, etc are viewable on hover. When the house is moved away, the overlay goes. This means, it will not be possible to copy the URL. I hope this makes sense. I will have to think more about this.
  13. Hmm. That's not ideal. This is not how MM usually works ?. What's your server environment? ProcessWire version? I have never used the Redirect module. Could you please show me a screenshot of the input where the URL is supposed to go? Do you need the URL or the path?
  14. @Thomas Scholz, Welcome to the forums. Thanks for the purchase. Media are saved as pages, hidden away under Admin. It seems a situation occurred whereby the creation of a media page did not complete and subsequently, the media was re-uploaded and the module tried to create the page again. Since in PW, no pages under the same parent cannot share a name, you get the violation constraint. Was this a media with a big image you were trying to upload? Try deleting the page physically in your page tree: admin > media-manager > media-manager-image > heikohotel-hotel-am-stadtpark-buffet-2-9840a-1032. Make sure to delete it and also empty the trash. If not, you might have to physically delete the page entry in your DB. This situation has happened to me once or twice in the past. I know it is annoying, apologies. On a related note, Media Manager has a setting for handling duplicate media. I'm not sure why that did not kick in before your situation occurred. Most likely, like I said, a page creation did not complete. Let me know if you are still not able to resolve this and I can have a look if the site is online. I am not sure I understand this. Do you mean, they want to link to media, for example, within text in CKEditor (either as an image or link)? If the answer is yes, just click on the image or link icons in CKEditor and you will see links to pick the media from Media Manager.
  15. Yes, but only via the normal PW page tree. Posts are just PW pages that use the template blog-post. I don't know what Blog style you used, but just add a child page to whoever the parent of pages using blog-post is. If using style 1 of Blog, then the parent should be the page Posts and it uses the template blog-posts. Adding a child to that parent page should automatically select the template blog-post for the children being added (i.e. individual posts).
  16. Sorry, @St3f4n. I forgot to answer your question! Use post_large_image option for featured image in a non-summarised (i.e. large/full) post and post_small_image option for featured image in a small/summarised post (e.g. in the default blog-category template file). Does this help? Welcome to the forums ?.
  17. Currently, such 'user-added' fields are not supported in Quick Post. They can only be accessed when you edit the blog page normally. Maybe it's something I need to think about.
  18. @adrian @netcarver @horst, Thanks guys. There seems to be a problem. I don't know if I mucked up something server-side during maintenance or it's a GitHub thing. What's happening is that only one branch is getting saved, the one that was updated last. So, currently, only PW3 Master is available (you can tell by the folder pw3master here on the project page) since it was generated yesterday. The folders for the other branches are all missing. The next auto-update will be PW3 Dev, hence, it will wipe out pw3master folder. I will have a look at this when I get some time. I'm also wondering whether it is really worth maintaining PW2.7, 2.8 and 3 master? These docs are really for devs and my guess is that devs will most likely be using the latest and greatest PW version, i.e. PW dev. Any thoughts?
  19. Hi @MarcoPLY, Please confirm you are talking about the commercial Media Manager module and not another module. Media Manager does not randomly delete images ?. I seem to recall you were using other modules for your media needs?
  20. @tooth-paste, please note the corrected code in my last post, i.e.
  21. I can tell from your screen grab that the audio media 2212 is unpublished (the crossed eye icon). Unpublished media cannot be added to a Media Manager field, hence why insert media button doesn't do anything. In the upcoming version of MM, you will get a meaningful message/error if you try to add unpublished media to an MM field. Oops, my bad, sorry. Image media would have returned a Pagefiles but audio media should return a Pagefile. So, no need for inner foreach. $media = $pages->find('template=media-manager-audio, include=all, limit=10'); // $media is a PageArray foreach ($media as $m) { // media_manager_image is a Pagefiles but media_manager_audio is a Pagefile // so, no need to loop echo $m->media_manager_audio->url;// url to your audio media } Just a reminder that the above code is for Direct Access. Use it only if you want to access your media directly from your Media Library without having to add them to any page (i.e., to any MM field). In this case, you do not need the MM media field in your prekenarchief template. Alternatively, to interact with a MM field, use the code in the documentation.
  22. Thanks for the purchase ?. Is media a Media Manager field? If it is not, you need to first create and add a Media Manager field to your prekenarchief template. You will then need to add the audio files you want to that field. There will be a link in the Media Manager inputfield to your Media Library. You can then use the code above. This is the most common scenario/usage of Media Manager. You upload media to your Media Manager Library first. You then pick and choose the ones you want to add to a certain page. Finally, you access them using Media Manager API. Alternatively, you can directly access the media in the Media Library from within your template file without first having to add them to a Media Manager field, e.g.: /* @note: the Media Manager template for audio media is 'media-manager-audio' the field with the audio media is 'media_manager_audio' in this case, we use include=all OR check_access = 0 since media pages are access-controlled admin pages */ $media = $pages->find('template=media-manager-audio, include=all, limit=10'); // $media is a PageArray foreach ($media as $m) { // media_manager_image is a Pagefiles so we need to loop through it but.. // media_manager_audio (also document and video) is a Pagefile. No need to loop // example for image media (template = media-manager-image) //foreach ($m->media_manager_image as $image) echo $image->url; // example for audio/document/video media echo $m->media_manager_audio->url; } This is not a common usage, but choose what fits your workflow best.
  23. Yes. However, in the current version, this only works from the inputfield/fieldtype side of things, i.e. when adding media (in media manager library) to a media manager field on a page. When accessing the media library directly, one sees all the 4 media types. However, on the dev version that I'm still working on (it has taken a while I know, but I'd rather get it right than hurry it through since it is a major release), one can control the 'global' visibility of media types as well as at the inputfield/fieldtype level. I'm not sure when the dev version will be ready though. I thought it would have been ready by now but that didn't happen, so, no more ETAs I'm afraid.
  24. Aah, we've got it nailed down at last! The issue, as per the error message and a bit of Googling, is an ImageMagick bug/issue. There are several solutions out there. ImageMagick is a very good library. Before giving up on it, ask your hoster (if you don't have access yourself) to resolve the issue given that there are several solutions out there. Some resolutions simply involve recompiling the library. Here are a few examples of the 'bug': https://stackoverflow.com/questions/9586048/imagemagick-no-decode-delegate https://www.imagemagick.org/discourse-server/viewtopic.php?t=12366 https://stackoverflow.com/questions/37594157/imagemagick-no-decode-delegate-for-this-image-format-error-constitute-c-re http://www.imagemagick.org/discourse-server/viewtopic.php?t=32287
×
×
  • Create New...