Jump to content

neophron

Members
  • Posts

    174
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by neophron

  1. Hi, this is the website structure: root -gardens -garden01 -garden02 -garden03 -garden04 -etc -contact -stuff On the gardens site I'm looping part of the fields from the child pages (garden01, garden02 etc). Some of the pages shall be linked from »gardens«, some not. I wanted to offer the editor a simple way to activate the link with one or to clicks. What I tried, was a way via hanna code. I created a hanna code with this code: <a href="<?=$garden->url;?>">read more...</a> I pasted this hannacode in a textfield (with hannacode formatter). This textfield is inside the foreach loop in the template from gardens. But the system gives me an error. I was thinking with a checkbox field and hannacode, but with no success. Do you guys have some experience with that?
  2. Hi, first, thanks for this cool module! I have a question: Is there a way to detect the browser and show it by name? Like firefox, safari or chrome?
  3. I found (trough smashing magazine) these two cool links with a good overview with all properties about grid and flexbox: http://grid.malven.co http://flexbox.malven.co
  4. Thanks @bernhard, it's time to have a closer look at this module. Since September 2017 ProCache supports less and css: https://processwire.com/blog/posts/pw-3.0.76-plus-login-register/#procache-3.1.7-adds-support-for-scss-and-less
  5. Hi, just found an strange bug. If I activate the »HTML minify« option, a simple gallery (uikit v3) with this structure <ul class="uk-slideshow-items"> <li class="uk-active uk-transition-active" style="transform: translateX(0px); z-index: 0;"> <img src="/site/assets/files/1080/sample01.jpg" uk-cover="" class="uk-cover" style="width: 1828px; height: 934px;"> </li> . . . . . . </ul> is converting into this structure: <ul class="uk-slideshow-items"> <li class="uk-active uk-transition-active" style="transform: translateX(0px); z-index: 0;"> <strong> <strong> <img src="/site/assets/files/1080/sample01.jpg" uk-cover="" class="uk-cover" style="height: 0px; width: 0px;"> </strong> </strong> </li> . . . . . . . . . </ul> Does it make sense to count on this module for the future? Cause to me it looks like, as if there is no longer support for this module. Are there alternative solutions?
  6. Thanks for this. Currently I'm testing the PIA-Module, now it's clean again ?
  7. Yes, everything is fine. For the next days it's here in a temporary subdomain: http://pw-single.designport.info I replaced the js stuff (except the parallax) with uikit (https://getuikit.com). As you mentioned in your introduction, this is really a good way to enter the Processwire world.
  8. Hi, thanks for this idea. Due to time pressure, I installed the »Sublime PW« profile and started to adapt it. This single page concept is build upon a Page Reference Field. In every page(= sections) you can throw your html structures.
  9. Thanks, now it works. ? If I want to deactivate a section, do I have to remove it from the Sublime PW? Cause, if I unpublish a page, the content is still visible.
  10. Hi, thanks for this site profile. I installed it to learn from it, cause a client asked me for a single website and after a break of two years, I wanted to create my second Processwire website. I have a question about the sections. If I want to add a new section, is it enough to duplicate an existing section.php in the _view folder and create a template for the new section/page? Cause I have now a new sectionTest.php in the _view folder, created a new template (without file) and added a new page (based on the new template). But .there is no sign of this new section in the frontend. In the master page (Sublime PW) the new section is not visible (check attachment screenshot). Do I'm missing something?
  11. Ok, this could be my backup ? I'll have a look at this.
  12. Thanks Tom, in your solution I have to create for every section a <h2>textfield</h2> and also for the body. My first intent was, to use only one field (f.e. for the h2).
  13. Hi guys, I'm struggling with my basic knowledge. I want to build a one- or single page website, with different sections. These regions have partially a different background color. I have, lets say four sections: section_one … till section_four. I created four templates, with some a few fields. Then I created four subpages, and each subpage has its own template. The simplest way, to render all subpages is with: <?php foreach($page->children() as $p){ echo $p->render(); // will render the above } ?> But this will render everything, without any control about the markup. Then I tried this: <?php $section_one = $pages->get("/home/section_one/"); echo $section_one->section_body; ?> But it gives me an error.
  14. Thanks for the tip. I'll check this out. I'm using the ProFields modules and they are worth every penny.
  15. Hi guys, thanks for the help. It's the php version. With php 7.0 it's ok, all above doesn't work.
  16. Hi, I'm struggling with AIOM. I installed this module and now I want to use my less file. In the head I have this, which doesn't work: <link rel="stylesheet" type="text/css" href="<?php echo AllInOneMinify::CSS('assets/css/main_design.less'); ?>"> or <link rel="stylesheet" type="text/css" href="<?php echo AllInOneMinify::CSS('assets/css/main_design.css'); ?>"> This f.e. works: <link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>assets/css/main_design.css" /> The less file has the same styles like the css file. The source code shows me this: <link rel="stylesheet" type="text/css" href="&lt;br /&gt; &lt;b&gt;Warning&lt;/b&gt;: A non-numeric value encountered in &lt;b&gt;/www/htdocs/w005e302/physio/site/assets/cache/FileCompiler/site/modules/AllInOneMinify/AllInOneMinify.module&lt;/b&gt; on line &lt;b&gt;713&lt;/b&gt;&lt;br /&gt; /site/assets/aiom/css_a3d1005d4a254bfaf5c76d729e0773fb_dev.css?no-cache=1530095993"> In the AIOM module configurations, the only thing I did, is the activation of the html-minify and the dev-mode.
  17. Hi, ah, ok, now I'm getting it. About the download link: I created a field (type: files). The frontend shows me this: <a href="&lt;br /&gt;&#10;&lt;b&gt;Notice&lt;/b&gt;: Trying to get property of non-object in &lt;b&gt;/var/www/web27428586/html/processwire/site/assets/cache/FileCompiler/site/templates/publications.php&lt;/b&gt; on line &lt;b&gt;18&lt;/b&gt;&lt;br /&gt;&#10;">Download</a> I found this article: https://jensmartsch.de/blog/simple-file-downloads-with-processwire/ I'll try it tomorrow. Thanks, I'll do this
  18. Hi, thanks for your suggestions. I solved it. The problems was, that I created this new folder in a different way (with Transmit [a ftp tool for Mac] and a mounted ftp folder). And it could be an issue with the ownership rights.
  19. Hi, I have an issue with a css file. In my templates folder is an »assets« folder with different subfolders like css, js and img. I uploaded the latest uikit3 css and js stuff to: assets --> uikit --> css and js. In my template I'm calling them like this: <link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>assets/uikit/css/uikit.min.css" /> This gives me an 403 error: GET http://mysite.com/site/templates/assets/uikit/css/uikit.min.css 403 (Forbidden) If I change the path to: <link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>assets/css/uikit.min.css" /> everything is fine. Is this a logic behavior from Processwire?
  20. Hola elabx, thanks for your advice. After some debugging, this code finally works: <?php foreach($page->children() as $subpage): ?> <h2><?php echo $subpage->publication_year ?></h2> <?php foreach($subpage->Repeater_publication as $publication): ?> <p><?php echo $publication->repeater_description ?></p> <a href="<?php $publication->repeater_download->url ?>">Download</a> <?php endforeach; ?> <?php endforeach; ?> My next goal is to create a real download link for pdf or doc files. And the link must be visible, if it's populated. What I could't understand is, after creating such a template.php, do I have to tell Processwire somewhere, that this template exists?
  21. Hi, I'm trying to build a publication page, where the lists of publications are structured like this: 1997 more Publications 1996 Another Publication Another Publication 01 1995 Publication 01 There is a page – »Publications« with subpages. All subpages from »Publications« exists only as content holders. They're not preview-able. Now, I created a template »publication« with a field for the year and a repeater field (»Repeater_publication«). The repeater contains two fields: »repeater_description« and »repeater_download_file«. What I'm trying is to echo the whole stuff on the Publications page with a double foreach. My question is: Is this the right approach? Shall I generate for the publication subpages a template.php? I tried this, but it doesn't work: foreach($page->children() as $subpage): $publications = $subpage->publication_year(); foreach($publications as $publication): echo $publication->Repeater_publication(); endforeach; endforeach;
  22. Hi psy and pideluxe, thanks for your responses. I took the first solution. Processwire is cool for learning php. thanks P.S. For all php newbies: http://php.net/manual/en/language.operators.php
  23. Hi, I want to show only on the start page a div with some content. I'm trying with my rudimentary php skills to construct this: <?php if($page->isHomePage()): ?> <div class="xx"> lorem ipsum </div> <?php else: ?> <?php endif ?> Ok, I know that isHomePage will give me an error. But, is there a methods how to detect the start page and then to echo a div? I thought about <?php if($page->is($home)): ?> where »home« is the template and the start page is connected with it. I'm using the older templating method. What would you recommend? Thank you
  24. Hi guys, thanks. I solved it with the AIOM solution. I was also asking myself where the cache delete button was hidden
×
×
  • Create New...