From 68196e4f3b36adc55fbe953d080f84c48fdb68ba Mon Sep 17 00:00:00 2001 From: Joseph Geller Date: Thu, 27 Sep 2018 10:53:30 -0500 Subject: [PATCH] Updated 4a. JCB Demo Component Directory, Folders and Files (markdown) --- ...-Component-Directory,-Folders-and-Files.md | 31 ++----------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md b/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md index a3fb7f0..c0213cc 100644 --- a/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md +++ b/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md @@ -347,35 +347,10 @@ The, click the edit toolbar and display the admin view look, displaying only the * Save and Close * Close -The More button was enabled in the JCB demo to allow entry of additional fields on the form. +Note, the More button was enabled in the JCB demo to allow entry of additional fields on the form. -The code to do this is located in JCB: -Custom Script -Add PHP (after getting the items)* -Yes - -PHP getItems Method -Target (array) $items values * - // do a quick build of all edit links links - if (isset($items) && $items) - { - foreach ($items as $nr => &$item) - { - $canDo = [[[Component]]]Helper::getActions('look',$item,'looks'); - if ($canDo->get('look.edit')) - { - $item->editLink = '

'; - $item->editLink .= JText::_('Edit Look'); - $item->editLink .= ''; - } - else - { - $item->editLink = ''; - } - } - } +The code to do this is located in JCB in the view prefaced by: +Custom Script - Add PHP (after getting the items) * - Yes - PHP getItems Method - Target (array) $items values * ## [JCB - Editing the Site View](/administrator/index.php?option=com_componentbuilder&view=dynamic_get&layout=edit&id=36)