Skip to main content

replace metadata in site publisher's templates

Comments

4 comments

  • sysdop
    @Masiar You can lock the folder with the chattr +i -R /usr/local/cpanel/etc/site_templates/ command, but it is not a recommended practice, ideally you should contact the cPanel team via a ticket, not find a solution as this is the only option I see possible first of all.
    0
  • cPanelAdamF
    @Masiar - Currently there isn't a mechanism to translate strings in Site Publisher. You can, however, copy the contents of /usr/local/cpanel/etc/site_templates into /var/cpanel/customizations/site_templates/ and make any updates you want there. Your customers will see both english (from the cpanel-provided versions) AND your translated templates when they open the site publisher interface. Contents of /var/cpanel/customizations/site_templates/ will be totally ignored during any update process, so you won't have to freeze any folders or write upcp hooks or anything.
    0
  • Masiar
    @sysdop @cPanelAdamF many thank for reply! @cPanelAdamF are you planning to implement mechanism to translate strings in Site Publisher?? That would be very helpful. Duplicating templates is not the best in my opinion :/
    0
  • cPanelAdamF
    yeah, I agree, it's not the greatest solution in the world. As far as the future of Site Publisher goes, the only conversations we've had internally about it is to potentially iterate on it in the direction of one of the off-the-shelf static-site-generators. Like jekyll or Grav - A Modern Flat-File CMS | Grav in order to open up tons more templates and participate in those communities. There's some really great sites out there built using static-site generation and Site Publisher was an experiment to see how much interest our end-users would have in those. Internally we typically do a big strategy conversation after the new year so I may have more news then.
    0

Please sign in to leave a comment.