Contentteller

Contentteller Support Forums
Home Forums > Contentteller > Feedback and Suggestions >

Improved admin CP navigation / functions

Discussion in 'Feedback and Suggestions' started by mark99, Aug 19, 2008.

  1. mark99 Customer

    Improved admin CP navigation / functions

    The admin control panel is reasonable but I find that it is in serious need of better navigation. For example, if I edit a template and want to then go back it would be handy if you didn't need to go through the whole menu system again to get to where you were before. I know you can click the 'Back' button but I dare not do that with a dynamic script and would rather have some sort of breadcrumb navigation link.

    Likewise there's no option to delete templates and or template change logs? I can't even find an option to limit the number of change logs made.

    On a related note, I've made a custom template (site_a_left_column) and want to call it in to my site but the logical solution that I assumed would work does not:

    {$insert['site_a_left_column']}
    mark99, Aug 19, 2008
    #1
  2. Philipp Administrator

    Thanks for your suggestions. I will improve the template editor in one of the coming releases. In fact it is already on my do list :)

    If you have ideas or suggestion for other improvements, please use the feature tracker.

    No, it is not possible to call custom templates like this. The PHP script must call the template in question. It would take to many resources on the server if the template system would load all available templates for each request.
    Philipp, Aug 19, 2008
    #2
  3. mark99 Customer

    So how can I call my custom template, otherwise what's the point of them :) ?
    mark99, Aug 20, 2008
    #3
  4. Philipp Administrator

    Custom templates are mainly for module developers to allow them adding templates to their newly written modules. This feature is not meant to add template to existing modules except you modify them first.

    In which template are you calling {$insert['site_a_left_column']} and what does it contain?

    Beside site_header/site_footer there are now also page layout templates such as news_layout_extended_story or content_layout_pages that allow customizing the entire website layout for each section.
    Philipp, Aug 20, 2008
    #4
  5. mark99 Customer

    Well my main problem right now is that the sites overall header and footer does not do what it says on the tin, it also includes the content layout for the sites front page. But if I remove that then there's no clear indication of where I go (third template) to make the front page content, it's all very confusing.

    Essentially I want my front page to look like it is now, albeit inside CT:
    ISPreview UK - Independent Internet Service Provider Information Source

    Getting this to work with my beta without forcing the same front page layout upon all the other sections is proving to be overly problematic.
    mark99, Aug 20, 2008
    #5
  6. Philipp Administrator

    First, the front page is a news page? In this case you should choose the news module as default. You find this option in the main menu under main preferences.

    The columns should be only displayed on the front page? Contentteller comes also with support for an alternative site_header/site_footer but only for a few sections of the website. I may change this in one of the future releases though.

    In the meantime you can do this again with a small PHP script inside of the site_header/site_footer template.

    Here an example:

    Open site_header in the template editor and choose "Add PHP part to this template". Then apply the following code:

    PHP:
    global $ct;
    $columns = ($ct) ? "<div class=\"altmainpage\" id=\"content\">" : "<div class=\"colleft\" id=\"menu1\">".$insert['site_block_1']."<div style=\"text-align: center;\">".$insert['site_tasks']."</div></div><div class=\"colright\" id=\"menu2\">".$insert['site_block_2']."</div><div class=\"mainpage\" id=\"content\">";
    Now replace the following in the HTML part of the same template:

    Code:
    <div class="colleft" id="menu1">
    {$insert['site_block_1']}
    
    <div style="text-align: center;">
    <!-- Do not remove -->
    {$insert['site_tasks']}
    <!-- Do not remove -->
    </div>
    </div>
    
    <div class="colright" id="menu2">
    {$insert['site_block_2']}
    </div>
    
    <div class="mainpage" id="content">
    with

    Code:
    {$columns}
    Now open site_footer and add the following PHP code:

    PHP:
    global $ct;
    $site_tasks = ($ct) ? "<br /><div style=\"text-align: center;\">".$insert['site_tasks']."</div>" : "";
    and the following in the HTML part in line 3 (before the two </div> lines):

    Code:
    {$site_tasks}
    Let me know if you need additional help or if something is unclear.
    Philipp, Aug 20, 2008
    #6
  7. mark99 Customer

    Ok, it'll take me awhile to fiddle around with all of this stuff anyway, I'm just getting use to it first.

    One other useful feature suggestion might be if you could colour highlight templates that you've edited. This was I can easily look down the list of templates and see which I've manipulated before without having to select them first.
    mark99, Aug 21, 2008
    #7
Tweet
Facebook:
Forgot your password?
Contentteller Support Forums
Home Forums > Contentteller > Feedback and Suggestions >
  • Home
  • Forums

    Forums

    Quick Links
    • Search Forums
    • What's New?
  • Members

    Members

    Quick Links
    • Registered Members
    • Current Visitors
    • Recent Activity
  • Help

    Help

    Quick Links
    • Smilies
    • BB Codes
    • Trophies

Separate names with a comma.

Advanced search...
    Forum software by XenForo™ ©2011 XenForo Ltd.