Jump to content

Roych

Members
  • Posts

    393
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Roych

  1. Hello, I'm having some weird issue with image uploads, with normal images field. I get Invalid image when I try to upload an image (normaly or drag&drop). It does not happen all the time if I try to upload the same image again sometimes it uploads but there is no thumb preview in admin. (but the saved image works on frontend). I noticed this on multiple of my sites, not sure what is wrong it was working fine not while ago. I'm I missing some update (maybe server) or ...? I have 3.0.165 and all modules upgraded. Any ideas? R
  2. Omg, not even sure what to say, lol? Didn't thought of them. Works perfect now ? Thank you R
  3. sorry, my mistake I already tried it with $item->images->first()->url I mistyped in above post. When reading my first post I I wasn't realy clear about what I wan't. Sorry ? My page tree: BLOG (template = blog-list) - Post 1 (template = blog-detail) - with page reference field "skupine_page_select" (bullets for selecting category for each post) - Post 2 -"- - Post 3 -"- CATEGORIES (template = categories-List) - Category 1 (template = category-detail) with image field - Category 2 -"- - .... I want to show category image in my "blog-detail" template. I can bring the title of the category but not the image. This shows the title, but I guess it is just from the page reference field itself which is already in my blog-detail template, or ...? <?php echo $page->skupine_page_select->implode(function($item) { return " <a href='$item->url'>$item->title</a>"; }); ?> I hope you understand Thank you
  4. Hello I'm having some troubles getting first image from pages selected with page reference field. I have categories with children and each children has one image (images field). Then on Posts page I have page reference field for selecting and adding those categories. I can echo the title based on selection but somehow can't get images to show up. What am I doing wrong here? <?php echo $page->skupine_page_select->implode(function($item) { return " <a rel='tag' href='$item->url'>#$item->title <img src='$item->images()->url'></a>"; }); ?> Thank you for your help R
  5. Hello, this will sound silly as was probably asked a milion times, but somehow can't find the answer here. I'm using this module for a while now, but always with ckeditor. I would like to use another field like URL or simple one row Text field but I just can't seem to make it work. It strips the <p>. What am I doing wrong. It always (echoes) just the link to video. I would like to use this with protable and best with some one row field (URL, text fields), so I could add videos the fastest way. Now I have it working but with textarea (no ckeditor) but I have to put <p> paragraphs manualy everytime. What do I have to do to make it work with other fields? Any guidance is greatly appreciated. R
  6. Hello, Im getting oembed code as (og:description) description when sharing my posts on Facebook, if the video link is somewhere in the article. Doesn't matter where in the article it is. I even changed the description in SEO Maestro for article but I still get this code instead of description. Also when I show latest articles on my homepage with truncated text, I still get this code. But in articles without video links is working fine. Any Ideas. Thank you R
  7. Thank you for answer ? I have this two that shows up when searching for version control: RevisionControl For Text Fields Version Control For Text Fields R
  8. Hello I'm getting this error in admin area on top, not sure what. Any help appreciated. I'm using Reno theme. {"error":true,"message":"Missing required GET param pages_id"} Thank you R
  9. Hello, maybe this was already asked for, but couldnt find the answer to it. I have a gallery on my site and I use pagination for images expl. 32 images per page. Im using Fancybox which is working great. The problem is that the thumbnails in FancyBox only shows the thumbnails for the curent paginated site. So if you slide through images only with Fancybox than you don't know that there are actualy more images available unless you go bact to the page and click page2. Is it possible to view all images in fancybox thumbnails. Thank you R
  10. Thank you Exactly what I needed ? I knew this can be done somehow cause PW is awesome when it comes to translating. ? R
  11. Oh, ok, to bad actualy ? Thank you R
  12. I need to translate the a "1 to 10 of 50" string, TO and OF words, can this be done, if so where I looked everywhere? (I'm filtering like in skyscraper profile) Thank you R
  13. I know I deleted the server paths before I posted it (I hope). Now I deleted it from the post too. ? Thank you for all the help and your time kongondo and dragan? R
  14. Omg, that easy, lol. Works perfect only had to change the url to httpUrl and everything is the way it should be. Already had file with complete makup ready. Useful for other stuff also. Thank you very much saved me a lot of time with this. ? R
  15. Thank you dragan but still not working, same error again. Not sure what to do here
  16. not sure how to enabe/disable API functions... ? Both sites are PW version 3.0.165 PHP Version 7.2.33 Both sites Multilingual but second language disabled for the moment (using multilingual fields) environment PHP, MySQL Thank you R
  17. I tried to follow the RESTful API in PW? but it is to complicated for me I guess. Then I tried with https://processwire.com/blog/posts/multi-instance-pw3/ again but it's not working even on this tutorial site. Was this ever fixed or am I doing something wrong. I would just like to show events from the main site on the second site on the same server. Similar to rss. Events are maintained only on the main site. Second site would just show the upcoming events I tried with: (testing) <?php namespace ProcessWire; // Server path to the PW installation $path = '/home/myserver/mydomain.com/'; // The root URL for the PW installation $url = 'http://mydomain.com/'; // Create a new ProcessWire instance $site = new ProcessWire($path, $url); // Find the 5 newest items in modules directory $items = $site->pages->find("parent=/modules/, limit=5, sort=-created"); // output list foreach($items as $item) { echo " <p> <a href='$item->httpUrl'>$item->title</a><br /> </p> "; } But tracy gives me error Any idea how to fix this? Do I have to do anything else than just put the code in my template or do I have to create an extra template for this like with (rss) or.... (Im new new to this) Thank you very much R
  18. thank you I will look into it R
  19. Hello Need some help "again" ? Never done this before ... I have three PW sites with different domains all three on the same server (each with it's own database not multisite), I would like to bring 5 latests posts from one PW sites and show them on other two sites. what would be the simplest way to do this. I tried to follow this but just won't work it gives me blank page or 404. https://processwire.com/blog/posts/multi-instance-pw3/#how-to-create-a-new-instance Not sure if I want to use RSS feeds... Thank you R
  20. Yes, thank you very much, it's working great now. ? R
  21. Hello, Im having two weird problems on my PW installation (site almost done). When I enable TracyDebugger I can't acces the HomePage (all other pages work normaly) when loged in (I get 404) and there is a lot of code from tracy backend below my site on frontend. When Im not loged in the Homepage is normaly accesible or if I disable tracy. this is how it looks: And another problem is I have a field called scripts but I cant edit the field or view it's settings. Although it works fine on frontend and when editing a field on pages. This is the error when I try to edit the field in Admin->Setup->fields->scripts (Textarea - AceExtended) Any Ideas? Thank you for your time R Thank you
  22. It was Capital first letter so the page2 URL was different from first page. Expl: // added skupine // if a skupine is specified, then we limit the results to having that skupina (skupine_page_select field in those pages) if($input->get->skupina) { $skupina = $pages->get("/skupine/" . $sanitizer->pageName($input->get->skupina)); if($skupina->id) { $selector .= "skupine_page_select=$skupina, ";//CHANGE YOUR SELECTOR AS SHOWN HERE // $summary["Skupina:"] = $skupina->title; $input->whitelist('skupina', $skupina->name); } } the $input->whitelist('skupina', $skupina->name); I had the capital letter S it was my mistake. ? But I do have one question is it possible to output search summary somewhere else than above search results. Not sure how to take it out of the search.php an maybe put it in some includes maybe or ... Right now I commented it out as it is not really necesary but it would be nice to maybe put it somewhere so user can see what they were searching. I mean this --> Thank you R
  23. I got it, I found the problem in search.php I got my first site with filtering between multiple pagereference field working, jeeey. So no need for outsourcing, PW is great. ? Thank you kongondo R
  24. Hello Finaly I have managed to make everything work as I want, the only thing is that now the pagination wont work as it should for filtered results. When you filter the results and if you klick on page2 it shows all of the articles not just the rest of the filtered ones. The results are filtered between two page-reference fields in one post. pagination is enabled on all templates. Is there a way to tell pagination to paginate only those filtered results? I tried to look for possibilities on the forum but could't find anything like that. Thank you in advance R
  25. Ok I'm lost here and decided I'm actualy willing to pay someone (reasonable price ofc.) to create some working very simple site_profile so it can be reusable if I come to this problem again in the future. ? Profile with _prepend, _append strategy simple without func. I need articles page (similar to blog) with two or three page_reference fields inside each article for creating and selecting different categories (each article can belong to more than one category). And with dropdown filtering of all articles on frontend similar to skyscraper profile (filtering between page-reference fields), and with keywords search. Maybe also with navigation to each category article list. page tree: (can be about anything, just made this up) BLOG - article 1 (including 3 pagereference fields with multiple checkboxes(choices)) - article 2 (including 3 pagereference fields with multiple checkboxes(choices)) - article 3 (including 3 pagereference fields with multiple checkboxes(choices)) CATEGORY 1 (Page reference field1) - cats - dogs - birds CATEGORY 2 (Page reference field2) - fury - Feather - Furr & Feather - other CATEGORY 3(Page reference field3) - something else - and another that is all ? Anyone? ? R
×
×
  • Create New...