AndZyk
Members-
Posts
678 -
Joined
-
Days Won
10
Everything posted by AndZyk
-
New post: Rebuilding processwire.com (part 1)
AndZyk replied to ryan's topic in News & Announcements
@pwired I don't wanted to start a discussion about frameworks here. I just wanted to point out that UIkit is a good choice for a framework to rebuild the new ProcessWire website and comparing it to a grid system are two different things. The UIkit framework is (as most frameworks are) modular. So if you want to use only the grid system, you can include only the grid system in your stylesheets and it should have around the same size. I don't know how much exactly because I have never just compiled the grid system and I don't count bytes, because in my opinion the size of your stylesheets are the least thing to worry about. No, I think most of the people don't use the whole 100% of a framework. Personally I use probably around 40% and include the whole framework anyway, because I like to have a good set of components available. It lets me focus more on the content and design while developing a website and I don't have to reinvent everything (grid, utility classes, slideshow etc.) from scratch. But as mentioned, if you only want to use a part of a framework, you can simply don't include the rest. ? That is the same approach as using a framework. Except when using different libs from different developers with different support and compatibility, you use components from one developer that are always compatible with each other. Before using framework I also used one lib for a slideshow, one for filterable grid, one for lazy loading images etc. With UIkit I only need one framework or if some lib does something better, I use this lib instead. That is true under the assumption when leaving the framework untouched and using it plain. The part of a good designer/web developer is to build styles on top of a framework and make it look different. In my opinion a framework should not be used plain and is just a foundation for an individual design. Of course everything I say is my opinion only and everyone is free to choose whatever suits your projects the best. Using a framework is not always the best choice and for designs that are different, I also don't use a framework. But for a large project like rebuilding the ProcessWire website it can help a lot to have a good foundation and the UIkit framework is this. If you want't to discuss further @pwired, you can create a topic, invite me to an existing one or send me a PM. ? Yes, the current search function is not really good, especially when you have build better search functions with ProcessWire. ? In my opinion it should be able to search the whole website (blog posts, modules, docs, API, etc.) and have autocomplete suggestions. A service like Algolia may be not necessary and this could be probably achieved by ProcessWire alone, but I had to work with a similar CMS for a while which uses Algolia on its website and it was a breeze to have a good search function for learning a new CMS. Of course the CMS is not as powerful as ProcessWire and you can remove the link if this is advertising. Regards, Andreas -
New post: Rebuilding processwire.com (part 1)
AndZyk replied to ryan's topic in News & Announcements
Happy to hear that the website will be finally rebuild. I hope a modern design will attract more potential users. With UIkit you have made an excellent choice for a framework. I would wish for a better search function, maybe powered by a service like Algolia. ? Having worked with UIkit for two years now, I am obviously biased, but in my opinion it is the best framework at the moment. It is far more complete as Bootstrap with more components and more active development. Gridlex is a grid system, not a framework. The grid component in the UIkit framework is maybe 5% of the whole framework. So the UIkit framework can do 95% more than Gridlex. ? -
Listing and filtering contents of repeater fields (similiar to SQL JOIN)
AndZyk replied to j__'s topic in General Support
Hello @j__, using a Repeater field for this use case may be nice on the back-end but as you have already experienced difficult to output. One possibility could be to build yourself a new PageArray, where you add all repeater items and sort or filter them however you like. Or you could reconsider and use regular pages for your events. ? Regards, Andreas -
If you use the ProcessWireUpgrade module you always get the latest development branch with all new commits. Even if the version number is not bumped up. Just download the newest dev version again. ?
-
That extensions looks interesting. Currently I am using the extension sftp. So far I like it. It is like the commercial Sublime SFTP for Sublime Text. But I only use it for syncing up and down. For everything else I use Git. ?
- 242 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
CKEditor custom styles work in frontend editor not backend
AndZyk replied to JayGee's topic in General Support
Hello @Guy Incognito, can you select your custom styles in the Styles dropdown? Do you have selected the custom style but don't see any change? If you have selected a custom style and want to change the appearance inside the CKEditor, you also have to add a custom editor CSS file. ? Regards, Andreas -
Hello @mjut, I have no experience with adding CSS for admin templates, but you could try out the module Admin Custom Files. ? If you don't want to use an extra module for that, maybe someone else will jump in. Regards, Andreas
-
Hello @opalepatrick, I am not sure what you mean with "without the finicial stuff", but if you have set-up your ProcessWire installation with the structure of a shop and just want a cart, you could checkout Snipcart. They even have a tutorial for combining Snipcart with ProcessWire. I have not very much experience with this service, but it seems like a simple and developer centered solution. ? Regards, Andreas
-
[SOLVED, not] strange URL - browser shows all server path
AndZyk replied to zota's topic in General Support
Hello @zota, first of all it would be good, if you would show how you have build your navigation. Have you made a simple navigation with a foreach of all children linking to their url, like in this tutorial, or have you made something different? With no further information it is difficult to help you. ? Regards, Andreas -
No, that would not be duplicate content. Search engines (or Google as far as I know) are smart and see websites like humans. If there is some content invisible, they ignore it. Google uses for their search engine an older version of Chrome, so it can interpret JavaScript and media queries: Hiding/Showing content for different viewports with media queries is a common practice. For example take the Microsoft website: They use two navigations with the same content. One for desktop and one for mobile. You should do that, because as mentioned on the article I linked before: ?
-
It is not bad for SEO. Duplicate Content on the same page will not be penalized. Only if you have it on different pages. Search engines ignore hidden content. ? User agent detection on the other hand could be bad for SEO I guess.
-
I think most of the developers are lazy. That is the reason why I like Emmet. ? But Emmet can't rename the matching closing element, as far as I know. For that I use CMD + D or CTRL + Left Click on macOS for selecting the closing element. Thats a cool feature of the Auto Close extension. By the way, if you are not familiar with Emmet, I would recommend you to checkout the introduction. Especially for CSS it is a real time saver and easy to learn. Just type a few letters + tab. For example: bgc + tab = background-color. You can find all on the cheatsheet.
- 242 replies
-
- 3
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
I would do this: Backgrounds Use media queries, as you are already doing. Images Use the picture element for art directed images with media queries. That is what its meant for. Content Output all versions of the content in your template and use media queries to show/hide the versions for different devices. If you are using a framework, there are components for this use case: UIkit: Visbility Bootstrap: Display I would strongly avoid user agent detection. ?
-
Emmet defnitely works with PHP files too. How do you expand with Emmet? I recommend using tab for the expansions: Inside your PHP file you write for example div, then press tab and it opens and closes the HTML tag <div></div>. ?
- 242 replies
-
- 1
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Weekly radio show with Hip Hop, Future Beats, R&B, Soul etc. ?
-
Looks like a interesting extension: Getting hints from Visual Studio Code ?
- 242 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
$file->description always returns default language
AndZyk replied to Hurme's topic in Multi-Language Support
Hi @Hurme, this would be an ideal use case for language-alternate fields, if you haven‘t heard of them.? Or if you dont‘ want to use them, you could try to disable, that if no translation exists, the default language will be used. But language-alternate fields would be better. Regards, Andreas -
If you want to build a JSON object with PHP, you should have a look at json_encode. That it is easier and cleaner than building it yourself. ? Regards, Andreas
-
Thank you for recommending Auto Close Tag and Auto Rename Tag. Especially closing tags drove me nuts the last weeks. ? For me it only works with ProcessWire functions, if I have added a folder with a ProcessWire installation to my workspace and saved the file somewhere in this folder before. Edit: As @bernhard mentioned, the built in Emmet does the same. Only thing missing for me was expansion on tab. So I don't need the Auto Close Tag extension. ?
- 242 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Thank you very much for the hint. This is the reason why you should always RTFM. ?
- 242 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Here is an example: My installed extensions are: advanced-new-file Apache Conf Dash fish-vscode German Language Pack Material Theme PHP Debug PHP Intelephense Project Manager sftp Trailing Spaces vscode-pdf
- 242 replies
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
@kongondo and @bernhard I am happy, that you like Intelephense. I just installed it, because it was recommended in the plugins list and has many installations. ? It does indeed find many of the ProcessWire functions if you use the Functions API. Only thing confusing for me is, that it also lists every other PHP functions, which I don't need most of the time. I haven't made any configuration to this plugin yet or read the description. ? But I would be interested as well, if it would be possible to configure it to make it more specific for development with ProcessWire.
- 242 replies
-
- 2
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
I was for a long time happy with Sublime Text and in fact I still am. But this deprecation note of my favorite Sublime Text theme convinced me to switch to another editor/IDE. I have made the switch to Visual Studio Code a few weeks ago and like it so far. There are a few things missing/confusing, but the switch was easy because most of the Sublime Text plugins I used are also available for VSC. ? Thank you for the snippets, but I was wondering about some things @kongondo: If I use the Functions API, are those snippets a improvement or should I count in this case on a plugin like f.e. Intelephense? Maybe you could make a extension out of those snippets? Regards, Andreas
- 242 replies
-
- 2
-
- visual studio code
- vsc
-
(and 2 more)
Tagged with:
-
Yes, when you try to output a image field from a module, hook or bootstrap script it is an array, even if you set it to single in the back-end. ?
-
Hi @cosmicsafari, your example is a string translation, which you can use for static texts. Those static texts are ussualy short texts inside your templates which don‘t change that often. What you are looking for are multi-language fields, which are editable on the pages in the back-end. Just convert a existing field to a language field or add a new language field. If such a language field is translated, you will see the translation in the front-end. ? Regards, Andreas