Jump to content

joe72joe

Members
  • Posts

    20
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Cologne

Recent Profile Visitors

934 profile views

joe72joe's Achievements

Jr. Member

Jr. Member (3/6)

1

Reputation

1

Community Answers

  1. @flydevthanks for the hint. I have to read that in peace and try to understand that. As a non-coder not so easy :-)
  2. In fact it is a portfolio Site, you are right ... i made a sketch of what my sites approach is ...
  3. @gmclelland unfortunately that does not work, I have the error messages again ... I think I will omit this part ... After the first shock I'm glad that the site is running again ... I will report if I can do it with the pagination thanks
  4. hmmm ... the "projects" stands for a variable, but I'm not sure anymore ... I had the code from the forum and modified it: https://processwire.com/talk/topic/12147-continuous-prevnext-links/ .. and it worked ... but I have to look at this again in peace, there seems to be a lot confusion in the code and with me ...
  5. Hello @wbmnfktr, thanks for your quick reply .. I build up an Template of my own no, i didn't After looking again in the Error-Logs there I saw this message: .../wire/core/Page.php(2458): ProcessWire\PageTraversal->prev(Object(ProcessWire\Page), NULL) for there in the past I had this Code-Snippet in the Bottom of one of my Template-Files: <div class="container"> <div class="col-sm-12"> <nav> <ul class="pager"> <?php $portfolio_pages = $pages->get->projects; ?> <li class="previous"> <a href="<?php echo $page->prev($portfolio_pages)->url; ?>" class="text-muted"><span aria-hidden="true"></span><i class="fa fa-angle-left"></i> Vorheriges Projekt</a></li> <?php $portfolio_pages = $pages->get->projects; ?> <li class="next"> <a href="<?php echo $page->next($portfolio_pages)->url; ?>" class="text-muted">nächstes Projekt<span aria-hidden="true"></span><i class="fa fa-angle-right"></i></a></li> </ul> </nav> </div> </div> After deleting this Snippet it works now again .. !!?? Not understandable to me, because this code has worked in the past. I'll leave it without this snippet for now. Apparently the code is not completely clean or it causes problems. thank you again
  6. Good evening together, wish everyone a happy new year. I have a problem after updating to the latest version (from 3.0.116 to 3.0.123) I can log in, everything works. In the frontend, the start page is displayed, but as soon as I want to click on a subpage, only parts of the page will be displayed (In the frontend, a message will be displayed at the bottom of each subpage.) -> Internal Server Error The server encountered an internal error or misconfiguration and was not to complete your request. " The following error message appears in the backend under "Logs": Error: Exception: Selector must be string, array or Selectors object (in /homepages...../wire/core/PageTraversal.php line 410) This is very strange because before the upgrade to 3.0.123 everything in the frontend everything was shown (without error message). Although I have created backups with Duplicator, i'm afraid to delete everything on the server right now including the database to reinstall. My PHP knowledge are very rudimentary. Maybe someone in the forum knows this error message. Or should I better delete everything and reinstall the Duplicator package in the hope that this works Many thanks in advance.
  7. @adrian you are right. Now it works. I have cluttered up some of the syntax between html and php. In any case, the foreach loop had to go up, as I had suspected. I'm really excited about Processwire. After using Contao for a few years I am overwhelmed by the flexibility of this system. I will continuing with studying ... Many thanks for your help, guys
  8. just noticed that my created repeater is a template, which is called in -> Templates "repeater_portfoliothumbs". If I change the foreach loop now in: <?php foreach($page->repeater_portfoliothumbs as $portfoliothumbs) { <div class="container-fluid"> <div id="grid" class="row portfolio-items"> <?php foreach($portfoliothumbs->port) { I get this message: Parse Error: syntax error, unexpected '<'
  9. now i tried to put another loop at the top, but then i get an server error ... somehow I do not look through there. Is my syntax wrong? <!-- Portfolio--> <section id="portfolio" class="no-pad-btm"> <div class="container text-center"> <div class="row"> <div class="col-sm-10 col-sm-offset-1"> <h3>Aktuelle Arbeiten</h3> <ul class="portfolio-sorting list-inline text-center"> <li><a href="#" data-group="all" class="active">Übersicht</a></li> <li><a href="#" data-group="design">Design</a></li> <li><a href="#" data-group="web/ux">Web/UX</a></li> <li><a href="#" data-group="kataloge">Kataloge</a></li> <li><a href="#" data-group="editorial">Editorial</a></li> </ul> </div> </div> </div> <?php foreach($page->portfoliothumbs as $portSet) { <div class="container-fluid"> <div id="grid" class="row portfolio-items"> <?php foreach($page->portSet as $port) { <div data-groups= echo "{$port->lb_home_port_datagroup}"; class="col-md-3 col-sm-6 no-pad"> <div class="portfolio-item"> echo "<a href={$port->lb_home_port_img_thumb_url->url}><img src={$port->lb_home_port_img_thumb->url} alt={$port->lb_home_port_img_thumb->description} >"; <div class="portfolio-overlay"> <div class="caption"> <h5> echo "{$port->lb_home_port_titel}"; </h5> <span> echo "{$port->lb_home_port_description}"; </span> </div> </div></a> } ?> </div> </div> <!-- Thumbs End --> </div> </div> } ?> </section>
  10. Hello, thank you for the quick feedback. Processwire is installed locally. When I put in the html-code in home.ph, everything looks good. As soon as I replace the tags, it works, too, but the pictures, titles etc. are placed one after the other at the respective position. That's why I think I would have to put the loop on top of the div data-group .. is just a guess ... but if I'm honest, I have no idea at the moment ... my php knowledge is very limited ... I do not see the forest for the trees :-(( respectively i can't find the error in the syntax
  11. Hi, first of all, I wish the whole community a good start into the new year. After some time, I have some time again to take care of my implementation problem. I try to achieve that: That is the html-code: <!-- Portfolio Thumbs--> <section id="portfolio" class="no-pad-btm"> <div class="container text-center"> <div class="row"> <div class="col-sm-10 col-sm-offset-1"> <h3>Aktuelle Arbeiten</h3> <ul class="portfolio-sorting list-inline text-center"> <li><a href="#" data-group="all" class="active">Übersicht</a></li> <li><a href="#" data-group="design">Design</a></li> <li><a href="#" data-group="web/ux">Web/UX</a></li> <li><a href="#" data-group="kataloge">Kataloge</a></li> <li><a href="#" data-group="editorial">Editorial</a></li> </ul> </div> </div> </div> <div class="container-fluid"> <div id="grid" class="row portfolio-items"> <div data-groups="["design", "web/ux"]" class="col-md-3 col-sm-6 no-pad"> <div class="portfolio-item"><a href="#"><img src="site/templates/port_1.jpg" alt=""> <div class="portfolio-overlay"> <div class="caption"> <h5>Titel 1</h5><span>Here my small description</span> </div> </div></a></div> </div> <div data-groups="["kataloge", "design"]" class="col-md-3 col-sm-6 no-pad"> <div class="portfolio-item"><a href="#"><img src="site/templates/port_2.jpg" alt=""> <div class="portfolio-overlay"> <div class="caption"> <h5>Titel</h5><span>description</span> </div> </div></a></div> </div> <!-- Thumbs End --> </div> </div> </section> In Processwire I have adapted the code, unfortunately, the images and the rest are displayed one below the other and not separated: That is the adapted code: <!-- Portfolio Thumbs--> <section id="portfolio" class="no-pad-btm"> <div class="container text-center"> <div class="row"> <div class="col-sm-10 col-sm-offset-1"> <h3>Aktuelle Arbeiten</h3> <ul class="portfolio-sorting list-inline text-center"> <li><a href="#" data-group="all" class="active">Übersicht</a></li> <li><a href="#" data-group="design">Design</a></li> <li><a href="#" data-group="web/ux">Web/UX</a></li> <li><a href="#" data-group="kataloge">Kataloge</a></li> <li><a href="#" data-group="editorial">Editorial</a></li> </ul> </div> </div> </div> <div class="container-fluid"> <div id="grid" class="row portfolio-items"> <div data-groups="<?php foreach($page->portfoliothumbs as $port) { echo "{$port->lb_home_port_datagroup}"; } ?>" class="col-md-3 col-sm-6 no-pad"> <div class="portfolio-item"> <?php foreach($page->portfoliothumbs as $port) { echo "<a href={$port->lb_home_port_img_thumb_url->url}><img src={$port->lb_home_port_img_thumb->url} alt={$port->lb_home_port_img_thumb->description} >"; } ?> <div class="portfolio-overlay"> <div class="caption"> <h5> <?php foreach($page->portfoliothumbs as $port) { echo "{$port->lb_home_port_titel}"; } ?> </h5> <span> <?php foreach($page->portfoliothumbs as $port) { echo "{$port->lb_home_port_description}"; } ?> </span> </div> </div></a> </div> </div> <!-- Thumbs End --> </div> </div> </section> Processwire fields: I suspect the "foreach loop" needs to start at the top. I tried that but get constantly error messages in the syntax ... Can someone of the PHP professionals give me a tip how the code has to look, so that the div blocks place next to each other Thx in regard
  12. Hello Steffen, thanks for the answer. I do not really want to have so many templates to achieve the goal, but keep the whole thing relatively light. My thought was that I basically have the home template, then by using the Tree -> Home -> "Edit" I always have a possibility to include a new block (Thumb) ... I have to confess that I'm not a PHP expert ... I just read by coincidence about content blocks - perhaps this could be an approach ... ? I will dig through the content Thank you first
  13. Hello to the community, I am currently trying to implement an HTML template. Unfortunately, I do not know exactly which approach is right for the attached image. In the picture I have drawn up how my template is built. It consists of a home.php File. The header and the footer File is included in home.php. So far it works. My problem now is how I bind the tumbnails into the home.php now in a reasonable way. I would like to be able to control this block from the backend with fields. Should I directly put the source code (see attached image) in the home.php? Is it perhaps useful to put the thumbnails code into a separate .php file and include the file to home.php? Thanks in advance
  14. woah, that was the error ... after allowing the guest to see the field it works. I am impressed. Thanks abdus for the quick help
×
×
  • Create New...