AndZyk
Members-
Posts
722 -
Joined
-
Days Won
10
Everything posted by AndZyk
-
Welcome @DarsVaeda, you could try to solve this layout with the recently introduced repeater depth. For example depth 0 are your rows and depth 1 are your cards. In combination with the commercial RepeaterMatrix this could be an pleasing solution for editors. Regards, Andreas
-
Hello @cyberderf, there is not an tutorial available for this profile, except the blog post about the new demo site. In this blog post there are some of the new functions explained, which were used in this profile, but if you wan't to know more, you will have to dig through the code. Keep in mind, that this an advanced site profile. If you haven't worked with delayed output before, you should first read this tutorial. Regards, Andreas
-
Hello @KarlvonKarton, I think you should either use $sanitizer->name(string $value) or $sanitizer->pageName(string $value). The first one does the same like pageName, but allows both upper and lowercase ASCII letters. Regards, Andreas
-
I don't understand exactly what are you trying to say. I think it is, that for web based IDEs you don't need an powerful machine and only an fast internet connection? For people who travel a lot and only have a netbook on their hands that is helpful. As I am working only on one place with a desktop computer, I am obviously not the target group. But everybody should use what fits best to their needs. Some people also prefer to code only in the command line. Recently I discovered this funny editor: Code in the Dark. Wait till you get to POWER MODE! There is also an extension for Atom available.
-
Here is a more detailed blog post about the release of the Beta with an explanation, why they launched UIkit 3 this way. In my opinion the docs are already good, but if you don't like them, you can report an issue on the GitHub repository of the docs. The width component is new in UIkit 3 (see the blog post), but if you meant the grid component, in UIkit 2 it only had 10 columns max. That is still more than 6, but personally I can't remember any use case for such small columns. Yes, it is a Less project, but they had support for Sass since 2.11.0. They also said it is planned, but not done yet. As already mentioned, picking a framework isn't always about being lazy or trying to avoid custom code, it can be about finding common components for every contributor to make contribution much easier. I would welcome if ProcessWire would implement UIkit as framework for its back end.
-
The beta of UIkit 3 is out now. Sadly there is no Sass version yet, but I think it is on the way.
-
I am curious in what exactly the advantages of web based IDEs are? Is it, that you need to setup everything just once? Somewhere here I stumbled upon the web service Codeanywhere, but I can't see any reason in paying monthly for something like an editor (of course their service offers more than just the editor).
-
Hello @webhoes, unless your child pages contain a page field called child, you don't need the second child property here: foreach ($child->child->children as $children2) { foreach ($children2->children as $child2) { echo "<h1>{$child2->url}</h1>"; } } Instead you can do it without it: foreach ($page->children as $child) { echo $child->title; foreach ($child->children as $child2) { echo $child2->title; foreach ($child2->children as $child3) { // And so on... } } } Regards, Andreas
-
Maybe you have to enable the expires module on apache of your hoster first?
-
This CSS rule should be enough in your case, but maybe you want to be more specific: .zoom-out-header-content { background-color: white; } Also I wouldn't provide a link to the admin on the front end, but this is just my opinion and maybe your are using this only for development.
-
Hello @webhoes, on your project detail pages, the hero image zooms into the content below while scrolling. You should add a background color to the content below to avoid this. Also, you seem to have some console errors (for example [[ ++site_url]]). Maybe you are using a template engine, which produces those. Regards, Andreas
-
If you don't want a user role to change templates, just make sure to not give it page-template permissions.
-
Just wanted to add, that an image has also an width, height and description property. So you could output it like this: $thumbnail = $page->image->size(600,480); echo "<img class='entry-thumbnail' src='{$thumbnail->url}' width='{$thumbnail->width}' height='{$thumbnail->height}' alt='{$thumbnail->description}'>"; So you don't have to change the width and height attribute manually.
-
You are not the only one, who noticed that. If you are already using delayed output, you should check out the new region function, if you haven't already. It comes in really handy.
-
Sorry for being unclear, I have meant the instructions on the textarea field input tab. In my opinion, styling of colors or alignment should be handled via an separate css file or the custom styles section of CKEditor. The custom styles would probably be enough for you and shouldn't slow down the CKEditor too much.
-
Hooks for manipulating images and its variations
AndZyk replied to AndZyk's topic in Module/Plugin Development
After having a closer look to the AutoSmush module, I don't think there is not much need for the module I had in mind: The ImageOptim web service requires an API key generated by your mail address It is similar like reSmush.it currently free, but only in beta and it is not clear how long the beta will last Also I should maybe develop a smaller module first. If anyone wants to give this idea a shot, feel free to do so. If reSmush.it gets shut down for whatever reason, this could be an alternative. @horst: Forgive me this silly question: But does optimizing the source image really make an noticeable difference for creating the variations? Of course it makes sense, but so far I never noticed any downside. But I am not an image expert like you are. -
Hooks for manipulating images and its variations
AndZyk replied to AndZyk's topic in Module/Plugin Development
Thanks for the hint. I will have a look. -
Hello, I am currently playing around to build my first module. It will be a simple module for the ImageOptim web service, but I am a little bit stuck on which right hook to use. Currently I use following hook: $this->pages->addHookAfter('saveFieldReady', $this, 'imageOptimSave'); I would like to pass images and its variations to the web service after adding them to the image field. But if I use the saveFieldReady hook only the original image will be optimized, not the API generated image variations, because they will be generated after viewing the page for the first time. Can anybody please help me how to hook into the image variations? I already tried to use my own method, but this one used in the template would be called on every page render. Regards, Andreas
-
Hello @franciccio-ITALIANO, the CKEditor is not poor, you just have to read the instructions. There are plugins available for color and align. In case of the color, in my opinion, I find the default behavior of stripping out inline styles preferable and much cleaner to define your own styles. Regards, Andreas
-
Find page where secondary language is not active
AndZyk replied to asbjorn's topic in Multi-Language Support
Hello @laban, how about this solution: <ul> <?php foreach ($pages->find("template=basic-page") as $child) { if (!$child->viewable($languages->get(1036))) { echo "<li>{$child->title}</li>"; } } ?> </ul> This way you would iterate over all pages with the template basic-page and check if it is not viewable in your secondary language. Regards, Andreas -
Glad that was it. For further development I can recommend you enabling debug mode in your config.php, if you haven't already, and checking out the almighty Tracy Debugger module.
-
Hello @MilenKo, maybe you get the error, because you try to output $results instead of $result, which seems to work. Regards, Andreas
-
Strange behavior of pages in multilang environment
AndZyk replied to backes's topic in Multi-Language Support
Sorry, if I may not understand you correctly. But the way your module works right now, you would check if the 404 page is viewable in another language. Because if you try access a non-active page by default a 404 exception gets thrown and your module would hook into the 404 page. So it would be pointless to throw another 404 exception and log it, because that is the default behaviour. I am not quite sure, what you try to achieve, but if you want to customize your 404 page, you could just create an template and assign it to the 404 page. -
Strange behavior of pages in multilang environment
AndZyk replied to backes's topic in Multi-Language Support
Does your 404 exception event got thrown if you redirect the session before? I tested it locally and for me it doesn't get thrown. In my opinion you should either throw the exception or redirect. Regards, Andreas -
German web design magazine PAGE published in their latest issue (01.2017) an article about WordPress alternatives. One of the four introduced alternatives is ProcessWire, which is praised for its