Nooku for dummies

  • 1,421 views
Uploaded on

Presentatie op 3 januari 2011 voor Joomla User Group 's Hertogenbosch over het 'fall back' principe van Nooku.

Presentatie op 3 januari 2011 voor Joomla User Group 's Hertogenbosch over het 'fall back' principe van Nooku.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,421
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
11
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Nooku
  • 2. 1/3/11
    Joomla User Group ’s Hertogenbosch
    2
    Nooku
    Nooku, wat je moetweten
    Fall-back principe
    Table naming conventions
    Objects
  • 3. Frontend editing In 5 stappen
    Handenuit de mouwen!
    1/3/11
    Joomla User Group ’s Hertogenbosch
    3
  • 4. if(!defined('KOOWA')) {
    JError::raiseWarning(0, JText::_('Koowa wasn't found. Please install the Koowaplugin and enable it.’));
    return;
    }
    echo KFactory::get('site::com.worlds.dispatcher')->dispatch();
    Hello World – Stap 1
    Dispatcher : …/com_worlds/worlds.php
    1/3/11
    Joomla User Group ’s Hertogenbosch
    4
  • 5. <ol>
    <?foreach($worldsAS $world) ?>
    <li>
    <?= $world->name?>
    </li>
    <?endif; ?>
    </ol>
    Hello World – Stap 2
    View: …/com_worlds/views/worlds/tmpl/default.php
    1/3/11
    Joomla User Group ’s Hertogenbosch
    5
  • 6. Bijna, maariets mist ernog
    1/3/11
    Joomla User Group ’s Hertogenbosch
    6
  • 7. Database tabellen
    Tabelvooronzegegevensopslagaanmaken:
    CREATE TABLE `sandbox`.`jos_worlds_worlds` (`worlds_world_id` SERIAL,`name` VARCHAR( 50 )NOT NULL
    )ENGINE = MYISAM ;
    INSERT INTO `sandbox`.`jos_worlds_worlds` (
    `worlds_world_id` ,
    `name`
    ) VALUES (NULL , 'mars’) ,(NULL , 'venus’) ;
    1/3/11
    Joomla User Group ’s Hertogenbosch
    7
  • 8. /index.php?option=com_worlds
    1/3/11
    Joomla User Group ’s Hertogenbosch
    8
  • 9. Kind kan de was doen
    1/3/11
    Joomla User Group ’s Hertogenbosch
    9
  • 10. Vrouwenkomen van Venus …
    Veranderingenaan de tabel:
    ALTER TABLE `jos_worlds_worlds` ADD `population` VARCHAR( 50 ) NOT NULL ;
    UPDATE `sandbox`.`jos_worlds_worlds`
    SET `population` = ’vrouwen' WHERE `jos_worlds_worlds`.`worlds_world_id` =2;
    1/3/11
    Joomla User Group ’s Hertogenbosch
    10
  • 11. <ol>
    <?foreach($worldsAS $world) ?>
    <? $href = @route('index.php?option=com_worlds&view=world&id='. $world->id) ?>
    <li>
    <ahref="<?= $href ?>”>
    <?= $world->name?>
    </a>
    </li>
    <?endif; ?>
    </ol>
    Hello World – Stap 3
    View: …/com_worlds/views/worlds/tmpl/default.php
    1/3/11
    Nooku Jam - Rotterdam
    11
  • 12. <h1><?= $world->name ?></h1>
    <h4><?= @text('Population')?></h4>
    <p><?= $world->population ?></p>
    Hello World – Stap 4
    View: …/com_worlds/views/world/tmpl/default.php
    1/3/11
    Nooku Jam - Rotterdam
    12
  • 13. /index.php?option=com_worlds&view=world&id=2
    1/3/11
    Joomla User Group ’s Hertogenbosch
    13
  • 14. Ja? En mannendan?!?
    1/3/11
    Joomla User Group ’s Hertogenbosch
    14
  • 15. <h1><?= @text('Change the world') ?></h1>
    <form action="<?= @route('id='.$world->id) ?>" method="post">
    <label for="name"><?= @text('Name') ?></label><br />
    <input type="text" name="name" value="<?= $world->name ?>" /><br /><br />
    <label for="population"><?= @text('Population') ?></label><br />
    <inputtype="text" name="population" value="<?= $world->population ?>" /><br /><br />
    <inputclass="button"type="submit"name="submit"value="<?= @text('Submit') ?>" />
    <inputtype="hidden"name="action"value="save"/>
    </form>
    Hello World – Stap 5
    View: …/com_worlds/views/world/tmpl/form.php
    1/3/11
    Joomla User Group ’s Hertogenbosch
    15
  • 16. /index.php?option=com_worlds&view=world&layout=form&id=1
    1/3/11
    Joomla User Group ’s Hertogenbosch
    16
  • 17. /index.php?option=com_worlds&view=world&id=1
    1/3/11
    Joomla User Group ’sHertogenbosc
    17
  • 18. 1/3/11
    Joomla User Group ’s Hertogenbosch
    18
    WOW
  • 19. Vragen?
    1/3/11
    Joomla User Group ’s Hertogenbosch
    19