-
Posts
159 -
Joined
-
Last visited
Profile Information
-
Gender
Male
-
Location
Oban, Scotland
Recent Profile Visitors
2,618 profile views
Jon's Achievements
Sr. Member (5/6)
36
Reputation
-
I eventually tracked down the issue, it related to a historical version of proDrafts. Once draft was unticked front-end editing worked ?.
-
Yes, that's correct; I have even removed all template code and replaced it with basic HTML, including the edit php and got the same result. Works on all pages apart from home or ID 1
-
I have done all of the above and still can not get the home page front-end editing to work. The editable area on the home page isn't getting wrapped in the pw-edit id. Any other ideas?
-
Have a few Module on the site:- Formbuilder Hanna Code Jumplinks Persistent Login Redirects Tracy Debugger Video Markup ProFields MarkupXML MarkupSimpleNavigation 404 Logger Upgrades Video or Social Post Embed
-
Unfortunately nothing in the logs, the only error in both logs relates to the favicon It's a bit odd as it works perfectly on every other page; I've tried removing everything from the home template and just left the front-end edit code for the body field, but still nothing.
-
Jon started following RockPageBuilder is here! ππ₯ , Frontend Editing , RockPdf - Fast and fun TailwindCSS-like PDF creation for ProcessWire and 1 other
-
Hello, I am having trouble getting frontend editing to work on the homepage of my site. Works on every other page apart from the homepage. It looks like maybe jQuery isn't being loaded. Do you have any ideas? Jon
-
@bernhard That's brilliant. Thank you for the update!
-
Thanks Both, I had trouble getting font awesome icons to work using the doc and found your earlier example in this thread. In turn, it seems I have ended up with old and new code. I have resolved the issue by following the docs and font awesome icons are now showing correctly. Code below for reference $pdf = $modules->get('RockPdf'); $pdf ->addFont(['R' => 'site/templates/fonts/fa-regular-400.ttf', 'I' => 'site/templates/fonts/fa-regular-400.ttf', 'B' => 'site/templates/fonts/fa-regular-400.ttf', ], 'far') ->addFont(['R' => 'site/templates/fonts/Roboto-Regular.ttf', 'B' => 'site/templates/fonts/Roboto-Black.ttf', ], 'roboto') ->load("site/templates/change_management.php") ->save(preview: true);
-
Thanks gebeer, I am using the latest pro version. It works ok with the below code however, if I remove the addFont() line, it results in a 500 error. $pdf = $modules->get('RockPdf'); $pdf->settings([ 'mode' => 'utf-8', 'fontdata' => [ 'roboto' => [ 'R' => 'Roboto-Regular.ttf', 'I' => 'Roboto-Regular.ttf', ], 'robotothin' => [ 'R' => 'Roboto-Thin.ttf', 'I' => 'Roboto-Thin.ttf', ], 'far' => [ 'R' => "fa-regular-400.ttf", 'I' => "fa-regular-400.ttf", ], ], 'default_font' => 'roboto' ]); $pdf->addFont(['Roboto-Regular' => 'site/templates/fonts/Roboto-Regular.ttf',]) ->load("site/templates/test.php", ['page' => $pages->get(1053),]) ->save(preview: true); }
-
Iam using the following code to generate my PDF in ready.php however after adding the pdf->settings I get a 500 error, Any ideas? $pdf = $modules->get('RockPdf'); $pdf->settings([ 'fontdata' => (new \Mpdf\Config\FontVariables())->getDefaults()['fontdata'] + [ "far" => [ 'R' => "fa-regular-400.ttf", 'I' => "fa-regular-400.ttf", ], ], ]) $pdf->addFont(['Roboto-Regular' => 'site/templates/fonts/Roboto-Regular.ttf',]) ->load("site/templates/test-document.php", ['page' => $pages->get(1053),]) ->save(preview: true);
-
-
Fixed the issue perfectly thank you The only other issue I have is Alfred not loading on the homepage of an existing site I've adding RockBuilder to, loads and works on all other pages just not the home page. Tested on a fresh install which worked as expected. So something within my site
-
Perfect thanks ?
-
I seem to have an issue adding blocks, which I believe relates to my site directory being in sub-folders. The site is hosted at domain.com/client/site when I try and add a block, the following URL is being used domain.com/rpb-create-block/?field=rockpagebuilder_blocks&name=demo Any ideas?
-
Ah thank you, I had used $pages as a variable else where in the template for the parent pages doh. Thank you!