adrianmak

Members
  • Content count

    500
  • Joined

  • Last visited

Community Reputation

58 Excellent

About adrianmak

  • Rank
    Hero Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

3,660 profile views
  1. 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
  2. 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.
  3. 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 ?
  4. 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 ?
  5. 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.
  6. Module

    it is good to have shared count of each of social media
  7. 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"
  8. 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
  9. let say [[cyan]This is cyan text[[cyan] then it will produce <h3 class='cyan'>This is cyan text</h3>
  10. 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
  11. 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.
  12. 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
  13. Tag will be removed when re-edit body field. A video demo worth thousand words.