Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/16/2023 in all areas

  1. I am as many others love ❤️the Latte template engine, and I use RockFrontend to integrate it into ProcessWire. One cool feature of Latte is, that you can easily create a comma-separated (or any other separator) list of items, where the last item does not have a separator (comma) afterwards, without needing PHP. Take this code as an example {foreach $pages->get('/myparentpage')->children as $item} {$item->title|noescape}{sep}, {/sep} {/foreach} Which will output a list like: first title, second title, third title If you want to know more use cases take a look at the documentation at https://latte.nette.org/en/tags#toc-first-last-sep
    2 points
  2. Don't be fooled! This reporter has published propaganda to make people think that strategic and intelligent thinking will lead to a successful WordPress update. In reality, there is no logic or reason that can prevent disaster, you are at the mercy of chaos and a hateful god determined to destroy your will to live. To describe this in more depth, one of the plugins simply wasn't able to be downloaded without paying for another license which prevented the entire site moving from PHP 7.3 to 8.1. There was another plugin for forms that showed a "This form is temporarily unavailable." error to website visitors. This plugin author has decided that not only will it stop working- it will break your site's functionality. After running a standard plugin update in the WordPress admin- it removed functionality and demanded additional payment. The plugin did not indicate that a new license would be needed before updating, and thanks to caching- you couldn't tell the form was broken on the front end! Also- let's talk about caching! Caching for WordPress is a complete mess. Sure this is not exclusive to WP, but it takes the cake. Why? Because hosting companies' "Managed WordPress" plans which are an attractive option for hosting companies because it lets them set very aggressive caching policies to squeeze more capacity out of cheap crappy shared servers. This is why "Managed WordPress" hosting is almost always run on shared servers- even WPEngine, one of the more well known and much more expensive services, is all run on shared servers. I confirmed this via their sales team who was harassing a client about their website's monthly traffic limit. They said that the overages cause "performance issues". After confirming the server isn't a VPS (although they price it like it is), I asked if "we should be worried about other sites slowing down our site because WPEngine uses shared hosting". They left the client alone after that. WP is frustrating, but I take a deep breath and think about how that WP money is helping pay for an upcoming vacation. So... thanks WP?
    2 points
  3. Hi @Focksbot! It would depend on how your site is rendering it's frontend output. Check output strategies. From most common to less common is: Direct output Delayed output Markup regions So first I'd check if there exists a home.php file in /site/templates and start from there to see if direct output is implemented. Also if you read the docs above its a good place to start too. If you still feel lost, maybe a screenshot of how your filesystem looks would help too, to see the organization of the template files. But almost 100% sure that what you're looking for is in /site/templates This is sort of ProcessWire's blessing and curse (for people unfamiliar with ProcessWire) as it doesn't have an output strategy tightly coupled with a specific set of data such as posts/pages like in Wordpress, in ProcessWire those would have to be built with templates/fields and eventually Page(s), the main building blocks of data in ProcessWire.
    2 points
  4. Hey! PageMjmlToHtml author here ? @BitPoet wouldn't it be best if instead of having to opt-out templates the js script was only added when the multiplier fields are added? Not tested but maybe you could put the Page::render hook inside of addMultipliedFieldsToProcessor?
    1 point
  5. The latest: ProFields Table 0.2.5 on PW master 3.0.229 I did a minimal setup to try it out with one template containing: - a Table field (1) - a FieldsetPage field with Table (2) - a Repeater field with Table (3) On first try there is a js error when clicking on "Add new" but this can be fixed by editing the InputfieldTable.js file on line 193: if(href && href.indexOf('#') === 0) { // check if href exists (pinging @ryan so he can see this) When adding a new row on (1) and (2), the Fluency button is there but is not responding to click. When creating a repeater item (3) and then adding a row there is no Fluency button. Save the page and Fluency will now work on (1) and (2) on the saved row (still not on new ones) and (3) is not working at all. Hope this helps!
    1 point
  6. You could do that with latte also like so: {$pages->get('/')->children->each('title') | join(', ')}
    1 point
  7. I think you can do shorter. ? With Twig I would do that: {{ pages.get('/').children.each('title') | join(', ') }} But usually I use html lists so WireArray API is enough: <ul>{{ pages.get('/').children.each('<li>{title}</li>') }}</ul>
    1 point
  8. Some reporter had the incredible chance to capture a team of developers successfully completing a full WordPress update. A very rare and intense footage: (reading your messages, this is how I imagine WordPress ? )
    1 point
  9. Hi @kongondo, I was looking at the progress you have made on this product... I have an idea that I was looking to implement on the backend but realized dynamic selects might already cover it. I saw way up in the thread that Repeater and RepeaterMatrix were supported, but I am assuming this means you can include Dynamic Select fields in Repeater items, not that repeaters are able to be polled in the dynamic field definition processes? So for example, I have a page with template gallery and It's called gallery. It's got a repeater/repeater matrix called shows. It has a repeater item for each show. Could I generate a dynamic select that runs like: Roma Gallery -> Shows -> #1 - Pottery in Venice (following the default display list format for the repeater) Page -> Repeater Field -> Repeater(Matrix) Rows Or even recursively polling repeaters? Lol. Maybe not too crazy. This is sort of hypothetical - I have another way to handling the issue if I must, but is this something you'd consider or have already considered as a feature? Thanks!
    1 point
  10. This is apparently a really old hat and common in many editors, but it’s the first I’ve heard of it and it just blew my mind. Did you know you can name heredoc strings “HTML” to get HTML syntax highlighting?! I kind of try to avoid heredoc, but this seems pretty neat.
    1 point
×
×
  • Create New...