Updated 4a. JCB Demo Component Directory, Folders and Files (markdown)
@@ -347,35 +347,10 @@ The, click the edit toolbar and display the admin view look, displaying only the
|
|||||||
* Save and Close
|
* Save and Close
|
||||||
* 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:
|
The code to do this is located in JCB in the view prefaced by:
|
||||||
Custom Script
|
Custom Script - Add PHP (after getting the items) * - Yes - PHP getItems Method - Target (array) $items values *
|
||||||
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 = '<br /><br /><a class="uk-button uk-button-primary uk-width-1-1" href="';
|
|
||||||
$item->editLink .= JRoute::_('index.php?option=com_[[[component]]]&view=look&task=look.edit&id=' . $item->id);
|
|
||||||
$item->editLink .= '"><i class="uk-icon-pencil"></i><span class="uk-hidden-small">';
|
|
||||||
$item->editLink .= JText::_('Edit Look');
|
|
||||||
$item->editLink .= '</span></a>';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$item->editLink = '';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
## [JCB - Editing the Site View](/administrator/index.php?option=com_componentbuilder&view=dynamic_get&layout=edit&id=36)
|
## [JCB - Editing the Site View](/administrator/index.php?option=com_componentbuilder&view=dynamic_get&layout=edit&id=36)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user