Jump to content

franciccio-ITALIANO

Members
  • Posts

    202
  • Joined

  • Last visited

Everything posted by franciccio-ITALIANO

  1. 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...
  2. 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...
  3. I changed the html code from <p></p> to <div></div> but that doesn't work either.
  4. 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...
  5. 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?
  6. 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...
  7. 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)
  8. 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)
  9. 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...
  10. 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?
  11. 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!
  12. 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...
  13. 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?
  14. 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
  15. Sorry I'm ignorant, can you elaborate on what you mean by "markup regions"?
  16. 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?
  17. 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....
  18. Hi, I am building a site on my pc. On the pc, in html, this script that handles a dynamic background works great. But when I transfer everything online with processwire system, nothing works. I think I need to change the paths, but I have no idea. Shouldn't they work anyway? $(function() { $('body').vegas({ shuffle: false, cover: true, delay: 9000, transitionDuration: 2000, transition: [ 'fade', 'fade2', 'zoomOut', 'swirlLeft', 'swirlRight2', 'flash', 'flash2' ], timer: false, slides: [ { src: '../../site/templates/styles/assets/img/1.jpg' }, { src: '../../site/templates/styles/assets/img/2.jpg' }, { src: '../../site/templates/styles/assets/img/3.jpg' }, { src: '../../site/templates/styles/assets/img/4.jpg' }, { src: '../../site/templates/styles/assets/img/5.jpg' }, { src: '../../site/templates/styles/assets/img/6.jpg' }, ], overlay: '../../site/templates/styles/assets/plugins/vegas/overlays/05.png' }); }); This script is called in the .php file by <script rel="stylesheet" src="<?php echo $config->urls->templates?>styles/assets/plugins/lasvegas-244/lasvegas-244-po.js"></script>
  19. Hi everyone. I've created 12 templates that are the same but each with an extra bit of html code. The piece of code is as follows: <div> <div class="box-pf"> <i class="fa fa-map-pin fa-2x fa-red faa-pulse animated"></i> <a href=""> <span class="uk-text-middle"><i>Sonchus oleraceus</i> 'Grespino degli Orti'</span></b> </a> </div> </div> On the third line we read "fa-red." I created 12 similar templates. The first template has only one box with fa-red, the last template has 12 boxes with icons of 12 different colors. So. is there any way to have only 1 template and add, if I want and when I want, a small or big, same or different piece of html code?
  20. Hello to all. I would like to create an app. So I need to learn at least one programming language. I got informed online, and discovered that javascript with node.js, is the revolution of recent years, because it's faster than php. I wonder: if I develop an app with javascript and with a javascript framework (e.g. Meteor), is there a way to integrate processwire work? I know that processwire supports the transformation of the site into an application, but would it be as simple as Meteor? With the Meteor framework I have my app online in 10 minutes, and without even knowing javascript! (Knowing javascript would serve to personalize it). I should then install the app in a SUB-DOMAIN. If I study php, instead, and if I use a php framework (e.g. Laravel), how long does it take to have my first working app? Is it easy to process Laravel's components? Is writing forms for processwire apps with php a very complex job? Is it better to use Meteor and start with javascript? What would you recommend?
  21. Hello, as administrator on processwire I have a special address like mysite.com/url-login-my-name, to enter my admin panel. I would also like other people to have their own login url to enter a page that contains their personal details from registration, age and city of birth. Can I do this with processwire, in a simple, fast and above all free way?
  22. ok thanks, actually I was looking for absolutely free solutions as I'm unemployed and the site is just a hobby, so I think prestashop or buddypress might be ok. Actually, cmq I would have preferred solutions entirely processwire. If this is not possible, I think I'll move towards an easy framework, just to try and see what I could do on my own. We'll see... thanks for the opinion!
×
×
  • Create New...