Commit d9988538 authored by merlinofchaos's avatar merlinofchaos

Some stub help files to get started.

parent 66c5af6e
......@@ -528,4 +528,8 @@ html.js .views-hidden {
.views-quick-links li.last {
padding-right: 0;
}
\ No newline at end of file
}
.views-edit-view .advanced-help-link {
padding-right: 3px;
}
/* $Id */
/* $Id$ */
table.views-entry {
margin: 2px 0;
......@@ -40,7 +40,7 @@ body form#views-ui-list-views-form {
top: .65em;
}
.advanced-help-link {
.views-entry .advanced-help-link {
position: relative;
top: 2px;
padding-right: 3px;
......
<!-- $Id$ -->
@todo text needed
\ No newline at end of file
<!-- $Id$ -->
@todo text needed
\ No newline at end of file
<!-- $Id$ -->
@todo text needed
\ No newline at end of file
<!-- $Id$ -->
@todo text needed
\ No newline at end of file
<!-- $Id$ -->
@todo text needed
\ No newline at end of file
<!-- $Id$ -->
@todo text needed
\ No newline at end of file
<!-- $Id$ -->
<p>Displays tell Views where the output should go. By adding a display to a View, you can have your view appear as a page, or as a block, or even as an attachment to a different display on the view.</p>
<p>Each display can have its own settings, but when it's created, a display will take all of its settings from the <strong>default display</strong> which all Views must have. For most settings, there is an <strong>override</strong> button that will override that single setting for the current display.</p>
<p>Please keep in mind that when you are editing a setting on a display that is
not overridden, then by default you are editing that for all displays.</p>
<p>For <strong>fields</strong>, <strong>arguments</strong>, <strong>sorts</strong>, <strong>filters</strong> and <strong>relationships</strong>, you can only override <em>all</em> of them or none of them. To do this, click on the header for the filters or the rearrange button. Once you override, the display will then have its own copies of the fields/filters/etc and changes to the defaults will not be reflected on your display.
\ No newline at end of file
<!-- $Id$ -->
@todo text needed
\ No newline at end of file
<!-- $Id$ -->
@todo text needed
\ No newline at end of file
<!-- $Id$ -->
@todo text needed
\ No newline at end of file
<!-- $Id$ -->
@todo text needed
\ No newline at end of file
<!-- $Id$ -->
@todo text needed
\ No newline at end of file
<!-- $Id$ -->
<p>The <strong>view type</strong> describes how this view is stored; Views is capable of having
Views entirely in code that are not in the database. This allows modules to
easily ship with Views built in, and it allows you to create a module to
......
; $Id$
[view-type]
title = "View types"
file = view-type
\ No newline at end of file
[display]
title = "Displays"
[display-default]
title = "Default display"
parent = display
weight = -20
[display-page]
title = "Page display"
parent = display
weight = -15
[display-block]
title = "Block display"
parent = display
weight = -10
[display-attachment]
title = "Attachment display"
parent = display
[display-feed]
title = "Feed display"
parent = display
[argument]
title = "Arguments"
[field]
title = "Fields"
[sort]
title = "Sorts"
[filter]
title = "Filters"
[relationship]
title = "Relationships"
[style]
title = "View output styles"
\ No newline at end of file
......@@ -941,6 +941,14 @@ function template_preprocess_views_ui_edit_tab(&$vars) {
$vars['categories'] = $categories;
// Add a help icon
if (isset($plugin['help topic'])) {
$vars['display_help_icon'] = theme('advanced_help_topic', $plugin['module'], $plugin['help topic']);
}
else {
$vars['display_help_icon'] = '';
}
// Fetch style plugin info because it has some effect on how/what we render.
$style_plugin = $display->handler->get_plugin();
......@@ -1054,6 +1062,7 @@ function template_preprocess_views_ui_edit_item(&$vars) {
}
$vars['fields'] = $fields;
$vars['item_help_icon'] = theme('advanced_help_topic', 'views', $type);
}
/**
......
......@@ -26,6 +26,7 @@ function views_views_plugins() {
'use pager' => TRUE,
'use more' => TRUE,
'accept attachments' => TRUE,
'help topic' => 'display-default',
),
'page' => array(
'title' => t('Page'),
......@@ -37,6 +38,7 @@ function views_views_plugins() {
'use pager' => TRUE,
'accept attachments' => TRUE,
'admin' => t('Page'),
'help topic' => 'display-page',
),
'block' => array(
'title' => t('Block'),
......@@ -49,6 +51,7 @@ function views_views_plugins() {
'use more' => TRUE,
'accept attachments' => TRUE,
'admin' => t('Block'),
'help topic' => 'display-block',
),
'attachment' => array(
'title' => t('Attachment'),
......@@ -56,6 +59,7 @@ function views_views_plugins() {
'handler' => 'views_plugin_display_attachment',
'theme' => 'views_view',
'use ajax' => TRUE,
'help topic' => 'display-attachment',
),
'feed' => array(
'title' => t('Feed'),
......@@ -66,6 +70,7 @@ function views_views_plugins() {
'use pager' => FALSE,
'accept attachments' => FALSE,
'admin' => t('Feed'),
'help topic' => 'display-feed',
),
),
'style' => array(
......@@ -186,6 +191,7 @@ function views_discover_plugins() {
continue;
}
foreach ($info as $plugin => $def) {
$def['module'] = $module_dir;
if (isset($def['theme']) && !isset($def['path'])) {
$def['path'] = $path;
$def['file'] = $file;
......
......@@ -9,6 +9,7 @@
<?php print $rearrange; ?>
<?php print $add; ?>
<div class="views-category-title<?php if ($overridden) { print ' overridden'; }?>">
<?php print $item_help_icon; ?>
<?php print $title; ?>
</div>
......
......@@ -9,6 +9,7 @@
<?php // top section ?>
<div class="top">
<div class="inside">
<?php print $display_help_icon; ?>
<?php print $remove ?>
<span class="display-title">
<?php print $title; ?>
......
......@@ -5,39 +5,41 @@
* Template for the primary view editing window.
*/
?>
<?php if ($locked): ?>
<div class="view-locked">
<?php print t('This view is locked by user !user, and may not be modified. This lock is !age old. Click here to !break.', array('!user' => $locked, '!age' => $lock_age, '!break' => $break)); ?>
</div>
<?php endif; ?>
<div class="views-basic-info<?php if (!empty($view->changed)) { print " changed"; }?>">
<?php if (!is_numeric($view->vid)): ?>
<div class="view-changed view-new"><?php print t('New view'); ?></div>
<?php else: ?>
<div class="view-changed"><?php print t('Changed view'); ?></div>
<div class="views-edit-view">
<?php if ($locked): ?>
<div class="view-locked">
<?php print t('This view is locked by user !user, and may not be modified. This lock is !age old. Click here to !break.', array('!user' => $locked, '!age' => $lock_age, '!break' => $break)); ?>
</div>
<?php endif; ?>
<div class="views-quick-links">
<?php print $quick_links ?>
<div class="views-basic-info<?php if (!empty($view->changed)) { print " changed"; }?>">
<?php if (!is_numeric($view->vid)): ?>
<div class="view-changed view-new"><?php print t('New view'); ?></div>
<?php else: ?>
<div class="view-changed"><?php print t('Changed view'); ?></div>
<?php endif; ?>
<div class="views-quick-links">
<?php print $quick_links ?>
</div>
<?php print t('View %name, displaying items of type <strong>@base</strong>.',
array('%name' => $view->name, '@base' => $base_table)); ?>
</div>
<?php print t('View %name, displaying items of type <strong>@base</strong>.',
array('%name' => $view->name, '@base' => $base_table)); ?>
</div>
<?php print $tabs; ?>
<?php print $tabs; ?>
<div id="views-ajax-form">
<div id="views-ajax-title">
<?php // This is initially empty ?>
</div>
<div id="views-ajax-pad">
<?php /* This is sent in because it is also sent out through settings and
needs to be consistent. */ ?>
<?php print $message; ?>
<div id="views-ajax-form">
<div id="views-ajax-title">
<?php // This is initially empty ?>
</div>
<div id="views-ajax-pad">
<?php /* This is sent in because it is also sent out through settings and
needs to be consistent. */ ?>
<?php print $message; ?>
</div>
</div>
</div>
<?php print $save_button ?>
<?php print $save_button ?>
<div id='views-live-preview'>
<?php print $preview ?>
</div>
\ No newline at end of file
<div id='views-live-preview'>
<?php print $preview ?>
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment