Welcome Guest, Not a member yet? Register   Sign In
CodeExtinguisher v2.0 Release Candidate 12.3
#31

[eluser]Majd Taby[/eluser]
you've already posted all the code Smile
#32

[eluser]abmcr[/eluser]
I have created a simple editor plugin with the jWYSIWYG editor.
In the zip file the 4 file and your position into the folders.
In the yml file simple use class:Editor

Dowmload it at http://www.andreabersi.com/Saibal/AutoIndex/

JTaby: i have insert the plugin into my web site because it is not possible to attach a zip file into the post....

I still working for create a TinyMCE plugin... but before, i need to resolve the problem of the fields not showing in the display list
Ciao!!!!
... ;-)
#33

[eluser]abmcr[/eluser]
Another tip (please excuse me.... very beginner)
I have tried to use the editExistingItem method for hooking the editing of a record; in my cntroller i have set this code
Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
*
* NOTE:
*   This controller does not generate tables, you must predefine you table.
*
*/
include("codexcontroller.php");

class Prova_andrea extends codexController
{
    function Prova_andrea ()
    {
        // Load the CodexController
        codexController::codexController();

        /*
         * ===================================
         * ADDING VALIDATION
         * ===================================
         *
         * If you would like to add form
         * validation, then define your
         * rules in the following format:
         *
         *      $rules['field_name'] = "rules";
         *
         * then in your $config array below:
         *
         *      'rules' => $rules,
         *
         * ===================================
         */
        
        
        $rules['textbox_test'] = "trim|required";
        $messages['edit_success'] = 'Hurray for personalized messages!';

        $config = array(
                    'db_table' => 'andrea', //The name of the table associated with this controller
                    'form_setup' => $this->spyc->YAMLLOAD($this->codexadmin->getDefinitionFileName('prova_andrea_form')), //The array that holds our elements
                    'controller_name' => 'Prova_andrea', //The name of the controller, so that it can be used when generating the URLs
                    'primary_key' => 'id', //The name of the controller, so that it can be used when generating the URLs
                    'display_fields'=>array('textbox_test','textarea_test','date_test'),
                    'order_by'=>'textbox_test',
                    'order_type'=>'desc',
                    'messages' => $messages,
                    'rules'=>$rules
                    );
        $this->setConfig($config);
    }
    
     function editExistingItem(){
            $this->codexadmin->editExistingItem();
            die("ok");
            

            $this->codextemplates->setTitle('Add a new item to: ');
            $this->codextemplates->printHTML();
        }
}
?>
But the ok message of the die() statement not appear... what is wrong?
Another question: the method prepForDelete($id) is called before a record is deleted? I use it as editExistingItem?
Thank you for the patience
#34

[eluser]got 2 doodle[/eluser]
Hey abmcr, I added the wysiwyg editor plugin to the app I'm working and and it just dropped right in! Excellent!

Thanks

FYI Right now I am using CodeExtinguisher 11.2 and it works fine.
#35

[eluser]Majd Taby[/eluser]
abmcr, i'm really glad you are exploring CodeExtinguisher! I have personally created an FCKeditor plugin (but I haven't tested it fully, i'll release it when i do.) as far as your editExtstingItem, that function has been deprecated (and replaced by _edit) for quite a few RCs, what version are you using? Moreover, the _edit() function prints the html itself.

got 2 doodle, abmcr, i'm working on the windows issue, it turned out to be specific to the Image plugin. As long as you don't use the image plugin, it works fine.

ps. I have discovered how horribly broken the site is in IE6, if anyone is familiar with working out IE6 CSS kinks, i'd appreciate some help.
#36

[eluser]abmcr[/eluser]
I use the latest version.... this _edit function or hook is not documented?
My problem is: when i edit a field i want to launch a code for crerate other stuff into the db....What is the best way?

And: i want to create a tabbed view in the edit mode; at this moment the CodeExtinguisher work with fieldset... i think possible to change this fieldset into div but i search a way for know the number of the fieldset...
#37

[eluser]Référencement Google[/eluser]
[quote author="jTaby" date="1210365894"]ps. I have discovered how horribly broken the site is in IE6, if anyone is familiar with working out IE6 CSS kinks, i’d appreciate some help.[/quote]

Pfffff, forget this obsolete technology browser. Make it work for IE7 but other have to upgrade.
#38

[eluser]TheLoops[/eluser]
[quote author="elitemedia" date="1210366279"][quote author="jTaby" date="1210365894"]ps. I have discovered how horribly broken the site is in IE6, if anyone is familiar with working out IE6 CSS kinks, i’d appreciate some help.[/quote]

Pfffff, forget this obsolete technology browser. Make it work for IE7 but other have to upgrade.[/quote]Agreed. >Sad
http://www.savethedevelopers.org/index.php ;-)
#39

[eluser]Majd Taby[/eluser]
abmcr, the docs included in the download are _very_ outdated. If you simply rename editExistingItem to _edit, everything should work fine.
also, if you want to know the number of fieldsets in a form, then you can do this:

Code:
$count_fieldsets = 0;

foreach($this->codexadmin->form_setup as $name=>$params){
  if(in_array('FieldSet',$params))
    $count_fieldsets++;
}

return $count_fieldsets;
#40

[eluser]got 2 doodle[/eluser]
Quote:As long as you don’t use the image plugin, it works fine.

ps. I have discovered how horribly broken the site is in IE6, if anyone is familiar with working out IE6 CSS kinks, i’d appreciate some help.

Unfortunately I need the image plugin functionality this time round.

With regards to the browser issues, since it is an admin interface I could probably persuade my client to use Firefox or other browser for all admin functions. This is my first app with CI and I think the whole thing as absolutely brilliant! Code extinguisher really rounds out the framework, I don't think many clients would choose to spend a lot on the backend unless they were in there daily updating things.




Theme © iAndrew 2016 - Forum software by © MyBB