Permalink
Browse files

Changed manifests to only show admin links for list views.

  • Loading branch information...
1 parent 01752b6 commit 91d2e3c193ecda8fc19d3366604479a8aaba056f @jlleblanc committed Apr 25, 2010
Showing with 8 additions and 5 deletions.
  1. +8 −5 targets/Joomla15/target.php
View
13 targets/Joomla15/target.php
@@ -101,6 +101,7 @@ private function makeTableClasses()
$tableSnip = $this->snippets->getSnippet('table');
$tableSnip->assign('table_name', $table_name);
$tableSnip->assign('table_uc_name', ucfirst($table_name));
+ $tableSnip->assign('table_key', $table->key);
foreach ($table->fields as $field) {
$field_snip = $this->snippets->getSnippet('table_field');
@@ -292,11 +293,13 @@ public function makeManifest()
$xmlSnip->assign('copyright', '© ' . date('Y'));
foreach ($this->rep->admin_views as $view) {
- $snip = $this->snippets->getSnippet('xml_submenu_items');
- $snip->assign('component', 'com_' . $config->project);
- $snip->assign('title', ucwords($view->name));
- $snip->assign('view', $view->system_name);
- $xmlSnip->add('submenu_items', $snip);
+ if ($view->type == 'list') {
+ $snip = $this->snippets->getSnippet('xml_submenu_items');
+ $snip->assign('component', 'com_' . $config->project);
+ $snip->assign('title', ucwords($view->name));
+ $snip->assign('view', $view->system_name);
+ $xmlSnip->add('submenu_items', $snip);
+ }
}
$this->files->addFile($config->project . '.xml', $xmlSnip);

0 comments on commit 91d2e3c

Please sign in to comment.