Jump to content

clickpass

Members
  • Posts

    11
  • Joined

  • Last visited

Recent Profile Visitors

1,333 profile views

clickpass's Achievements

Jr. Member

Jr. Member (3/6)

0

Reputation

  1. Thank you, dragan & wbmnfktr! @dragan, these information were just interesting to me. I am using Mark Rockett's marvellous sitemap module now. That should do it with some crawl time. The paths are fixed. @wbmnfktr, I am using a bastard iframe for the google previews which can't be cross referenced under https. For this goody I also pay some loading time, but I find it so nice and found no other. But I really should use only one address, yes. Of course I don't remove the preloader. The site needs time like all good things ? (kidding) but better to prevent FOUTs. Google Search Console is set up and and working. I find that a page size of ridiculous 12MB shouldn't be a problem anymore. But you are right. The images must be reduced in size. Thank you very much!
  2. Hello again dear forum! This is my latest website: http://lobo-taberna.de, powered by ProcessWire 3.0.98. The galleries are image fields, of course, which are suited into a Featherlight Gallery (https://noelboss.github.io/featherlight/). I am also using the Masonry plugin for the layout (https://masonry.desandro.com/). My code goes like this: <div class="maze" data-featherlight-gallery data-featherlight-filter="a" > <?php $a = 0; foreach ($page->taberna_imgs as $image) { $a++; echo "<div class='item'> <p class='p-google'><a href='$image->url'> <img src='$image->url' alt='$image->description'> </a></p> </div>"; } ?> </div> There is no problem with that. The rendering works. But Google won't index the images. Somewhere I read that a linked image directly in the <div>-container wouldn't be indexed. So I embraced the <a>-tag with a <p></p>. But this doesn't seem to be the problem. At least they are not indexed, yet. Then I read a forum's post by Ryan that all pw-folders except of the template-folder would be excluded from searches by robots-code which might be inside the pw-docs somewhere. (I am sorry that I lost the post-link.) I am using a robots.txt in the root folder which allows crawling everything. Simple question: How can I get my images indexed? Of course they are saved inside the assets folder.
  3. I want to split my output of an image array, see my code here: <div class="row"> <?php foreach($page->umf_imgs as $image) {echo "<div class='one-fourth column refs'><img src='$image->url'></div>";} ?> </div> <div class="row"> <?php foreach($page->umf_imgs as $image) {echo "<div class='one-fourth column refs'><img src='$image->url'></div>";} ?> </div> <div class="row"> <?php foreach($page->umf_imgs as $image) {echo "<div class='one-fourth column refs'><img src='$image->url'></div>";} ?> </div> The number of images is 11, but I only want to add four in a row. Is it possible to grab them, e.g. image 1-4, image 5-8, image 9-12?
  4. I even think I posted the topic under the wrong category.
  5. Great, but I still don't know how to select my images. An example would be very helpful. To be honest, I have not the slightest idea how a modulus operator can do my task.
  6. I want to split my output of an image array, see my code here: <div class="row"> <?php foreach($page->umf_imgs as $image) {echo "<div class='one-fourth column refs'><img src='$image->url'></div>";} ?> </div> <div class="row"> <?php foreach($page->umf_imgs as $image) {echo "<div class='one-fourth column refs'><img src='$image->url'></div>";} ?> </div> <div class="row"> <?php foreach($page->umf_imgs as $image) {echo "<div class='one-fourth column refs'><img src='$image->url'></div>";} ?> </div> The number of images is 11, but I only want to add four in a row. Is it possible to grab them, e.g. image 1-4, image 5-8, image 9-12?
  7. Yes, BitPoet, I know it sounds puzzling. But your answer is as useful as simple. Thank you! I just had to add some names to my submits and get what I need now.
  8. The point seems to be that a copy of each page is saved under all siblings. They are copies, but why? When I say save a child page under "/comments/kommentare_zitat_1", how can there be 5 other copies under the siblings?
  9. Hi everyone! I have managed to build a little form where the entries are saved as a page. That works nice. My problem is that I need to use several forms for several diffrent questions, while the answer to each question is going to be listed below. For assorting the answers to their related questions I have made child pages for each question and gave them different related templates. The POST page should be saved under the parent, which is one child of the question siblings, and it should be given the particular template related to the child page. (It even worked fine one time before I made some changes). The problem is that the generated page from the form is then saved under all of the question siblings as a child. Where is the problem? I have six pages with six different templates. The templates all are holding the same fields. On submit a child page, basing on the template(s) is generated but unfortunately saved as a child under all of the six question pages. I want to save each answer as a child page of the related question page, but only there. What goes wrong? I am using Ryan's proposed snippet for such task, which I am greatly thankful for. Still in development and not much changed it looks like this: <?php // form was submitted so we process the form if($input->post->submit) { // create a new Page instance $p = new Page(); // set the template and parent (required) $p->template = $templates->get("kommentare_zitat_1"); $p->parent = $pages->get("/comments/kommentare_zitat_1/"); // populate the page's fields with sanitized data // the page will sanitize it's own data, but this way no assumptions are made $p->kommentar = $sanitizer->textarea($input->post->kommentar); $p->namez = $sanitizer->text($input->post->namez); $p->profession = $sanitizer->text($input->post->profession); // PW2 requires a unique name field for pages with the same parent // make the name unique by combining the current timestamp with title $p->name = $sanitizer->pageName(time() . $p->title); $p->save(); header("Refresh:0"); } else { // no form submitted, so render the form include("./comments-form.inc"); } ?> The template "kommentare_zitat_1" also exists as "kommentare_zitat_2" etc. The parent page "/comments/kommentare_zitat_1/" has siblings until "/coments/kommentare_zitat_6/". Now any time I am submitting an answer to one question/page, six pages are saved, each question sibling gets one. Might there be an easy solution? I don't know why this is not functioning anymore. Thx, Daniel
  10. Thank you, renobird, for the solving answer and your lead to the config module!
  11. Hello there, WireFolks! I am just about crashing into ProcessWire and try to make my way through. A Great CMS! What puzzles me right now is --why do the changes in my Reno Theme not apply? Any suggestions? Everything seems to be installed properly. Reno came along with my fresh 2.7.2 installation. I want to know, considering that there might be something about modules in general which I need to understand. Best regards Daniel
×
×
  • Create New...