Jump to content

Template Customization


lethal.network

Recommended Posts

Hello, I recently decided to switch over to blesta and away from WHMCS. Right now I'm in trouble because I could not find any documentations for customizing templates or in my case 'converting' my WHMCS template to a bleasta template/writing a whole new template. In fact I installed blesta in the root of my domain and when i access it i only get a 404 rather than an index page.

 

If you could tell me about any documentation sources that would be quite awesome. 

 

Thank you, Stan.

Link to comment
Share on other sites

your error "404" is certainly not related to blesta, you could create 2 files at the root of your blesta install

 

hello.txt

 

with content

Hello lethal network

info.php

 

with content

<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>

and if both load fine in your Internet browser, your webserver config is ok.

 

Please note that all above is not related/specific to blesta, but if above do not work, Blesta will not be working as well

Link to comment
Share on other sites

mostly regarding blesta template customization,

 

Frontend templates are here  MY-BLESTA-PATH/app/views/client

 

so there you could copy the bootstrap folder, & rename it to a custom name, What I did was to remame it like my domain without the extension, so later when I will be muti-domain (multi-company), I will have one template by company.

 

purpose to have your own template, is for not being rewritted when there is Blesta update

 

 

So in your template folder, there is structure.pdt file, it's from here your content come from.

 

Note also you need Portal/cms plugin activated at blesta, and also makes your front end template is set at the blesta admin panel

Link to comment
Share on other sites

Regarding the 404, in my opinion it is realted to blesta. See here: https://lethal.network

 

 

I checked the template folder and im confused, maybe because im used to whmcs templating.

 

Do i have to style/code each page? im confused where my header/footer code goes into. im also wondering if theres a index page?

Client side template is in www.yourdomain.tld/blesta_dir/app/views/client ,as already pointed you shoud copy bootstrap folder and rename it(otherwise it will be overwrited every time you update blesta),after you did that ,go in www.yourdomain.tld/blesta_dir/app/views/client/renamed_foldler and you will see structure.pdt file .

In this file you can edit header,content/holder and footer and if you edit header and footer(which is mostly what users do when integrate html template) in structure.pdt file it will be included in every page at client side,so response is you don't need to edit each file when it comes header and footer.

Blesta is very frendly once you understand how it works and it is very modular even when it comes design.

And offcourse you must go to settings and set client template to your custom renamed template.

Link to comment
Share on other sites

  • 5 months later...

Now I have renamed mine to /home/my_name/public_html/blesta_dir/app/view/my_custom and edited it. I want to apply it. Going to mydomain.tld/blesta_dir/admin//settings/company/lookandfeel/template/ I only see bootstrap and bootstrap! How do I know which bootstrap I need? I need a friendly way, where is template name stored???? Kindly help.

 

**************************************************************************************************************************************************************************

EDIT: I got it. config.json

**************************************************************************************************************************************************************************

Link to comment
Share on other sites

if you rename just dir. you will see two bootstrap template because that name is coming from config.json ,file you can find insade foldler and you can change name there.

 

example config.json in naja7host Adminlte template

{	"version": "1.0.0",	"name": "Adminlte",	"description": "AdminLTE Built on Bootstrap 3.1.",	"authors": [		{			"name": "Naja7Host Sarl",			"url": "http://www.naja7host.com"		}	],	"require": {		"blesta": ">=3.2.0"	}
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...