ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

No-CMS v 0.6.0, A free CodeIgniter based CMS Framework

February 06, 2013 2:27am

Subscribe [3]
  • #1 / Feb 06, 2013 2:27am

    goFrendiAsgard's avatar

    goFrendiAsgard

    125 posts

    No-CMS has surpass almost 2 years of development.
    Now it has much more cool features. Please take a look at http://www.getnocms.com/
    You can also find it on github (https://github.com/goFrendiAsgard/No-CMS) and facebook (https://www.facebook.com/nocms)

    A new stable version of No-CMS has been released today, 0.6.0 rev 1, Codename: Ishoni.
    You can just download it for free, and start your new adventure.

    So, what are you waiting for? Get it for yourself, and do your job fastly, painlessly ....

  • #2 / May 13, 2013 1:50pm

    phaethon

    4 posts

    Hello,

    I have started using No-Cms and it seems very promissing. Thanks for making this available for free.

    I notice a strange behaviour. When I am logged in and I switch to another language the change happens immediately and the current page is switched to the language selected. When I’m not logged in the change to the selected language appears only after a page refresh.

  • #3 / May 13, 2013 9:05pm

    goFrendiAsgard's avatar

    goFrendiAsgard

    125 posts

    Hi, thank you for your report and kind words.
    I’ve just notice this. I’ll investigate it and let you know if I find something.

  • #4 / May 13, 2013 9:21pm

    goFrendiAsgard's avatar

    goFrendiAsgard

    125 posts

    Change language function (around line 323) in /modules/main/controllers/main.php should fix this problem

    public function language($language = NULL)
        {
            $this->cms_guard_page('main_language');
            if (isset($language)) {
                $this->cms_language($language);
                redirect('main/index');
            } else {
                $data = array(
                    "language_list" => $this->cms_language_list()
                );
                $this->view('main/language', $data, 'main_language');
            }
        }

    I’ll make this fix official. Thanks again

  • #5 / May 14, 2013 7:33pm

    mrgswift

    9 posts

    Hi goFrendiAsgard!

    Thank you so much for all your hard work on No-CMS

    I know No-CMS doesn’t yet support SQLite.  I was wondering if you ever have plans to support SQLite. 

    I am trying to import the tables from a base/clean install of No-CMS from mysql to SQLite, and change my application/database.php according to what this blog http://codeigniter-blog.de/110/sqlite-with-codeigniter/  says to do.

    I was able to successfully create and insert data into the tables using the database manager: adminer into a SQLite database file. I set the tables, columns, and constraints with the most similar data types, keys, and constraints SQLite supports like changing varchar to text and all types of int’s to integer

    I also setup my database.php file the way suggested in the blog.  However I am still getting the error

    Fatal error: Call to a member function execute() on a non-object in ...\system\database\drivers\pdo\pdo_driver.php on line 193

    Have you ever explored options on how you would implement SQLite into No-CMS?  If so, is there anything you can think of offhand that would prevent No-CMS from working with SQLite? 


    Thanks in advance for your help! 😊

     

     

  • #6 / May 15, 2013 6:52am

    phaethon

    4 posts

    Hello,
    Thanks for the answer. This solves the problem but it would be preferable if it refreshed the current page instead of redirecting to home.
    Also I noticed that in the configuration management when I change site_name, site_slogan and site_footer still the default values appear. When I create new configuration value e.g. my_site_footer and include in page with

    {{ my_site_footer }}

    then it appears fine.
    Also,  in main/views/login.php I tried to change like this:

    echo form_submit('login', '{{ language:Login }}', 'class="btn btn-primary"');

    but the button appears with {{ language:login }} on it instead of the defined value in the languages files

    $lang['Login'] = 'Login';

    I could overcome this with:

    <input type="submit" name="login" class="btn btn-primary" value={{ language:Login }}>

    The {{ language:… }} works fine with CI anchor and label tags.

    Finally, I was wondering if there is a way to control the order of the items in the complete menu drop down.

  • #7 / May 16, 2013 12:53am

    goFrendiAsgard's avatar

    goFrendiAsgard

    125 posts

    @mrgswift: Some of No-CMS features such a module generator is really depend on My-SQL. I hope I can do things about sqlite, but it would be long. Right now, No-CMS doesn’t support sqlite yet.
    @phaeton:

    redirect('main/language');

    should “refresh” the page.
    I’ll check the other problems, and confirm it later

  • #8 / May 16, 2013 2:38am

    goFrendiAsgard's avatar

    goFrendiAsgard

    125 posts

    Around line 852, change after_update_config function into this:

    public function after_update_config($post_array, $primary_key){
            // adjust configuration file entry
            $query = $this->db->select('config_name')->from(cms_table_name('main_config'))->where('config_id', $primary_key)->get();
            if($query->num_rows()>0){
                $row = $query->row();
                $config_name = $row->config_name;
                cms_config($config_name, $post_array['value']);
            }
            return TRUE;
        }

    I’ll make this patch official

  • #9 / May 16, 2013 7:18am

    phaethon

    4 posts

    Thanks a lot for the answers!

    I have built the pokemon module as instructed in the tutorial. In the show function in the pokemon.php controller file there is the line loading the view

    $this->view('new_module/pokemon_index',$data,'main_index');

    Everything works fine so far.

    I created my own theme with twitter bootstrap and everything still works fine with the default layout.
    Then I created another layout named home.php.
    Is there a way to use the new layout with the above syntax?

    I tried the template library syntax

    $this->template->title('Pokemon Module');
    $this->template->set('pokemon_list',$pokemon_list);
    $this->template->set_theme('my_theme_name');
    $this->template->set_layout('home');
    $this->template->build('pokemon_index');

    The new layout is loaded and the list of pokemons displayed but all the stuff inside {{ }} (widgets, language, configuration) fails to render and it appears within the {{ }}. The same happens when I view the code of the page in the browser I see for instance:

    <html lang="{{ language:language_alias }}">

    In the User Guide I see that the template library syntax is mentioned but in the tutorials and the actual code there is this other method.

     

  • #10 / May 16, 2013 9:14pm

    goFrendiAsgard's avatar

    goFrendiAsgard

    125 posts

    The tags (everything with {{ }}) only works when you use $this->view();

    To make new themes, I suggest you to copy existing theme (in /themes/ folder)

  • #11 / May 17, 2013 3:16am

    phaethon

    4 posts

    The tags (everything with {{ }}) only works when you use $this->view();

    To make new themes, I suggest you to copy existing theme (in /themes/ folder)


    The same problem remains with the existing themes.

    Is there a way to use a different layout with the $this->view()?

    Is there an equivalent to

    $this->template->set_layout('home');

    ?

    For instance in the neutral/view/layouts folder I create a new layout file named home.php.

    This home.php is an exact copy of default.php with a twitter bootstrap hero unit below the nav-bar.

    Using $this->view() can I select this home.php layout?

  • #12 / May 17, 2013 3:55am

    goFrendiAsgard's avatar

    goFrendiAsgard

    125 posts

    Well, you can by using this:

    $data = array();
    $config = array('layout'=>'home');
    $this->view('your_module/your_view', $data, 'your_navigation_name', $config);
  • #13 / May 17, 2013 3:58am

    goFrendiAsgard's avatar

    goFrendiAsgard

    125 posts

    BTW, I’ve just finish build this: http://www.getnocms.com/forum/
    Hopefully you can enjoy

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases