HighFlyerPL185 Posted March 16, 2012 Report Share Posted March 16, 2012 Hello there, I was wondering how to create html pages that use the layout template and that do not need to be edited by the system and the editor inside Admin Panel, but rather via HTML. I'll explain why because you may think that I'm trying to cheat the system, or I'm bollocking the product. The product is in fact very fantastic and functional, yet I find that remaking pages everytime you reinstall phpVMS (happens to me quite often, as I'm developing) is quite annoying, because you lose your pages. It would be nice if there would be a way to create pages and link them to the menu. I would appreciate any tips. Thanks, HighFlyer Quote Link to comment Share on other sites More sharing options...
Tom Posted March 16, 2012 Report Share Posted March 16, 2012 Take a backup of everything inside /core/pages/ Or edit the fles yourself and reupload them. Quote Link to comment Share on other sites More sharing options...
HighFlyerPL185 Posted March 16, 2012 Author Report Share Posted March 16, 2012 Thanks for a quick reply. What I mean, is that they save empty, and I find it more useful to code it rather than use the editor which I find sometimes shifts the code and removes the tags. Is there an efficient way of including templates into a custom created html file or not really? Quote Link to comment Share on other sites More sharing options...
Tom Posted March 16, 2012 Report Share Posted March 16, 2012 Well you can create the files in that directory manually if you want to code them yourself. If you just wanted to include the layout you'd have to go through and include quite a lot of files as the majority are included automatically... Quote Link to comment Share on other sites More sharing options...
HighFlyerPL185 Posted March 16, 2012 Author Report Share Posted March 16, 2012 I only want to include a single template, layout.tpl. Would that require going through a lot of files as well? Quote Link to comment Share on other sites More sharing options...
Tom Posted March 16, 2012 Report Share Posted March 16, 2012 Well it wouldn't really work because your content goes inside that file, right in the middle. You'd have to paste in the code around it each time... Then there's all sorts of other javascript and css... Quote Link to comment Share on other sites More sharing options...
HighFlyerPL185 Posted March 16, 2012 Author Report Share Posted March 16, 2012 Alright, I see. Well, thanks for your help, I guess the best way will be to bypass it by making backups, it seems much easier that way. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted March 17, 2012 Administrators Report Share Posted March 17, 2012 Not sure if this might be what you are looking for but you can create a custom module to display pages within the system without using the pages editor in the admin panel. This can be especially helpful if the pages you are trying to use include php code as the editor sometimes makes this nearly impossible. You can find a quick post with a basic example here -> http://david-clark.net/phpvms-content-module/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.