Jump to content

hansv

Members
  • Posts

    137
  • Joined

  • Last visited

Everything posted by hansv

  1. My multilanguage site is working very well, except for one minor flaw. If you are on a page in an other language than English, and then go back to the home page by pressing the logo, you always return to the Englisch homepage and not to the homepage of the chosen language. It's the same problem as the example Tripsite on the Processwire multilanguage page, https://processwire.com/api/multi-language-support/multi-language-urls/#example , When you choose on e.g. the spanish language and then press on the logo it returns to the English language and not stays in the chosen Spanish language. Anyone any idea to solve this minor flaw?
  2. @Macrura, thx, in attachement a new issue My website is multilangual at the front-end. The todo-list is for the users in the backend and is only in Dutch. For all users the language in the profile is set to dutch. Problem is when entering the title (Taak) field, its default entered in dutch (NL), and gives a remark that a value is required (in the for PW default language English EN). I could ask my users to first select the English language (EN) and this would solve the case, but this is not 'clean'. Because the title-field is a PageTitleLanguage field it is required, also in the back-end. I read the forum-item about set the title-global argument off, but is also not clean and probably is a problem in the frontend? Is there a way to turn of multilanguage in the back-end? Is there a way, when I fill the dutch-title field, it would automatically populate the englisch title field?
  3. How the booking software works I have full rights to modify anything at the booking software: it uses a MVC-framework full access to mysql tables, are imported in database The reservation data has to be real-time so choose option c) from teppo, ProcessWire's $database API variable and query it on the fly. Is there an optimal way? 1) read in ProFields Table and what with the additional fields? 2) use child pages 3) use ? thx adrian and teppo for the ideas, this gives me a boost
  4. Hey everyone I use php-mysql third party booking software. I'm interessed in 1 table where the reservations are saved. Some fields of this table (name, startdate, enddate, amount, address, ...) I would like integrate in a page or ... and with my own additonal PW fields to follow up the reservations. booking-reservation table: PW table name ==> pw_name (only view) startdate ==> pw_startdate (only view) enddate ==> pw_enddate (only view) amount ==> pw_amount (only view) address ==> pw_address (only view) ... additional PW fields persons who will follow up reservation remarks ... How can I populate my PW_fields (pw_name, ...) from my booking-reservation-table-fields (name, ...)? Can this with ProTable (populate the pw_name, ...fields) and what with te additional PW fields? Can I read the booking-reservation-table in a repeater where the pw_name, ... fields are automatic populated by the booking-reservation-table? ... ?? ... ?? All suggestions are welkom Thx
  5. Hey everyone In PW there are so many solutions for a problem and this freedom creates this kind of questions! I want to make a to do list where logged in users can add a task at the front-end and change, search fields at the front-end. My to do list items: Date (autofill today's date) Task description (short one line text) Priority (high, medium, low) Due date Persons (= who will perform the task, multiple persons can be selected) task progress (1 ....., 2 ......, 3 ......, 4 completed) Remarks My dream is to make a page as http://ohmspeaker.com/speaker-filter/ discussed in the forurm-topic: https://processwire.com/talk/topic/3671-ohmspeakercom/ and when choosing the topic you can change some items (task progress, remarks, ...). In PW showcases there are so many beautiful websites. Sometimes the modules used are mentioned, but it is so dfficult to see how they accomplished the task. How do I manage this in my case? I make regular pages with all mentioned fields? Make use of repeaters? Do I have to wait for the new Pro Repeater Matrix? Do I use Pro Table? I use PW 2.7.3 and Zurb Foundation 5 as front-end framework, do I use Fredi to edit at the front-end or is this not necessary? Has anyone suggestions? Thx
  6. Wow, I make it always to complicated, and in processwire, it's always so compact. This works perfectly, Thx LostKobrakai for your excellent en very quck reaction
  7. I trie to integrate the Foundation 5 accordion panel in my template. It works fine (see attachement), the only problem is that all panels become active in stead of only the active panel. Starting point: accordion Foundation 5 <ul class="small-block-grid-1 medium-block-grid-3"> <li> <ul class="accordion" data-accordion="myAccordionGroup"> <li class="accordion-navigation"> <a href="#panel1c">Accordion 1</a> <div id="panel1c" class="content"> Panel 1. Lorem ipsum dolor </div> </li> <li class="accordion-navigation"> <a href="#panel2c">Accordion 2</a> <div id="panel2c" class="content"> Panel 2. Lorem ipsum dolor </div> </li> <li class="accordion-navigation"> <a href="#panel3c">Accordion 3</a> <div id="panel3c" class="content"> Panel 3. Lorem ipsum dolor </div> </li> </ul> </li> <li> <ul class="accordion" data-accordion="myAccordionGroup"> <li class="accordion-navigation"> <a href="#panel4c">Accordion 4</a> <div id="panel4c" class="content"> Panel 4. Lorem ipsum dolor </div> </li> <li class="accordion-navigation"> <a href="#panel5c">Accordion 5</a> <div id="panel5c" class="content"> Panel 5. Lorem ipsum dolor </div> </li> <li class="accordion-navigation"> <a href="#panel6c">Accordion 6</a> <div id="panel6c" class="content"> Panel 6. Lorem ipsum dolor </div> </li> </ul> </li> </ul> Implementation in template-file Processwire The problem = the panel-names. In each foreach-loop the panel name is the same. In Foundation-term the panel name must change for each accordion panel. The solution cut be place a counter, but I fail implementing it in the code $content .= ' <a href="#panel">'; and $content .= ' <div id="panel" class="content">'; All code-examples are welcome $content .= '<ul class="small-block-grid-1 medium-block-grid-2">'; $content .= ' <ul class="accordion" data-accordion="myAccordionGroup">'; foreach ($page->children as $child): $content .= ' <li class="accordion-navigation"> '; $content .= ' <a href="#panel">'; $content .= $child->title ; $content .= ' </a> '; if($child->hasChildren()) { foreach ($child->children as $childsub): $content .= ' <div id="panel" class="content">'; $content .= ' '; $content .= ' <img src='; $content .= $childsub->icon->url; $content .= ' >'; $content .= ' '; $content .= $childsub->title; $content .= ' '; $content .= $childsub->uitleg; $content .= ' </div> '; endforeach; }; // end if $content .= ' </li> '; endforeach; $content .= ' </ul> '; $content .= '</ul> ';
  8. Eureka, connection problem is solved When a script is used for sending SMTP (One.com): Server: NOT send.one.com -> mailout.one.com Port: 25 SSL: no Authentication: no With the 'spoiler-script' of Horst, no errors and in with my old website jusing AcyMailing (Joomla), it's also working fine now. In Wire Mail SMTP, following error stays. I left SMTP user and SMTP is blank, but I assume that Wire Mail SMTP is always checking authentication?? server does not require authentication ERROR: SMTP settings did not work
  9. My website is online, hosted by One.com, thunderbird is on my own machine The spoiler-script shows the message "The service SMTP is currently down. IP: adress Port: 465". Thx horst for this excellent script. I had an hour chat with One.com Chat Support, where they suggested to change ports, SSL off, ... (what I tried before). Then I discoverd that SSL in my configuration panel was not activated. The chat support said it must be activated, and after a few hours waiting, still the same error-messages. thx cstevensjr, alan and horst, the search goes on
  10. Thx Alan, I already tried these ports, unfortunately, the error stays
  11. I'm have some config problems with Wire Mail SMTP on a online website My provider is One.com and after a online chat with the support, all my settings are correct: smtp hostname: send.one.com smtp port 465 use SSL yes correct smtp user correct smtp password With an email-client (Thunderbird) I get access, not with "Test settings now" of Wire Mail SMTP: error: ERROR: SMTP settings did not work could not connect to the host "send.one.com": connection time out Has anyone any idea?
  12. I feel a little stupid now. The first option is so simple and powerfull and so easy. thx Adrian for this very quick solution
  13. The guest-role has as default permission 'page view'. This means that every page on your site is viewable, even if you are logged in. 1) Is it possible to exclude pages to be viewable? 2) Is it possible to get rid of the guest-role so you can decide which page is viewable and which isn't? thx a lot
  14. Hi When installing ProcessBlog & MarkupBlog I selected the blogstyle 4 (add post as child of 'Home'). I rearranged my pages and now it should be blogstyle 1. Add post is still as child of 'Home'! How can I change the blogstyle from 4 to 1 ? hansv
  15. Hi mr-fan and BernardB Thx for the quick response. Solution of mr-fan had no effect. The solution of BernardB is realy perfect. I still need to learn a lot! best regards hansv
  16. As a newbie, I accidently changed the admin template of the adminpage to the basic page template. Very, very stupid of me, of course! Now it is impossible to select the admin template because it is not visible. Is there a way to roll back my stupidy?
  17. The answer here below: The menu-id can be found in the browser-url, e.g.: processwire/setup/menu-builder/edit/?id=1035 when you are editing your menu. To render the menu <?php //load the module $menu = $modules->get('MarkupMenuBuilder');//Load the module. $menu is an example //render by name, title or id echo $menu->render(1035,array('default_title' => 1)); //render by ID default title = 1 and you get ML-support ?> In de Readme you find echo $menu->render('1234');//render by ID but with brackets you get an error so, it should be echo $menu->render(1234);//render by ID
  18. As a newbie I discovered Menu Builder. Thankx kogondo for this piece of art. I have a multilingual question. I read this forum-topic and the 'Readme' of this module. For multilangual I can not use the menu title or menu name, but where can I find the menu ID to render my menu? Thanks
×
×
  • Create New...