Jump to content

franciccio-ITALIANO

Members
  • Posts

    183
  • Joined

  • Last visited

Everything posted by franciccio-ITALIANO

  1. It's possible? I use this code with the repeater module: <?php foreach($page->ber_MDL_ripetitore as $ber):?> <li> <a class="uk-accordion-title" href="#"> <div class="fa fa-comments"></div><h2 class="perh2faq"><?=$ber->ber_MDL_domanda?></h2> </a> <div class="uk-accordion-content"> <p style="color: white;"> <?=$ber->ber_MDL_risposta?> </p> </div> </li> <?php endforeach;?> The html code <a></a> is used to open the text area after a click (I use ui-kit css/js). I changed the html code from <p></p> to <div></div> but that doesn't work either.Then I removed CKE and replaced it with simple "textarea", but <p></p> always appears on the sides of the text. It's amazing. I don't know what I'm doing wrong... Any suggestions?
  2. I replaced the code but it doesn't work. Maybe I have to write just the whole url as the address? <img src="<?=$page->note_MDL_my_image_field->url?>" alt="then I change it"> or <img src="<?=$page->note_MDL_my_image_field->urlimageaddress?>" alt="then I change it">
  3. Hi, in my template there is a small image that I would like to change from time to time. I created an image field, but it doesn't work. I have used the following code: <img src="<?=$page->my_image_field?>" alt=""> How come it is not working?
  4. Okay, sorry, I've solved it. There is no unique panel for CKEDITOR, but 1 per field, so I went to INPUT and under the space to correct the keys.
  5. Hi, since the cke editor tool table didn't have any keys that were important to me, I added them years ago with the practice pointed out to me here. Since then all of them have worked. It still works today. But I created a new textarea field with ckeditor, and this field does not show the tool table as I had set it. First problem. How to solve it? So I went into the panel looking for a button to configure CKEDITOR again, but while searching like crazy, it can't be found. It doesn't even appear in the list of added modules. Suggestions? Translated with www.DeepL.com/Translator (free version)
  6. Hi, I should install processwire on a subdomain. it is already installed on the main domain. Are there any techniques to handle the dual installation more organically?
  7. In processwire 3.0 the code you suggested no longer works. I changed the html code from <p></p> to <div></div> but that doesn't work either. Then I removed CKE and replaced it with simple "textarea", but <p></p> always appears on the sides of the text. It's amazing. I don't know what I'm doing wrong...
  8. Then I removed CKE and replaced it with simple "textarea", but <p></p> always appears on the sides of the text. It's amazing. I don't know what I'm doing wrong...
  9. I changed the html code from <p></p> to <div></div> but that doesn't work either.
  10. thanks now it works! But there is a problem with the text-answer. The code is as follows: <p style="color: white;"> <?=$faq->faq_answer?> </p> In front-end it appears to me: <p>my faq-answer</p> In the "Edit Field" -> "Details" section, I tried changing the "HTML Entity Encoder" options, but it doesn't work. The html code (<p></p>) always appears...
  11. Ok thanks but 2 problems have arisen. The html code of each faq is as follows: <li> <a class="uk-accordion-title" href="#"><div class="fa fa-comments"></div><h2 class="perh2faq"><?=$faq->faq_question?></h2></a> <div class="uk-accordion-content"> <p style="color: white;"> <?=$faq->faq_answer?> </p> </div> </li> So, what you need to repeat is not only the question and the answer, but also the html graphic frame that contains the question and the answer. I added an html texarea to the repeater field, but the block repeat doesn't work. I add repeating blocks (html codes + question + answer), but processwire always shows me one, specifically, the last one added. And so the faq page always remains with only one question and one answer, even if I add 5 blocks. To display the repeater blocks I used only this code: <?php foreach($page->faq_ripetitor as $faq):?> <?php endforeach;?> What did I do wrong?
  12. Hi, I would like to create a template for an UNPREPARETERMINED number of faqs. Each faq contains 2 variable fields, the question and the answer. I don't know how to proceed. The simplest idea is to create 10 Templates, first template with 1 faq, second template with 2 faq, third template with 3 faq etc. But I think that with processwire there should be a method to create a single template...
  13. Ok thanks, but isn't there a program that renders the changes made css/html on screen, without copy-pasting the address to the browser every time? I'm going crazy because sometimes to check the changes I have to navigate in anonymous mode or change browser mozilla chorme brave... I try them all and in the end in fact the change is returned on the screen. But... I don't know when I'm wrong or I'm wrong browser. You can't work like this! Translated with www.DeepL.com/Translator (free version)
  14. Hi, I installed laragon for local html-css code development. But every time I need to see the changes made, I have to use the browser. This is annoying, both because I have to type the address of the local pages in the search bar every time, and because sometimes the browser doesn't show the changes just made, having stored the old ones. It updates in anonymous mode and sometimes not even with that. So, is there an alternative program to the local browser to instantly see the css-html code changes? Translated with www.DeepL.com/Translator (free version)
  15. well i wanted to avoid ANY special module, to find a solution with only generic php language, anyway i will use the repeater, still i didn't learn how to use page categories and child pages...
  16. Hi fingers, since you said there are MANY ways to do what I was asking, could you suggest another way? The one you suggested is fine, but if possible I would like to avoid the repeater module. Maybe there is a solution in pure php language or with pure processwire api?
  17. Hi, a personal tutor I think is everyone's dream, but I don't have money to pay for one. So I think it's better for me to ask something on the forum sometime when it happens. Without pretension. Someday maybe I'll take a php course, but I can't at the moment. Hi!
  18. So, the code less variable is this: <?php wireIncludeFile ('path/to/partial.php'); Now, if I write this in html file, by Notepad++, reading the code becomes complicated, so better to use php code include...
  19. I got it thank you very much. I think it will use wireincludefile then. As for the variable, however, excuse the great ignorance (I have not yet taken a php course) but... what is it exactly? A js/css/php class created and used elsewhere?
  20. Well in fact this page is too much for me https://processwire.com/docs/front-end/output/markup-regions/ if you have a summary maybe I understand better... but I don't want to stress you, probably I will use the wireincludefile function
  21. Sorry I'm ignorant, can you elaborate on what you mean by "markup regions"?
  22. Hi, is there a specific reason why you prefer the wireIncludeFile-function of ProcessWire instead of the php include-function? Then... the foo code part... what is it for?
  23. Hi, I have created over twenty different templates for the same site. In all of them, the same long piece of html code appears. Could someone suggest me the php code I need to write in the template files to link that piece of html code, which is always the same everywhere? What strategies could I use to link it? The problem is that this long piece of code that is identical everywhere, MAY change IN TIME. So, when I fix it, I would have to change it in all twenty template files....
×
×
  • Create New...