Jump to content

Gideon So

Members
  • Posts

    469
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Gideon So

  1. Hi,

    I am building a module which lists some pages in a table with edit add new and delete button. I would like to have a modal window when the edit or add new button is clicked. Do I need to implement a third party js plugins or there is some built-in function in ProcessWire??

    Gideon

  2. 21 hours ago, LostKobrakai said:

    Just change the xdebug max_nesting config to something higher. Also in production xdebug shouldn't be installed anyways.

    Hi,

    Still get the same error nomatter how high the max_nestibg_level set. I have 5000 Chinese characters whitelisted in the config.php file. Is it possible the problem?

    If I disable xdebug, the connection just get reset and show a blank page when save.

    Any more ideas to fix it??

    Attached last two lines of the error message from xdebug.

    Gideon

    2016-08-07 14-26-23 的螢幕擷圖.png

  3. Hi,

    I tried the UTF8 page name function. It is indeed very good but it seems limit the number of Chinese Character to 16. If the page name is more than 16 Chinese Characters, the whole backend become a blank page. I enabled the debug mode and found this error:

    ( ! ) Fatal error: Maximum function nesting level of '256' reached, aborting! in /home2/web/testserver/WireCore-3.0/core/Sanitizer.php on line 551

    Any hints to fix it??

     

    Gideon So

  4. It's surely possible. Recently I've done a very similar newsletter solution, see screens here.

    Basically you need to send an email with contents of the newsletter page body (or other) field. Things get complex when you need things like preview email (which is a must imho), subscriber lists, etc. I've done this addons mainly with JS/Ajax.

    Hi tpr,

    Would you share how to get it done?? A tutorial would be good and helpful to many.

    Gideon

  5. Not sire what you mean by "to compose an newsletter in the backend as a page". Write the email in textarea field? Or send a rendered output of a page via email. Anyway, both ways are possible using WireMail.

    And check out this awesome module by Martijn that just might be useful in this case.

    Hi Ivan,

    Thanks for the input. I will surely take a look. What I want to do is send a rendered output of a page via mailgun.

    Gideon

  6. Hi,

    All Chinese characters in the output pdf file become ???. How to config to use CJK fonts??

    Thanks.

    Gideon

    Work it out myself. Maybe someone need the answer. Here it is.

    1. Download mpdf 6.0 from http://www.mpdf1.com/mpdf/index.php

    2. copy the Sun-ExtA.ttf file to /path/to/your/web/site/modules/Pages2Pdf/mpdf/ttfonts

    3. add the following lines to /path/to/your/web/site/modules/Pages2Pdf/mpdf/config_fonts.php

           "sun-exta" => array (

                    'R' => "Sun-ExtA.ttf",

                    'sip-ext' => 'sun-extb',

                    ),

    4. change the mode to R in WirePdf module config page

    5. Chang fonts to sun-exta in WirePdf module config page

    Done.

    Gideon

    • Like 2
  7. can you try moving the page up to the top, in the admin page branch?

    sure, i can try, and the plan is to eventually make a module...

    but in the meantime i'll try and make a tutorial, because until the module is made, it's just a lot of fields, templates and pages in the admin; then 1 dashboard.php, and 3 css files

    Good. Waiting for your great tutorial.

    Gideon

  8. Update:

    So I've been using Pete's dashboard module instead of the technique described above;

    it's quicker to setup, and easier to clone to other installs, and no need to have code in various places like the themes folder and in ready.php

    The hope/plan is to turn it into a full widget enabled dashboard module that i can install on various installations

    a) without having to do any hardcoding

    b) enable control over which widgets are shown on the dashboard (by user/role/permission)

    c) allow for easy configuration of colors, icons, columns, etc.

    To achieve this I setup some templates for different widget types, one is a shortcuts widget, another is a page lister widget;

    these each have pages and fields to configure them; i can set them to appear by user/role.

    in the future i can add different types of widgets as needed and then include them in the needed user's dashboard.

    attachicon.gifdashb_example.png

    This is using a combination of a free (MIT licensed) admin theme for bootstrap, but instead of using bootstrap as the css layout, it uses a tiny grid called rwdgrid which i s 2KB; it uses the box, and other widget classes from the admin theme.

    Hi Macrura,

    This is very impressive. Any tutorial or resources to show us how to do it?? Thanks.

    Gideon

  9. Hey all,

    I'm on this. I actually never noticed it worked that way because my installs had the page set to published, so it showed in the list of children.

    For now, the temp fix is to un-hide the tree page.

    Hi Tom,

    Good fix. But any plan to fix this??

    Gideon

×
×
  • Create New...