Jump to content
  • 0

Custom Template Label Not Displaying


JaxSite

Question

Greetings everyone. I'm new to this forum. I've searched for a post similar to my issue. I have not yet found anything so I'm posting my questions here. My apologies if there is already a related thread.

I've read a few other posts on setting up a custom template. I've pulled down a copy of Blesta source and I'm using git to manage my changes. My initial focus is the client area. I've cloned the bootstrap template. I've updated the config.json file. But when I go to select it in the admin settings area, the dropdown option is there but blank. I've checked the source code for that template and it appears to render a list based on the view directory as opposed to a database setting. Any suggestions as to what I might be doing wrong?

Thanks in advance!

 

- Jonathan

custom-template.png

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 1

It works great now. Turns out I was missing an opening curly brace after require. Thanks everyone!

{
    "version": "0.1.0",
    "name": "JaxSite",
    "description": "Custom template for JaxSite integration.",
    "authors": [
        {
            "name": "JaxSite",
            "url": "http://www.jaxsite.com"
        }
    ],
    "require": {
        "blesta": ">=3.2.0"
    }
}

 

Link to comment
Share on other sites

  • 0
12 minutes ago, JaxSite said:

Yes I have defined the name property.


"version": "0.1.0",
"name": "JaxSite",
"description": "Custom template for JaxSite integration.",

 

Is the config.json properly json formatted like Mike's example? What is the name of your template directory? Compare it with the bootstrap directory, the directory structure should be identical.

Link to comment
Share on other sites

  • 0

Here's the entire file source code.

{
    "version": "0.1.0",
    "name": "JaxSite",
    "description": "Custom template for JaxSite integration.",
    "authors": [
        {
            "name": "JaxSite",
            "url": "https://www.jaxsite.com"
        }
    ],
    "require":
        "blesta": ">=3.2.0"
    }
}

I've also attached a screen shot of the directory structure. It's a copy of bootstrap with the name changed.

 

directory-structure.png

Link to comment
Share on other sites

  • 0

Turns out I was missing an opening brace after require. It works great now. Thanks everyone!

 

{
    "version": "0.1.0",
    "name": "JaxSite",
    "description": "Custom template for JaxSite integration.",
    "authors": [
        {
            "name": "JaxSite",
            "url": "http://www.jaxsite.com"
        }
    ],
    "require": {
        "blesta": ">=3.2.0"
    }
}

 

template-showing.png

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
Answer this question...

×   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...