Jump to content

jensweigel

Members
  • Posts

    34
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by jensweigel

  1. With the Less Module you can place a admin.less inside your templates folder. .PageList .PageListItem { &[class*="PageListTemplate_component"], &[class*="PageListTemplate_section"] { background: #f3f3f3; border-bottom: 1px solid #e0e0e0; &.PageListItemOpen { background: #e0e0e0; border-bottom: 1px solid #c9c9c9; } > a { padding-left: 10px; &:before { content: "\f061" !important; margin-right: 10px; } } } } so all Component Template begins with „component…“ (section is only a older version)
  2. Oh that’s interesting! So I guess I should review it again. The irritation for the customer is maybe less with the matrix solution.
  3. but if you want to move a page content to a other page you need some extra modules. I guess it is a personal flavor how to do 😀
  4. Oh yes you are right! I considered that as an alternative. The advantage for me using Pages is a better overview and handling in the backend. Disadvantage: understanding differences between Page and Page content is for customer very hard.
  5. On the template: (you see the module approch) getComponent gets all allowed page components, loads it template files, wraps it if needed. Every component has a wrapper builder where I can choose what css class it will use. this will wrap this component into <div class="hero"> <div class="heroinner"> {COMPONENT-CODE} </div> </div>
  6. Yes of couse All pages with white background are pages. The grey background are page contents. So I have an easy way to rearrange, move or extend. The warm grey sections is for header and Footer wich works in the same way as the pages. So it can have page content like logo or navigation. So you see the main Page "Kanzlei" have 6 page contents. The hero, a text component, the Expertise with some sub pages, Team, News and Events. In this case all of these have subpages. Other example: (Schreinerei Merte) You see a Wrapper wich just create a wrapping div around some kind of content. Output:
  7. The KKP.LAW site has been a Site of the Week in Processwire Weekly in the past. For this reason I would like to share some insights. So I hope someone will get an inspiration and maybe others may provide idees how to improve my process. Development Setup Currently I build my projects with DDEV and upload them to the server using Github Actions. This way I can view and develop them locally and push them to live when I am done. I also have SCSS which I write to a src folder and is watched by DDEV and also by the GitHub action. So it is possible to change SCSS via a browser in GitHub and everything will be deployed automatically. The basics The KKP.LAW was the last project before I develop this orocess with modules. But the basics are almost the same. Years ago I used Typo3 for building websites. But the really complex update routine, the complicated configuration and the ongoing change how you should build templates made it necessary for me to look for a new CMS. So Wordpress was never an option and many others were also very complicated, so I looked at ProcessWire. After a second look I really understood the approach and built my first websites with Processwire. Very quickly I switched from Typo3 to Processwire. Implementing new features into existing websites was so easy with it. But one thing I really liked in Typo3 was the concept of pages and page content. On each page you can have multiple page contents. I.e. text or images or a mix of both. So I started to rebuild this logic in Processwire. I have templates for pages and templates for page contents. I use a page and pagecontent tag for the different types. On the PHP templates I just need to include them. So each page collects its page content children. All page contents can have a wrapper with some css classes. So it is easy to create layouts with this system. CSS Framework For this I use a kind of own CSS framework which is much more individual than big ones like Bootstrap. Personally I like the concept of 10 columns. So I have a 10 + 4 + 3 column system. Paddings are always added inside a column. So I dont need rows. All page content is inside a div tag with display: flex; flex-wrap: wrap;. The result is very clean and I get a slim file sizes. Components Later I changed the page content more into components. They are not as powerful as in modern JavaScript framework. It was more a logical step for me. In my eyes, the massive classes I would need to build responsive websites always displeased me. So more and more I changed my approach to design and configure everything in a component with maybe one or two classes and do the rest in CSS. But in some cases the old approach is still good. Current approach So I made some modules for my basic needs. The current module is very personal build arrount my needs and my DDEV configuration. Each component (or page content) has its own module. So it has some methods, PHP template and basic scss which I bind into my deployment process. I wrote a bash script that sets up ddev, installs Processwire and these modules. Also creates a GitHub brunch with the required action that can be synced into a live server. - So this is a basic overview of my approach. Hope it is an inspiration for you. Questions and suggestions are very welcome. See Website: KKP.LAW My own website: (also Processwire) Jens Weigel – Büro für Design
  8. Great to hear! My current project with Padloper 1 will be released in the next week. So maybe I should convert it to Padloper 2 in future.
  9. @apeisaAre there any deeper infos for Padloper 1? Docs on site are helpfull but not in all cases
  10. Hi! This quit old but have some equal thing. A huge import file with image urls. But some of them generating problems because of wrong or bad image files or they are just not at the URL. Is there a way to check that before?
  11. Hey kongondo are there any news for Padloper 2?
  12. @Teppo Great Module! Are there more examples for an API call of your module? I want to track all changes and list them on a special site. Only changed pages/fields should be listed. Any ideas? foreach($page->versionControlRevisions() as $key => $alue) { $page->snapshot(null,$key); echo $page->name; } How can I compare fields in the version with the current version?
  13. Im getting a 503 if I save a Page with CKEditor, but only when there is a external link inside …
  14. Edited: just rechecked everythink – now it works. Thats weird.
  15. I have tried it with another PW installation but it works. Can't share is because of the license. But I get it with every Preview image form stock.adobe.com
  16. A follow to my previous post: I think this a weird problem. I tried it with some images and it turns out that only images form Adobe Stock have this problem also Fotolia (wich are the same but different payment options) Shutterstock is no problem. Even if I resize/crop the Adobe Images the problem remains … So I think I just don't use Adobe Stock…
  17. Got this problem now overnight. PHP Version is 7.1 so "always_populate_raw_post_data" is deprecated. Strange is I can upload only some images. Also files aren't a problem. In some case I get the SyntaxError: Unexpected token < Any ideas?
  18. Are there still somebody who is interested in this topic? I made some silly solutions for my personal purpose. Maybe we can exchange know how. For the base I structure my PW sites similar to Typo3. I have pages like Sites and pages like pagesections. SImilar to Typo3 they have different kinds (text, pictext, pic, …) The current task is to rewrite the tt_news urls. This is so crappy if you see how easy PW handle it.
  19. @adrian - Yes that works! Great stuff! You saved my day!
  20. Hi Adrian this module looking very good! But i have some strange problems. So export on page tree from one site (whole tree; pw 3.0.15) wich works very well. And I want to import it on PW 3.0.18 System. wich seems to work also well. Templates and fields are created. I also get the info "Created all required templates and fields and imported/edited 140 pages" but if I view on the page tree nothing is there. I dont see any errors. So maybe its because of the 3.0.x version. Do you have tested it with the 3.0.x version? What else could I try?
  21. So solved it by myself! It was the name for the toolbar option. It wasent mathjax and not MathJax its Mathjax. Such a stupid mistake …
  22. Hi guys! Im currently trying to integrate the MathJax plugin (http://ckeditor.com/addon/mathjax) for CKEditor. But it doesnt work. Does any one use this plugin? It is instaled correctly, is checked in the Field input, all requered plugins are installed, I dont get any JavaScript error but dont see any button. Any suggestions?
  23. Hi! I have a problem with multiple languages an importing Pages from CSV. The problem is that the other languages are not active. Are there any options to change this? All values are international (only numbers)
  24. But the description field is used for the alt-attribute. I need a real image caption inside the CKEditor. Does ImageExtra place the caption inside the CKEditor? Like this: http://ckeditor.com/ckeditor_4.3_beta/samples/plugins/image2/image2.html
×
×
  • Create New...