#1 Re: How to? » change the layout RTL when change the language » 2013-05-20 11:20:44

You can set css class to <body> tag by using <ion:current_lang /> like :

<body class="<ion:current_lang />">

#3 Re: How to? » [Solved] Mediamanager error on upload » 2013-04-29 18:14:51

@DivitCreative

Hata kodlarını kontrol edermisin, application logs klasörü altındaki loglara da bakabilirsin ekstra olarak. Dosya yazma izinleriyle alakalı bir durum olabilir, eğer localde sıkıntı yaşamayıp nette iken yaşıyorsan.

#4 Re: Modules » Usermanager v0.3 » 2013-04-26 10:09:15

its here : (it is part of the core functionality) http://doc.ionizecms.com/en/tags-reference/user-tags

With ionizecms packages won't include modules (just demo module), you can download modules from :

Ionize Team Modules : https://github.com/ionize
You can check my repo also : https://github.com/trk
and you can use forum section

#5 Re: How to? » How to set user permissions? » 2013-04-25 12:20:36

its not supported current version of ionize, next version will support.

#6 Re: ionize CMS core: bug report » article error » 2013-04-23 15:50:12

@GWR

i see commited files will try to fix them. For the moment my correction will stay, maybe @Michel-Ange apply a different solution for this issue.

#8 Re: ionize CMS core: bug report » article error » 2013-04-23 00:43:33

For the moment i made a quick fix, need to check if it will effect other things. didnt check it if you see any issue write here will check it.

application/controller/admin/article.php change _reload_panel function with this :

/**
	 * When called, relaods the Page Edition panel
	 *
	 * @param	Page ID
	 *
	 */
	protected function _reload_panel($id_page, $id_article)
	{
        if($id_page != 0) {
            $page = $this->page_model->get_by_id($id_page);
            $page['menu'] = $this->menu_model->get($page['id_menu']);
        }

		// Main data
		$article = $this->article_model->get_by_id($id_article);

		$article_lang = $this->article_model->get_by_id($id_article, Settings::get_lang('default'));
		$title = empty($article_lang['title']) ? $article_lang['name'] : $article_lang['title'];

		// Correcting some lang data
		$article_lang['online'] = $article['online'];

		$this->callback[] =	array(
			'fn' => 'ION.splitPanel',
			'args' => array(
				'urlMain'=> admin_url() . 'article/edit/'.$id_page.'.'.$id_article,
				'urlOptions'=> admin_url() . 'article/get_options/'.$id_page.'.'.$id_article,
				'title'=> lang('ionize_title_edit_article') . ' : ' . $title
			)
		);
        if($id_page != 0) {
            $this->callback[] = array(
                'fn' => $page['menu']['name'].'Tree.updateElement',
                'args' => array($article_lang, 'article')
            );
        }

	}

#10 Re: Suggestions » Extend field available only for specific article type » 2013-04-22 22:01:08

We have some ideas about this suggestion, dont know which version of ionize will include this spec. sad you can use content element for the moment.

#11 Re: Installation » Not able to login inside admin?? » 2013-04-22 21:58:21

I am also using win7 x64 and wamp server, my websites under subfolders like http://localhost/site1/ and i dont have issue like this.

Can you re-check your wamp setting. i think problem is about your wamp settings.

#12 Re: Themes » HTML5 Theme » 2013-04-22 21:53:00

Nice, Ionize's demo theme also responsive design.

#13 Re: How to? » Can ionize something for me » 2013-03-30 10:38:47

roelof wrote:

Hello,

I did read the docs but I could not find the answer.
I wil look at the testing demo site but I find this a little bit arrogant answer

Roelof

Sory but its not arrogant answer, its a quick answer. To busy with work and sometimes giving quick answers.

If you download and make local test with ionize by following ionize doc, archive and page will help you make website like your website.

#14 Re: How to? » Can ionize something for me » 2013-03-29 21:24:33

You can find your answer by testing demo website and by reading docs.

#15 Re: How to? » [solved] module save checkbox item » 2013-03-26 10:25:35

ok try this :

$active = $this->input->post('active'); 
if($active == 1)
     return 'Active checked';
else
     return 'Active not checked';

or

$active = $this->input->post('active'); 
if(!empty($active))
     return 'Active checked';
else
     return 'Active not checked';

#16 Re: How to? » [solved] module save checkbox item » 2013-03-26 01:01:42

Why did you add hidden for same named checkbox?

if(! isset($this->input->post('active')))
     return 'Active not checked';
else
     return 'Active checked'

or

if(isset($this->input->post('active')))
     return 'Active checked';
else
     return 'Active  not checked';

will help you

#17 Re: How to? » How to display articles NOT type » 2013-03-25 22:24:54

This will help you filter types (you can't filter if type='') with this method:

<ion:articles filter="type='type_1' || type='type_2'">

And PHP way :

<ion:articles>
     <ion:article>
          <?php
                    $type= '<ion:get key="type" />';
                    if($type == 'type_1' || $type == 'type_2' || $type != 'type_3'):
          ?>
               <ion:title tag="h2" />
          <?php endif; ?>
     </ion:article>
</ion:articles>

#18 Re: How to? » [solved] module save checkbox item » 2013-03-25 21:30:33

Can you make test like in your controller:

trace($_POST);
or
log_message('error', print_r($_POST, TRUE)); // You need to check your log file

Check it with / without checked and see the result for $_POST

<input type="checkbox" value="0" class="inputcheckbox" name="active" id="active" <?php if ($customer['active'] == 1):?> checked="checked" <?php endif;?>>

change with :

<input type="checkbox" value="1" class="inputcheckbox" name="active" id="active" <?php if ($customer['active'] == 1):?> checked="checked" <?php endif;?>>

if your checkbox checked value will be 1, if not you wont have value like 1 = TRUE / 0 = FALSE

#19 Re: How to? » How to display articles NOT type » 2013-03-22 14:03:20

can you try :

<ion:if key="type" expression="type==1 || type==2">
     <ion:title from="article" />
</ion:if>

#20 Re: How to? » How to get images dimensions once resized with 'adaptative' attribute » 2013-03-22 14:01:14

You talking about adaptive resize but you calling method width

<ion:medias type="picture" size="260,130" method="adaptive">
     <ion:src />width : 260, height:130
</ion:medias>

#21 Re: How to? » How to display articles NOT type » 2013-03-22 11:46:42

Which version ionize do you using?

#22 Re: How to? » How to display articles NOT type » 2013-03-22 10:58:34

Can you try this :

<ion:articles>
     <ion:article>
          <ion:type expression="type==1 || type==2">
               <ion:title from="article" />
               <ion:subtitle from="article" />
               <ion:content from="article" />
          </ion:type>
     </ion:article>
</ion:articles>

#23 Re: How to? » How to display articles NOT type » 2013-03-22 10:37:15

Like this (will be enought):

     <ion:articles type="">
          ..................................
     </ion:articles>

#24 Re: How to? » [solved] Conditional attributes » 2013-03-19 10:49:30

From doc : http://doc.ionizecms.com/en/tutorials/b … ule-part-4

public static function core_article_authors(FTL_Binding $tag)
    {
        $str = '';
 
        self::load_model('demo_author_model', 'author_model');
 
        // Get the article from local tag var :
        // The 'articles' tag is a parent of this tag and has set the 'article' var.
        $article = $tag->get('article');
 
        $authors = self::$ci->author_model->get_linked_author(
            'article',
            $article['id_article']
        );
 
        foreach($authors as $author)
        {
            // Set the locals var "author"
            $tag->set('author', $author);
 
            // Tag expand : Process of the children tags
            $str .= $tag->expand();
        }
 
        return $str;
    }

you will see there getting data from article, you need to set your attribute is or id_customer

$is = $tag->getAttribute('is')
// or
$id_customer = $tag->getAttribute('id_customer')

$customer = $this->customer_model->get_row('id_customer' => $id_customer);
// or
$customer = $this->customer_model->get_row('id_customer' => $is);

$tag->set('customer',  $customer);

What's Ionize ?

Ionize is an Open Source Content Management System created by webdesigners for webdesigners.

Created and maintained by Partikule and Toopixel , Ionize wants to be the easiest and most powerful CMS.

Can I help ?

Because talent is nothing without involvement, we are looking for motivated coders and webdesigners to join the project team.

Resources

Website : www.ionizecms.com
Documentation : doc.ionizecms.com

Development : Ionize on GitHub
Translations : Translations on GitHub