Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Everything posted by pwired

  1. Thanks @Jan Romero for showing the correct way in this case: $p->images->get("videocounter=270")->url; I am aware now that I have to dive deeper into the processwire api with the use of arrays, Pageobjects and selectors ...
  2. Hi, In a page I want to find an image that has a specific field with a specific value In this case the Page = $p and the image that I am looking for has a field = videocounter and the value of this field = 270 I can find the image like this: $image = $p->images->find("videocounter=270"); so far so good But when I want to show the picture on the front: <img src="<?php echo $image->url ; ?>" /> It doesn't work, the image does not show With a few simple echos of $image; and $image->url; I found a work around that makes the image show up: <img src="<?php echo $image->url . $image; ?>" /> But I find this an ugly work around What would be the correct way to make the image show up ?
  3. not intended to start a fight ... but here are my pro's for using uikit ... It's called controlled bias ??
  4. Processwire is a headless cms/cmf and as such it only delivers your backend to the frontend in anyway you want with 0 limitations. That is what makes Processwire so great. Choose any cms framework you want but I really recommend not to start with big ones like bootstrap - uikit - etc. I recommend to start with pocketgrid css because it is perfect to first get familiar with using the processwire api outputting backend data on the front. https://arnaudleray.github.io/pocketgrid/ https://arnaudleray.github.io/pocketgrid/docs/ Once familiar with the Processwire api you can choose any cms framework you like. Bulma css is a great choice also ... flex based and all css ... no preinstalled JS, modular components (only use what you need) https://bulma.io/documentation/overview/start/
  5. Ah yes I forgot about make use of the config.php (or init.php) ..... thanks for pointing me there, will try that too. The paths that I declared in the _init.php ..... I simply declared them again on top of my hanna php code and now my hanna code is working in my ckeditor field So either way what will work I mark the question as solved. Note - did you guys know you can render a hanna code directly in a template like this: $hanna = $modules->get('TextformatterHannaCode'); echo $hanna->render("[[my_hanna_snippet]]"); https://processwire.com/talk/topic/14141-outputting-a-hanna-code-via-the-api-in-a-template/ Hanna Code is actually a powerful option.
  6. Hello Jan Thanks for replying on this. Instead of declaring my own file and url paths, using Processwire's api $config->paths hopefully will make it work I will try it and post back about it
  7. Hi, I am using a hanna code in a ckeditor field [[timeline]] In the _init.php I have declared $home_sidebar_timeline = $includes_path . "home_sidebar_timeline.php"; Can I use variables declared in the _init.php in a hanna code ? I have this php code in my hanna code: <?php include $home_sidebar_timeline; ?> When I put the hanna code [[timeline]] in a ckeditor field it doesn't work. How can I use a variable declared in the _init.php in a hanna code Do I need to use global variables ?
  8. Not sure what you mean by pattern ... I think it needs an extra pair of surrounding Parentheses ... if($page->hasChildren())
  9. Hi@Jan Romero, Thanks for pointing me back to the Details tab. Yes, now I have Ryan's suggestion working: you might want to disable the description and/or tags fields for the image, just for a more consistent appearance of inputs (though it's not required). The consistent appearance shows up and I simply use the Title instead of Description. How I ended up with this matter ? I was trying to add links to my images with <a> .... </a> and going through the forum posts first the module ImageExtra came up. Then I was reading a post of Jonathan Lahijani about the ability to have custom fields for images. All good now.
  10. Hi, I am setting up custom fields support for file and image fields as described here: https://processwire.com/blog/posts/pw-3.0.142/ I am using a Field with name: images and type: images All works well except for one thing. In the blog post it says: on the Input tab, set the Number of rows for description field to 0 (zero). When I go to my images field ... Setup > Fields > images and then go to the Input tab, there are a lot of settings there but I cannot find anything that says Number of rows for description field as mentioned in the blog post Anyone has an idea why that might be ?
  11. Thought that I was the only one trying to avoid composer. Thanks for posting this working solution (added to my snippets)
  12. Yes that makes sense. But in case of a multi language website how would you manage the text in the footer and the text on banners and banner slides, etc. ?
  13. Thanks for mentioning about version control ... haven't considered that one ... perhaps for bigger projects.
  14. Who is still hard coding graphics like a logo, banner, etc in sub folders like logo or banner in the styles folder ? I stopped working that way and create "Pages" in the back end such as a logo "Page" and a banner "Page" That way a logo and a banner etc. can be managed directly through the back end and no longer need a third party FTP tool. Makes it also more easy for the website user/client.
  15. From my perspective as a developer integrating CKEditor 5 into ProcessWire ... Seems to be the only perspective ...
  16. I remember it was. Lostkobrakai posted about this with solutions. I dont have any links at the moment but will post them later on.
  17. <div class="..."> <a n:foreach="$languages as $lang" href="{$page->localUrl($lang)}" class="..." > {$lang->title} </a> </div> Useful example and good jump start for me to try latte thanks for posting
  18. To make all the html layout better readable will make the workflow more productive I assume latte will allow me to rewrite php includes like this: <div class="header_navigation block"> <div class="header_language block">{language}</div> <div class="header_navbuttons block">{navbuttons}</div> </div>
  19. On the latte website I am reading some interesting things: - You don't have to look in the documentation. You don't have to learn another language. You just write like in PHP. - Latte is a next generation templating system – it understands HTML. Where other systems see only a bunch of characters, Latte sees HTML elements. - Latte is based on PHP, whereas Twig is based on Python. A designer in Latte doesn't have to constantly switch between two different conventions. I am using placeholders in my html using php and I must say it works really good and fast like this: <div class="header_navigation block"> <div class="header_language block"><?php include $header_language; ?></div> <div class="header_navbuttons block"><?php include $header_navbuttons; ?></div> </div> Here is my question: Could you say from your own experience if using latte shortcodes make more productive and is the overhead worth it ?
  20. Is it really necessary to have CKEditor 5 in Processwire ? Is CKEditor 4.x not more than safe and powerful enough already ? CKEditor 5 will not make more productive neither make a website client more happy. It will only make things more bloated. At least leave the option with the user and client to choose CKEditor 4.x or another simple Editor for the client. Most clients are non-tech people occupied with business for whom something like CKEditor 4.x is already complicated. They will never use all its options anyway. All they need is to change some prices, text and pictures. So please leave the option for the client to choose a simple Editor. What made Processwire stand out from the crowd was its focus on a versatile and powerful api with a core free from bloat. How much of that is still true ?
  21. Page not found (july 17 - 17:00 gmt) - - tried with 3 different browsers https://imperavi.com/article Edit: link is working
  22. makes you wonder if they can make up for it with the same level of payment ...
  23. New search engine on the block .... will their business model work ? yep.com ******************
  24. You need to get out of habitual thinking when comparing Processwire with Wordpress. From the beginning, Wordpress was never made for 1) websites 2) safety. And so, all through the years tons of spaghetti plugins were made for Wordpress to make things work. Processwire has a completely different Architecture because it is made both a cms and a cmf with safety in mind to make websites and apps without the need for essential plugins.
  25. Hi and welcome to Processwire and the Forum. This returning question has already been asked many times. You can find all your answers posted for this question in the forum. Did you search the forum already ?
  • Create New...