Jump to content

Jon

Members
  • Posts

    159
  • Joined

  • Last visited

1 Follower

Profile Information

  • Gender
    Male
  • Location
    Oban, Scotland

Recent Profile Visitors

2,427 profile views

Jon's Achievements

Sr. Member

Sr. Member (5/6)

36

Reputation

  1. I eventually tracked down the issue, it related to a historical version of proDrafts. Once draft was unticked front-end editing worked πŸ™ˆ.
  2. 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
  3. 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?
  4. 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
  5. 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.
  6. 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
  7. @bernhard That's brilliant. Thank you for the update!
  8. 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);
  9. 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); }
  10. 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);
  11. Brilliant thanks Ill grab that now πŸ™‚ Permissions look ok. Just appears jQuery isn't loaded
  12. 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
  13. 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?
  14. Ah thank you, I had used $pages as a variable else where in the template for the parent pages doh. Thank you!
Γ—
Γ—
  • Create New...