Jump to content

adrianmak

Members
  • Posts

    533
  • Joined

  • Last visited

Everything posted by adrianmak

  1. I want to only pickup date by year and month only. Day is not necessary in my case. Is it possible to config the datetime pickup widget only show by year and month? like
  2. how to pick up for multiple images?
  3. Finishing configured the parent child template relationship. The page move restriction is working properly. However there is a ui issue (?) A popup shown that I don't ve permission to move to another template After clicking "OK" the page is moved. But actually it is not when I did a browser refresh. This may confuse to user.
  4. if it is a matter of parent and child template relationship, it is fine for me. I will test it later soon
  5. child pages could not able to drag and move to higher level than it parent page. +----pageA +---------Page A.1 +---------Page A.2 +----pageB +---------Page B.1 +---------Page B.2 +----pageC +---------Page C.1 +---------Page C/2 +----pageD +----pageE Childs of pageA, pageB and pageC could drag and move within its parent
  6. For custom form, it is easy to add a recpatcha. But how about on default admin login form ?
  7. When I installed this module on my pw site, I got following two erros Module reported error during install (ProcessJumplinks): SQLSTATE[HY000]: General error: 1293 Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause Failed to init module: ProcessJumplinks - SQLSTATE[42S02]: Base table or view not found: 1146 Table 'lara_db.process_jumplinks' doesn't exist pw 2.8.35 php 5.5.9 mysql 5.5.55
  8. My old html website just has pages not more than twenty I like to add redirect link in htaccess file instead of using a pw module I found that there are many lines of config related to mod_rewrite rules Just for example Redirect 301 /about-us.html /about/about-us It could redirect, but it will attach original page at the end something like that http://my.domaion.com/about/about-us/?it=about-us.html
  9. I'm using processwire and CI too to build site for client. In CI way, it has permitted_char config for allowed char in url too, but CI could accept a utf-8 code range in the config something like $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-\x{4e00}-\x{9fa5}'; I found this information from a chinese post to solve utf-8 url in CI http://codeigniter.org.cn/forums/thread-20990-1-1.html I suggest @ryan should reference the CI way for processwire to handle UTF-8 url
  10. There is a page name thank-you page, which is used for all submission form, a success submission will redirect to this thank-you page. I would like to stop people to access this page directly and checking if it is not redirect from other page with form submission, it will redirect to home page automatically.
  11. any how to make refreshing data automatically ? For instance, when saving page, call a facebook api to refresh current page? Is there such a facebook api ?
  12. facebook share will read open graph data to display content on shared post on facebook When I updated existing content, and re-share the post, I found that facebook still capture the old content. What is the problem ?
  13. I want an additional tab in page edit, which has three fields (title, summary, image) which these content will be display on social media sharing. If user fill up these fields, they will shown on the shared post on social media, otherwise the original page title, body image and body text will be displayed.
  14. it is good to have shared count of each of social media
  15. For some page only has title field, the page is just used for a page container. The content will be generated in code. For example a site-map page, it will generate a site map of all pages in code. I would like to , when a ordinary user edit the site-map page in admin backend, i like to show a block of text in the page edit, the text will say something like "this page is blank intentionally. The content will be generated by system"
  16. There is a page field say, attach_file value of either yes or no another file field will depend on that field when 'yes' is selected. I tried attach_file.title='yes' or attach_file->title='yes' , both are not working
  17. let say [[cyan]This is cyan text[[cyan] then it will produce <h3 class='cyan'>This is cyan text</h3>
  18. Seems using hanna code is a better option. more clean and added html code not easy to mess up by users And more important is I need not to care about of ckeditor settings
  19. Not quite working... config.js is existed under the /site/modules/InputfieldCKEditor/ folder original config.js /** * CKEditor custom config file for ProcessWire * * Use this file to specify additional config options to all CKEditor instances, * except those that have field-specific config files, i.e. config-body.js for * config specific to a field named "body". * */ /** * @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.uiColor = '#AADC6E'; }; I tried adding in CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.uiColor = '#AADC6E'; config.protectedSource.push(/<i[a-z0-9\=\'\"_\- ]*><\/i>/g); }; or outside the function CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For example: // config.uiColor = '#AADC6E'; }; CKEDITOR.config.protectedSource.push(/<i[a-z0-9\=\'\"_\- ]*><\/i>/g); Both location are not working at all.
  20. another small issue From original font awesome website, it use <i> </i> tag for the font icon I found that if I use <i></i> , when I save the content, ckeditor will convert it to <em></em> tag and removed all class
  21. Tag will be removed when re-edit body field. A video demo worth thousand words.
  22. I'm going to put CSRF form protection on a form. on what position on validating CSRF during form processing after submission ? Here are pesudo code if form submitted validating input fields if any one of fields is invlaid, stop processing and display field error if input fields passed validation validate CSRF if passed CSRF validation submit form data or save to database if not passed CSRF vlaidation generate form error anything wrong with this order ?
×
×
  • Create New...