Jump to content

adrianmak

Members
  • Posts

    533
  • Joined

  • Last visited

Everything posted by adrianmak

  1. After everything is configured and work properly for multiple templates/parents for users, Could I remove $config->advanced = true; from the /site/config.php and is multiple templates/parents for users still working with this config line ? As it is not necessary to show the System tab, after configuration has been done.
  2. I allow user to add data-toggle attribute for anchor tag for toggle a block of content I added following rule in Extra Allowed Content a[data-*] When user a this attribute in an anchor tag, then saving pages, pw will strip off that attribute <a href="#content1" data-toggle="collapse">Toggle content block</a> <div id="content1" class="collapse"> hidden content block </div>
  3. From documentation https://processwire.com/blog/posts/processwire-core-updates-2.5.14/#multiple-templates-or-parents-for-users Step6 $config->userTemplateIDs = array(3, 111);$config->usersPageIDs = array(29, 222); what is the value of 3 and 29 ?
  4. There is dashboard for back-end admin. How about a dashboard for front-end user ? look like http://www.mydomain.com/dashboard/[0-9] When a user registered from front-end, instead of a new user account created, the user could access his/her own dashboard at http://www.mydomain.com/dashboard/22 where 22 is the user account page id Then I could add whatever in the dashboard like order history for a e-commerce site
  5. The featured div margin should be margin: 0 auto -200px;
  6. pushing a div (featured) with negative top, the sibling div (footer) will not push up accordingly. As a result, a large empty space appear between two divs. sample code is here http://codepen.io/adrianmak/pen/qZRqwy any solution of the footer div to stick with the featured div, no matter it's top positioning value <div class="wrapper"> <div class="header"> </div> <div class="featured"> </div> <div class="footer"> </div> </div> css .header { background: green; height:620px; } .footer { background: blue; height:200px; } .featured { background: yellow; width:500px; height:420px; margin:0 auto; position: relative; top: -200px; } </style>
  7. What is different from PW's default pages access control ?
  8. Instead of proividing ordinary PW's user sign-up(regisration) form, is there any existing module providing social network i.e google, facebook and twitter, sign-up for a pw's website
  9. I'm considering PadLoper on my now working pw's project. paypal is almost the basic payment method for every e-commerce website. But I would like to provide COD ( cash on delivery) payment method for domestic/local customer. On checking out, the checkout form might provide two payment option, one for paypal, another one for COD. A mockup screen There is nothing to do on server end with "Cash" payment option, properly just an indication for shopkeeper to know that order is paid by cash on delivery
  10. I have added two more other languages , that's there are total of three languages, default, jpn, kor (default is the English) And I changed the existing title field type to PageTitleLanguage Now, I want a page title to display all three languages from template file The $page->title only output the default language i.e English in my case How to display other two languages in template file ? I follow the link below, to how to get a multi-language field value http://processwire.com/api/multi-language-support/multi-language-fields/ This is my segment of code $categories = $pages->get(1060)->children(); foreach($categories as $category) { $page->of(false); $eng = $languages->get('eng'); $content .= $category->title->getLanguageValue($eng); } With this code executed, I got an error Error: Call to a member function getLanguageValue() on a non-object (line 14 of /var/www/html/site/templates/case-studies-index.php) Line 14 is this line of code $content .= $category->title->getLanguageValue($eng);
  11. It could be good to upload images to the media library in ckeditor. Current, it may confused users, uploaded a image in ckeditor of a editing page, but it could not show up on other pages.
  12. For example, the bootstrap clearfix css class doesn't work in backend ckeditor
  13. My way is using two techniques. Honeypot and form filling time duration
  14. Is there any module to provide an input fieldset (like the html fieldset tag)which grouping form elements
  15. The critical cons of this method is ordinary users have to access the template css file.
  16. instead of adding custom in-line css styling in body field. This module provide a feature to add custom css style by page
  17. My pw's website is configured to us delay output method like $config->prependTemplateFile = '_init.php'; $config->appendTemplateFile = '_main.php'; Should I put $timerkey = Debug::timer(); at the very beginning of _main.php and put echo xxxxxxxx . Debug::timer($timerkey) at the bottom and before </body> tag of _main.php ?
  18. I'm using vagrant+virtualbox on Windows 10 for local web development I found that windows 10 microsoft Edge browser, could not able to access local vagrant vm box. I put a ip host mapping in windows hosts file I could ping the hostname and return the vm box ip address I could access the website under vm box with firefox, chrome, ms internet explore, but ms edge browser
  19. My client want that information on new pw's website. Something like "Processed in 0.08814 second(s), 3 queries, 1 file." on my page footer
  20. I have added *[class] in "Extra Allowed Content" of a textarea body field While editing a body field content, add a class of a h3 tag in source editing mode, however the class will be removed
  21. I have a form with a checkboxes input field, look something like <input name="choices[1276][]" value="1280" type="checkbox"> <input name="choices[1276][]" value="1285" type="checkbox"> <input name="choices[1276][]" value="1292" type="checkbox"> If I use ordinary PHP fucntion $_POST['choices'], I could get this value. If I use pw's way $input->post['choices'], i got nothing I used sizeof to check sizeof($_POST['choices']) -> returned 1 is any of a checkbox is checked sizeof($input->post['choices']) -> returned 0 if a checkbox is checked.
  22. I want to use tracy debugger but it support chrome or firebug+firelogger only
×
×
  • Create New...