Jump to content

franciccio-ITALIANO

Members
  • Posts

    202
  • Joined

  • Last visited

Everything posted by franciccio-ITALIANO

  1. OK, but then the second version of the schema I set up, where the processwire code strings are integrated into the json structure, IS CORRECT?
  2. Hi, through this site I generated a json-LD code for page definition from SEO point of view. They say that this language is the last frontier and better than RDF language. So I would like to understand how to integrate it with processwire. Integrating html meta tags with php language in processwire is easy and painless. I didn't understand if I can do the same thing with a json language. So the suggested scheme is this: <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Article", "headline": "", "image": "", "author": { "@type": "", "name": "" }, "publisher": { "@type": "Organization", "name": "", "logo": { "@type": "ImageObject", "url": "" } }, "datePublished": "" } </script> Through the wireinclude function the template could link to a .php file with this .json code in it, however with processwire/php strings in it. In this way: <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Article", "headline": "<?=$page->title?>", "image": "", "author": { "@type": "", "name": "<?=$page->name_author?>" }, "publisher": { "@type": "Organization", "name": "<?=$page->name_site?>", "logo": { "@type": "ImageObject", "url": "" } }, "datePublished": "<?=$page->date_article?>" } </script> Can it be done or is it a mess? ?
  3. If I added a field with default text, I would have it on ALL PAGES USING THAT TEMPLATE. Instead I would like to choose: on one page yes yes, on the other page no. I guess then I would be better off making 3 templates all the same but with only that different text... I think
  4. Hi, I wrote a text that sometimes repeats the same in a template, but not always. Sometimes I change it, sometimes it stays the same, but the template is always the same! I would like to understand if the processwire CK editor has a method or field to retrieve this text written in a .php file via the wireinclude function, at one's free choice. I don't need it all the time. With the .php/wireinclude method, on the other hand, it is like pasted into all the pages of the template and I cannot replace it... the alternative is to create 4 identical templates... but with different text...
  5. Hi, I remember that there is a standard processwire template to show automatically in the front-end of the site, the SUBPAGES of a page, with attached h2 descriptions, again automatically. Then I deleted that template or I don't remember under what name to find it again. Now I would need it. The alternative is to manually compile a parent-page with links to all the subpages. A manual listing. I was thinking of doing this at one time that's why I deleted or forgot that template. Now I think it is convenient to use that template.... Does anyone understand what I am talking about?
  6. ok but where... in which processwire part I have to add this json code?
  7. Hi, in style.css I created 3 templates <blockquote> <blockquote2> <blockquote3> but processwire text editor automatically corrects and deletes <blockquote2> <blockquote3> code. How can I choose freely?
  8. Ok, the php code of "_main.php" file is this: <?php namespace ProcessWire; /** * _main.php * Main markup file * * This file contains all the main markup for the site and outputs the regions * defined in the initialization (_init.php) file. These regions include: * * $title: The page title/headline * $content: The markup that appears in the main content/body copy column * $sidebar: The markup that appears in the sidebar column * * Of course, you can add as many regions as you like, or choose not to use * them at all! This _init.php > [template].php > _main.php scheme is just * the methodology we chose to use in this particular site profile, and as you * dig deeper, you'll find many others ways to do the same thing. * * This file is automatically appended to all template files as a result of * $config->appendTemplateFile = '_main.php'; in /site/config.php. * * In any given template file, if you do not want this main markup file * included, go in your admin to Setup > Templates > [some-template] > and * click on the "Files" tab. Check the box to "Disable automatic append of * file _main.php". You would do this if you wanted to echo markup directly * from your template file or if you were using a template file for some other * kind of output like an RSS feed or sitemap.xml, for example. * * See the README.txt file for more information. * */ ?><!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title><?php echo $title; ?></title> <meta name="description" content="<?php echo $page->summary; ?>" /> <link href='//fonts.googleapis.com/css?family=Lusitana:400,700|Quattrocento:400,700' rel='stylesheet' type='text/css' /> <link rel="stylesheet" type="text/css" href="<?php echo $config->urls->templates?>styles/main.css" /> </head> <body class="<?php if($sidebar) echo "has-sidebar "; ?>"> <a href="#main" class="visually-hidden element-focusable bypass-to-main">Skip to content</a> <!-- top navigation --> <ul class='topnav' role='navigation'> <?php // top navigation consists of homepage and its visible children foreach($homepage->and($homepage->children) as $item) { if($item->id == $page->rootParent->id) { echo "<li class='current' aria-current='true'><span class='visually-hidden'>Current page: </span>"; } else { echo "<li>"; } echo "<a href='$item->url'>$item->title</a></li>"; } // output an "Edit" link if this page happens to be editable by the current user if($page->editable()) echo "<li class='edit'><a href='$page->editUrl'>Edit</a></li>"; ?> </ul> <!-- search form--> <form class='search' action='<?php echo $pages->get('template=search')->url; ?>' method='get'> <label for='search' class='visually-hidden'>Search:</label> <input type='text' name='q' placeholder='Search' id='search' value='<?php echo $sanitizer->entities($input->whitelist('q')); ?>' /> <button type='submit' name='submit' class='visually-hidden'>Search</button> </form> <!-- breadcrumbs --> <div class='breadcrumbs' role='navigation' aria-label='You are here:'><?php // breadcrumbs are the current page's parents foreach($page->parents() as $item) { echo "<span><a href='$item->url'>$item->title</a></span> "; } // optionally output the current page as the last item echo "<span>$page->title</span> "; ?></div> <div id='main'> <!-- main content --> <div id='content'> <h1><?php echo $title; ?></h1> <?php echo $content; ?> </div> <!-- sidebar content --> <?php if($sidebar): ?> <aside id='sidebar'> <?php echo $sidebar; ?> </aside> <?php endif; ?> </div> <!-- footer --> <footer id='footer'> <p> Powered by <a href='http://processwire.com'>ProcessWire CMS</a> &nbsp; / &nbsp; <?php if($user->isLoggedin()) { // if user is logged in, show a logout link echo "<a href='{$config->urls->admin}login/logout/'>Logout ($user->name)</a>"; } else { // if user not logged in, show a login link echo "<a href='{$config->urls->admin}'>Admin Login</a>"; } ?> </p> </footer> </body> </html> Then, the "main.php" code is this: <?php namespace ProcessWire; /** * _main.php * Main markup file * * This file contains all the main markup for the site and outputs the regions * defined in the initialization (_init.php) file. These regions include: * * $title: The page title/headline * $content: The markup that appears in the main content/body copy column * $sidebar: The markup that appears in the sidebar column * * Of course, you can add as many regions as you like, or choose not to use * them at all! This _init.php > [template].php > _main.php scheme is just * the methodology we chose to use in this particular site profile, and as you * dig deeper, you'll find many others ways to do the same thing. * * This file is automatically appended to all template files as a result of * $config->appendTemplateFile = '_main.php'; in /site/config.php. * * In any given template file, if you do not want this main markup file * included, go in your admin to Setup > Templates > [some-template] > and * click on the "Files" tab. Check the box to "Disable automatic append of * file _main.php". You would do this if you wanted to echo markup directly * from your template file or if you were using a template file for some other * kind of output like an RSS feed or sitemap.xml, for example. * * See the README.txt file for more information. * */ ?><!DOCTYPE html> <html lang="it"> <head> <title><?php echo $page->title;?></title> <link rel="icon" href="<?php echo $config->urls->templates?>favicon/po-extra.png" type="image/png"> <?php wireIncludeFile('styles/metatag.php'); ?> <!-- STILE MAIN --> <!-- <php include('styles/po-menu-primo.php'); ?> --> <?php wireIncludeFile('styles/head-main.php'); ?> <!-- END --> </head> <body class="<?php if($sidebar) echo "has-sidebar "; ?>"> <!-- INTRO PERMA --> <div style="border-radius: 15px; border: 2px solid #111; padding: 5px 25px 5px; background-image: linear-gradient(to right, rgb(101, 115, 255), rgb(113, 133, 225), rgb(125, 152, 195), rgb(137, 170, 166), rgb(149, 189, 136), rgb(161, 207, 106), rgb(134, 173, 88), rgb(107, 138, 71), rgb(81, 104, 53), rgb(54, 69, 35), rgb(27, 35, 18), rgb(0, 0, 0));"> <p style="text-align: justify; font-family: 'Source Sans Pro', sans-serif; font-size: 14px; font-weight: 600; line-height:1.1em; color: white;"> La permacultura esiste perché esiste la natura. La natura presuppone l'esistenza di due parti con interessi contrapposti: il cavolo e la capra, l'ecosistema naturale e la cittá. Alcune ecosofie vorrebbero cancellare o ignorare questa opposizione fondamentale. <br>Per contribuire a una interpretazione più approfondita della permacultura, è stato aperto questo sito, ispirato all'ignoto pensiero di Paperinik: <span style="color: yellow;"><i>&laquo;è interessante notare come una vera e felice autosufficienza di molti ecovillaggi in rete, vista dalla cittá somigli più a una disgrazia per la città e per l'economia tutta&raquo;.</i></span> Una verità scioccante ma dalle conseguenze numerose e visibili a tutti... </p> <div style="padding-bottom: 10px;"> <a href="https://pot.permaculturaorganica.info/registrazione"> <div class="btn-simple2">Iscrizione al P.O.T. &#x27A4 </div> </a> </div> </div> <div style="display: block; text-align: center; padding-top: 20px;"> <a href="https://buonacausa.org/cause/regina-sole-terra"> <span style="font-family: Quattrocento;"> PO Project <i>"Regina del Sole"</i> </span> </a> </div> <div style="display: block; text-align: center; padding-top: 00px;"> <a href="https://permaculturaorganica.info/crowdfunding"> <span style="font-family: Oswald; letter-spacing: 1px;"> <b>PROGETTI DEGLI ISCRITTI</b> </span> </a> </div> <div style="padding-top: 15px; display: block; text-align: center;"> <?php if($user->isLoggedin()) { // if user is logged in, show a logout link echo "<a href='{$config->urls->admin}login/logout/'>Esci($user->name)</a>"; } else { // if user not logged in, show a login link echo "<a href='{$config->urls->admin}'>------</a>"; } ?> </div> </div> </div> <!--END--> <a href="#main" class="visually-hidden element-focusable bypass-to-main">Skip to content</a> <!-- top navigation --> <ul style="margin-top: 30px;" class='topnav' role='navigation'> <?php // output an "Edit" link if this page happens to be editable by the current user if($page->editable()) echo "<li class='edit'><a href='$page->editUrl'>Scrivi</a></li>"; ?> </ul> <!-- breadcrumbs --> <div style="font-family: Abel;" class='breadcrumbs' role='navigation' aria-label='You are here:'> <div style="font-family: Lobster; font-size: 2em; color: #98af00;">Il Filo Verde...</div> <div class="ilfiloverde"> <?php // breadcrumbs are the current page's parents foreach($page->parents() as $item) { echo "<span><a href='$item->url'>$item->title</a></span> "; } // optionally output the current page as the last item echo "<span>$page->title</span> "; ?> </div> </div> <div id='main'> <!-- main content --> <div style="padding-bottom: 30px;" id='content'> <h1 style="text-align: center; line-height: 1em; color: green;"><?php echo $title;?></h1> <p style="text-align: center; font-family: Indie Flower; font-size: 1.3em; line-height:1.3em; color: grey;"> <?=$page->tag155?> </p> <div class="bat animated rollIn wow"> <a style="text-decoration: none;" href="https://permaculturaorganica.info/bat"> <img src="<?php echo $config->urls->templates?>styles/assets/img/bat.png" alt="basic atttention token"> </a> </div> <p>di <a href="https://permaculturaorganica.info/about-me"><strong><span style="font-family: Caveat;">A. Francesco Papa</span></strong></a></p> </div> <?php echo $content; ?> <!-- sidebar content --> <?php if($sidebar): ?> <aside style="font-family: Abel;" id='sidebar'> <?php echo $sidebar; ?> </aside> <?php endif; ?> </div> <!-- footer --> <footer id='footer'> <div id="a-nogrey" style="border-radius: 15px; border: 2px solid #111; padding: 5px 25px 5px; background-image: linear-gradient(to right, rgb(101, 115, 255), rgb(113, 133, 225), rgb(125, 152, 195), rgb(137, 170, 166), rgb(149, 189, 136), rgb(161, 207, 106), rgb(134, 173, 88), rgb(107, 138, 71), rgb(81, 104, 53), rgb(54, 69, 35), rgb(27, 35, 18), rgb(0, 0, 0));"> <p style="text-align: justify; font-family: 'Source Sans Pro', sans-serif; font-size: 14px; line-height:1.1em; padding-bottom: 10px;"> <span style="color: yellow;"> <b> Hai qualcosa da dire o un sapere speciale da diffondere, ma non hai la voglia o la capacità di gestire un sito web? </b> </span> <br> <span style="color: lightpink;"> <b> Pubblicando online darai esistenza visibile alle idee che potrebbero morire con te! </b> </span> <br> <span style="color: white;"> <b> Promuovi il tuo progetto di permacultura e/o i riferimenti del tuo commercio organico, anche attraverso sito. Auguri!</b> </b> </span> <br><br> <span style="color: white;"> <i>Servizio offerto gratuitamente ma ad</i> <a href="https://permaculturaorganica.info/rds"><b>ALCUNE CONDIZIONI</b>.</a> <br> <i>Appunta il</i> <b>CODICE RdS</b> <i>che, fra i 4 proposti, meglio rappresenta la tua ETICA COMMERCIALE, poi torna qui e compila il form di pubblicazione.</i> </span> </p> <div style="padding-bottom: 10px;"> <a href="https://permaculturaorganica.info/moduli-contatto/pubblica-articolo"> <div class="btn-simple2">PUBBLICA UN ARTICOLO &#x27A4 </div> </a> <a href="https://permaculturaorganica.info/home"> <div style="text-align: center;">Torna al PO PANNEL</div> </a> </div> </div> <div style="padding: 10%; color: green; font-family: Indie Flower; font-size: 2em; text-align: center;"> <b>CIAO, TI VA QUESTA SETTIMANA DI FARE UNA SPESA SOLIDALE? <br><br> <a href='http://permaculturaorganica.info/wosp/spesa/francesco-papa'>CLICCA QUI</a> </div> <div style="padding-bottom: 25px;"> <span style="font-family: Lobster; font-size: 2em; color: green;">Corsi Online</span> <span style="font-family: Abel; font-size: 1.3em; font-weight: 700;"> <br>&starf; Permacultura Liv.1 - <i>Durata: 2 ore 15 min </i>&xrArr; <a href='https://permaculturaorganica.info/po1-leggere/corsi-online'><span style="font-family: Rajdhani; letter-spacing: 3px;">SEGUI</span></a> <br>&star; Permacultura Liv.2 - <i>Work in Progress </i> <br>&star; Permacultura Liv.3 - <i>Work in Progress </i> <br>&star; Permacultura Liv.4 - <i>Work in Progress </i> <br>&star; Permacultura Liv.5 - <i>Work in Progress </i> <br>&star; Permacultura Liv.6 - <i>Work in Progress </i> <br>&star; Permacultura Liv.7 - <i>Work in Progress </i> </span> </div> <div style="padding-bottom: 25px;"> <span style="font-family: Lobster; font-size: 2em; color: purple;">Libri</span> <span style="font-family: Times New Roman; font-size: 1.3em; font-weight: 700;"> <br>&starf; <i>Permacultura Sociale & Gruppi di Mutuo-Aiuto</i> &xrArr; <a href='https://www.amazon.it/dp/1072149540'><span style="font-family: Rajdhani; letter-spacing: 3px;">VEDI</span></a> <br>&starf; <i>Totalitaristi Mascherati</i> &xrArr; <a href='https://www.amazon.it/dp/B09R3HR8BG'><span style="font-family: Rajdhani; letter-spacing: 3px;">VEDI</span></a> <br>&star; <i>Permacultura per Pochi - Work in Progress</i> </span> </div> <div style="padding-bottom: 25px;"> <span style="font-family: Lobster; font-size: 2em; color: red;">Canali Telegram</span> <span style="font-family: Oswald; font-size: 1.3em;"> <br> &#9658 GESU' RE D'ITALIA &xrArr; <a href='http://t.me/gesureditalia'><span style="font-family: Rajdhani; letter-spacing: 3px;">ISCRIVITI</span></a> <br> &#9658 PERMACULTURA &xrArr; <a href='http://t.me/permaculturaORGANICA'><span style="font-family: Rajdhani; letter-spacing: 3px;">ISCRIVITI</span></a> <br> &#9658 SBN - SOLO BUONE NOTIZIE &xrArr; <a href='http://t.me/solobuonenotizie'><span style="font-family: Rajdhani; letter-spacing: 3px;">ISCRIVITI</span></a> <br> &#9658 METEORE PARLANTI (miscellanea di argomenti) &xrArr; <a href='http://t.me/meteoreparlanti'><span style="font-family: Rajdhani; letter-spacing: 3px;">ISCRIVITI</span></a> <br><br> <a href="https://permaculturaorganica.info/po1-leggere/rami/politica-organica/astensionista-capriccioso/"> <div style="font-family: Caladea; font-size: 1em; text-align: center; padding-left: 15%; padding-right: 15%; padding-bottom: 20px;"> &malt; <br> <i> Il voto è un gioco. Non sei purtroppo il Re nè la Regina, ma puoi muovere la tua pedina! </i> <br> &malt; </div> </a> </span> </div> <div style="padding-bottom: 50px; text-align: center;"> <span style="color: #b30000; font-family: Oswald; font-size: 2em;">NO CENSURE NO TRACCIAMENTI<br>NO PUBBLICITA' SU TELEGRAM<br><a href='https://permaculturaorganica.info/social/canali-telegram-consigliati'>CLICCA QUI</a></span> <br><br> <span style="font-family: Times; font-size: 1.5em;"><i>Il Dubbio non è Il Male, la <span style="text-decoration: underline;">Libertà di Argomentare</span> è Sacra e Tu sei un uomo come Me!</i></span> <br><br> <img src="<?php echo $config->urls->templates?>styles/assets/img/maestrini/ragazza-confusa2.png" alt="ovvio"> </div> <!-- ADERISCI ECONOMICAMENTE ALLA PO CAUSA --> <div class="mfire3"> <a target="_blank" href="https://www.paypal.com/donate/?hosted_button_id=HZ9J3H5W3YZ2S"> <div class="text-aepc">VOGLIO FINANZIARE<br>LE PO MISSIONI &#x27A4 </div> </a> </div> <!--END --> </footer> </body> </html> "main.php" without "_main.php" works well
  9. Hello, several years ago I had moved the _main file from its original location. Now I have put it back where it belongs, and as a result processwire asks me with each template created whether to include the _init and _main files. That's fine. This is the only thing I have done again in the last few weeks with the _main file. Now, however, the "main" file seems to have broken. It seems to have broken the BODY field, the one that contains the article text. ALL MY ARTICLES ARE GONE. THEY ARE NOT VISIBLE ONLINE. THE TEMPLATE APPEARS, BUT NOT THE ACTUAL TEXT. I thought they had been deleted. Then I went to look in the internal panel of each article processwire, with the "edit" button. There the article is still written there, inside the "body" field, but it does NOT COMPARE ONLINE, IN THE FRONT END. IT STILL EXISTS IN THE BACK END. Could someone suggest how to solve it? I created a new text field, and while copying in the old articles, the new text fields do not work either. But they work in other templates. The text field no longer works in the MAIN template. Can anyone help me?
  10. Hi, to avoid correcting the same html code in all templates, I wrote it in a separate .php file and then linked from the html page through the following code: <?php wireIncludeFile('styles/menu-A.php'); ?> But now I would like in the template to be able to choose whether to put the type A menu on the page, or the type B menu. I used the following code, but it does not work: <?php wireIncludeFile('<?=$page->type_menu?>'); ?> The code <?=$page->type_menu?> is supposed to call a processwire field, but it doesn't work and processwire goes crazy, sending me a serious error message. Where do I go wrong?
  11. Hello everyone, I have discovered the problem. x DOTNETIC: The address is correct. Checked and rechecked. x GIDEON: the field type is plain text. By putting a field-url, the linking doesn't work. Here is the solution, after banging my head for a while. This code: <script src="<?php echo $config->urls->templates?><?=$page->texturl_bgvegas?>"></script> This code is correct and working, but it works ONLY if I put it DIRECTLY in the php-html page of the template. Instead, I had written it and LINKED it in a file retrieved from the template page through the following code: <?php wireIncludeFile('styles/background-and-other.php'); ?> or <?php include('styles/background-and-other.php'); ?> So what wasn't working was not the php-processwire code, but the link codes (php include or php wireIncludeFile) to external files, which from the template html page don't work for all file types. The <script> js processwire include/wireIncludeFile doesn't see them, for the other <title> or <link> tags, however, there doesn't seem to be a problem. I hope that in the future processwire will improve or alert us to any dysfunctionality. I was going crazy ???
  12. Hi, I decided to put a dynamic background to some pages of my site. The background is controlled by a js script. I also decided to create a template and a field to choose from time to time which background to put. Unfortunately, the processwire condice to dynamically link scripts seems not to work as well as for images and simple links. Where am I going wrong? DON'T WORK: <script src="<?=$page->texturl_background?>"></script> DON'T WORK: <script src="<?php echo $config->urls->templates?><?=$page->texturl_background?>"></script> Instead, it works well: <link rel="icon" href="<?php echo $config->urls->templates?><?=$page->texturl_favicon?>" type="image/png">
  13. No, when I open I just get this message... which I couldn't solve Note: your current server locale setting isn’t working as expected with the UTF-8 charset and may cause minor issues. Your current locale setting is “C”. Please add this to your /site/config.php file (adjust “en_US.UTF-8” as needed): setlocale(LC_ALL,'en_US.UTF-8');
  14. Hi, for a fixed image or script I was using this code: <script src="<?php echo $config->urls->templates?>styles/assets/plugins/jquery-1.10.2.js"></script> Then I decided to put a dynamic link in the template, i.e. variable from page to page, and I used this code: <script src="<?=$page->url_bg?>"></script> or: <img style="padding-left: 15px;" src="<?=$page->box_url_img_SX?>" alt="<?=$page->box_img_alt1?>"> But they don't work. Where do I go wrong?
  15. I solved it, the problem was what you said, thank you!
  16. Hi, I used the repeater module to repeat blocks of text with popup windows. Each block has 4 fields (title color, title, second title, subtitle, complex text with ckeditor). Thanks to the repeater module, I can also create 10 blocks all different in title, title color, subtitle, but NOT complex text field with ckeditor. So I have 10 blocks all different in color and subtitle, but all the same with only 1 complex text ckeditor. Where am I going wrong? Here is the code I used: <div class="<?=$page->box_ampiezza?> uk-grid-collapse uk-text-center" uk-grid> <?php foreach($page->box_ripetitore as $boxrip):?> <!-- INIZIO BLOCCO RIPETUTO --> <div class="<?php echo $boxrip->box_ripetitore_colore?>"> <div class="uk-tile" id="op31h2"> <a href="#block01" uk-toggle> <h2 style="font-family: Anton; font-size: 3em; color: white;"><?php echo $boxrip->box_ripetitore_tit?></h2> </a> <div style="font-family: Oswald; color: gold; font-size: 1.5rem;"><?php echo $boxrip->box_ripetitore_sottotitolo?></div> <!-- SEZIONI FOGLIA --> <div id="block01" class="uk-modal-container" uk-modal> <div class="uk-modal-dialog"> <button class="uk-modal-close-default giralacroce" type="button" uk-close></button> <!-- IMMAGINE SINGOLA + BREVE COMMENTO APERTO --> <div class="uk-modal-body"> <h2 class="uk-modal-title"><?php echo $boxrip->box_ripetitore_tit_h2?></h2> <p><?php echo $boxrip->box_ripetitore_articolo?></p> </div> <!-- END SEZIONI FOGLIA --> </div> </div> <!-- END FOGLIA --> </div> </div> <?php endforeach;?> <!-- FINO BLOCCO RIPETUTO --> </div> <!-- END -->
  17. Hi, I found out that unfortunately openstreetmap maps are not viewable on mobile, also, the iframe tag is deprecated.I therefore had to resort to a processwire module. Not wanting to use google maps, I turned to https://processwire.com/modules/fieldtype-leaflet-map-marker/, but from the documentation it is not clear.Is there an EXAMPLE OF A WORKING USE OF MAP WITH MORE MARKERS ON PROCESSWIRE TEMPLATE? Maybe I'll copy that Thank you very much
  18. 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?
  19. 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">
  20. 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?
  21. 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.
  22. 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)
  23. 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?
×
×
  • Create New...