/[drupal]/contributions/modules/outline/outline.module
ViewVC logotype

Log of /contributions/modules/outline/outline.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Tag:

Revision 1.58 - (view) (download) (as text) (annotate) - [select for diffs]
Mon May 4 21:35:56 2009 UTC (6 months, 3 weeks ago) by cvsadmin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.57: +1 -28 lines
Diff to previous 1.57
task #350303: Move license and donation information to places fitting with cvs.drupal.org guidelines http://drupal.org/node/439226

Revision 1.57 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Apr 7 09:11:14 2009 UTC (7 months, 2 weeks ago) by augustin
Branch: MAIN
Changes since 1.56: +5 -5 lines
Diff to previous 1.56
Removing decimal weights.

Revision 1.56 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Apr 7 08:25:51 2009 UTC (7 months, 2 weeks ago) by augustin
Branch: MAIN
Changes since 1.55: +15 -66 lines
Diff to previous 1.55
support text.

Revision 1.55 - (view) (download) (as text) (annotate) - [select for diffs]
Sat Apr 4 02:06:04 2009 UTC (7 months, 3 weeks ago) by augustin
Branch: MAIN
Changes since 1.54: +9 -9 lines
Diff to previous 1.54
#385872   Better wording, edit option on /admin/content/book . Patch and idea by iva2k. Thanks.

Revision 1.54 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Feb 27 03:12:41 2009 UTC (8 months, 3 weeks ago) by augustin
Branch: MAIN
Changes since 1.53: +5 -2 lines
Diff to previous 1.53
Bugfix: remove notice when creating a new node that is not outlined at all.

Revision 1.53 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Dec 31 05:10:59 2008 UTC (10 months, 3 weeks ago) by augustin
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52
The module is GPL.

Revision 1.52 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 28 12:08:07 2008 UTC (11 months, 3 weeks ago) by augustin
Branch: MAIN
CVS Tags: DRUPAL-6--0-0-ALPHA2
Changes since 1.51: +4 -5 lines
Diff to previous 1.51
Breadcrumbs do not need array_reverse()!

Revision 1.51 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 28 12:01:14 2008 UTC (11 months, 3 weeks ago) by augustin
Branch: MAIN
Changes since 1.50: +49 -17 lines
Diff to previous 1.50
* #295521 User specific books:
  The administrator can limit some books to some specified authors. Only nodes by those authors will be accepted in such books.

  For this, we created a new function outline_check_author_perm() to check for such authorship restrictions.

Revision 1.50 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 28 10:47:26 2008 UTC (11 months, 3 weeks ago) by augustin
Branch: MAIN
Changes since 1.49: +46 -19 lines
Diff to previous 1.49
#295521
First half of the user-specific outlines (i.e. books limited to one or few authors).
With this patch, we can configure the settings for each book, but those settings have no effect yet.

Revision 1.49 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Nov 28 07:12:30 2008 UTC (11 months, 3 weeks ago) by augustin
Branch: MAIN
Changes since 1.48: +7 -7 lines
Diff to previous 1.48
Code style with ==.

Revision 1.48 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 27 05:43:49 2008 UTC (11 months, 3 weeks ago) by augustin
Branch: MAIN
Changes since 1.47: +9 -1 lines
Diff to previous 1.47
Add breadcrumbs to the admin permission page.

Revision 1.47 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 27 05:06:57 2008 UTC (11 months, 3 weeks ago) by augustin
Branch: MAIN
Changes since 1.46: +5 -1 lines
Diff to previous 1.46
bugfix: properly delete past revisions.

Changelog also refers to previous patch:
* Many bugfixes related to versioning.
  Regardless of the user permissions with regard to book outlining and outline settings,
  new versions of the node are properly saved, and versions can be deleted or reverted.

Revision 1.46 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Nov 27 04:54:55 2008 UTC (11 months, 3 weeks ago) by augustin
Branch: MAIN
Changes since 1.45: +89 -37 lines
Diff to previous 1.45
Many bugfixes related to versioning:
- When a user edits a node without the proper permission to affect the book outline and the outline settings,
  we must add the proper default values so that they will be saved together with the new node version.
- Fix a couple of places where the version id was not properly set, and the outline settings were not taken into account.

Revision 1.45 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Nov 26 04:46:32 2008 UTC (11 months, 4 weeks ago) by augustin
Branch: MAIN
Changes since 1.44: +22 -2 lines
Diff to previous 1.44
Bugfix: When a user without sufficient outline permission goes to node/add/$type,
  $node->outline will not be set at all, although the user might be allowed to add content
  to some specific books.
  Check the options available for this user and add the book+outline form items if applicable.

Revision 1.44 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Nov 26 03:39:08 2008 UTC (11 months, 4 weeks ago) by augustin
Branch: MAIN
Changes since 1.43: +8 -1 lines
Diff to previous 1.43
Bugfix: set default form elements for users without proper permission.

Revision 1.43 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Nov 26 03:03:23 2008 UTC (11 months, 4 weeks ago) by augustin
Branch: MAIN
Changes since 1.42: +448 -28 lines
Diff to previous 1.42
Big patch coming!
  #295521 The permission "add content to books" can now be overruled on a per book basis.
  We can set which roles and which individual users are allowed to add content in each book.
  For this we created a new permission setting page for each book (see admin > Content management > Books > edit permissions).
  The setting affect the 'add child page' links and the node form.

Revision 1.42 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Oct 24 06:42:26 2008 UTC (13 months ago) by augustin
Branch: MAIN
Changes since 1.41: +93 -69 lines
Diff to previous 1.41
 A book cover has now two TOC_depth settings: one for the book cover itself, and one for all child pages.

Revision 1.41 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Sep 30 08:56:42 2008 UTC (13 months, 3 weeks ago) by augustin
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40
Code style fix.

Revision 1.40 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Sep 30 08:42:33 2008 UTC (13 months, 3 weeks ago) by augustin
Branch: MAIN
Changes since 1.39: +4 -3 lines
Diff to previous 1.39
Collapsible field setting per user.

Revision 1.39 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 20 06:27:28 2008 UTC (15 months ago) by augustin
Branch: MAIN
Changes since 1.38: +7 -1 lines
Diff to previous 1.38
Complete code documentation in _outline_update_outline().

Revision 1.38 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 20 05:39:45 2008 UTC (15 months ago) by augustin
Branch: MAIN
Changes since 1.37: +32 -3 lines
Diff to previous 1.37
#297257 Bugfix: editing nodes in different scenarios (whether they were previously outlined or not, etc.)

Revision 1.37 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Aug 14 07:53:24 2008 UTC (15 months, 1 week ago) by augustin
Branch: MAIN
CVS Tags: DRUPAL-6--0-0-alpha1
Changes since 1.36: +3 -3 lines
Diff to previous 1.36
#256355 : fix add_child url.

Revision 1.36 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Aug 14 04:59:55 2008 UTC (15 months, 1 week ago) by augustin
Branch: MAIN
Changes since 1.35: +5 -5 lines
Diff to previous 1.35
Bugfix: outlining a pre-existing node which was not outlined before.

Revision 1.35 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Aug 14 04:49:54 2008 UTC (15 months, 1 week ago) by augustin
Branch: MAIN
Changes since 1.34: +70 -40 lines
Diff to previous 1.34
* Fixed the form in the outline tab. The outline options set by this module can now be updated at the 'outline' tab.

Revision 1.34 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 13 12:35:58 2008 UTC (15 months, 1 week ago) by augustin
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33
Remove notice.

Revision 1.33 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 13 12:30:16 2008 UTC (15 months, 1 week ago) by augustin
Branch: MAIN
Changes since 1.32: +85 -6 lines
Diff to previous 1.32
Add support section in admin settings.

Revision 1.32 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 13 11:44:03 2008 UTC (15 months, 1 week ago) by augustin
Branch: MAIN
Changes since 1.31: +23 -24 lines
Diff to previous 1.31
Moving hooks in alphabetical order.

Revision 1.31 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Aug 13 10:47:48 2008 UTC (15 months, 1 week ago) by augustin
Branch: MAIN
Changes since 1.30: +205 -7 lines
Diff to previous 1.30
* Added the outline navigation block at the bottom of a node. This outline is overriding the similar book navigation block.
  Thus, we can use our custom TOC depth settings to modify the look of the outline.
* Removed outline.css. Replaced it with new stylesheet.css (I don't want all my files to start with outline*).
* Added Outline-navigation.tpl.php, which is a slightly modified copy of book-navigation.tpl.php


: Modified Files:
: 	CHANGELOG.txt outline.install outline.module
: Added Files:
: 	Outline-navigation.tpl.php stylesheet.css
: Removed Files:
: 	outline.css

315 line patch.

Revision 1.30 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 18 07:40:39 2008 UTC (19 months, 1 week ago) by augustin
Branch: MAIN
Changes since 1.29: +5 -1 lines
Diff to previous 1.29
Specify the node type in the text of the link 'add child page'.

Revision 1.29 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 18 07:19:27 2008 UTC (19 months, 1 week ago) by augustin
Branch: MAIN
Changes since 1.28: +9 -2 lines
Diff to previous 1.28
Make sure that updating any node works with or without revisions.

Revision 1.28 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 18 05:49:56 2008 UTC (19 months, 1 week ago) by augustin
Branch: MAIN
Changes since 1.27: +16 -13 lines
Diff to previous 1.27
Fix ahah handling.

Revision 1.27 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Apr 18 04:12:20 2008 UTC (19 months, 1 week ago) by augustin
Branch: MAIN
Changes since 1.26: +274 -1334 lines
Diff to previous 1.26
* The upcoming Drupal 6 version of outline.module is a *complete rewrite* of the module.

* The Drupal 6 version of outline.module is now *dependent on* core's book.module,
instead of being a replacement module, like in Drupal 5.

* The tables {outline_nodes} and {outline_volume} are replaced by
{outline_node}, {outline_book}, {outline_perm} and {outline_types}
to accomodate for all the features planned in the upcoming release.

* There is a migration path from the Drupal 5 DB schema. The migration is not yet complete and needs testing.

* We replace the book.module javascript AHAH callback with our own, so we can customize the return value (add form elements).

* Any change in the outline settings at the node level is saved in the revision if 'create revision' is checked.

* The form elements to set the child page node, and the TOC depth view are directly inserted on the form node,
alongside book.module's form elements.

* The link 'add child node' is customized to take into account the child node type setting.

Revision 1.26.2.2 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Apr 5 13:44:10 2007 UTC (2 years, 7 months ago) by augustin
Branch: DRUPAL-5
Changes since 1.26.2.1: +8 -7 lines
Diff to previous 1.26.2.1 , to branch point 1.26 , to next main 1.58
Bugfix: errors in outline admin edit pages. node object != volume outline object.

Revision 1.26.2.1 - (view) (download) (as text) (annotate) - [select for diffs]
Thu Apr 5 13:22:01 2007 UTC (2 years, 7 months ago) by augustin
Branch: DRUPAL-5
Changes since 1.26: +3 -2 lines
Diff to previous 1.26
Bugfix: in the outline listing, the links were wrong because $nid != $volume_id

Revision 1.26 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Mar 21 13:01:31 2007 UTC (2 years, 8 months ago) by augustin
Branch: MAIN
CVS Tags: DRUPAL-5--1-0
Branch point for: DRUPAL-5
Changes since 1.25: +4 -3 lines
Diff to previous 1.25
Bugfix: fixing the outline view in the admin pages (admin/content/outline/nnn).

Revision 1.25 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Jan 26 14:28:57 2007 UTC (2 years, 9 months ago) by augustin
Branch: MAIN
Changes since 1.24: +3 -2 lines
Diff to previous 1.24
Fix: find the next top-level node in the outline.

Revision 1.24 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jan 24 15:37:31 2007 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Changes since 1.23: +4 -4 lines
Diff to previous 1.23
Fixed the volume navigation: select only those nodes which belong to the same volume.

Revision 1.23 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jan 24 15:13:38 2007 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Changes since 1.22: +30 -32 lines
Diff to previous 1.22
Fixed the volume navigation (prev - up - next).

Revision 1.22 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jan 24 12:56:02 2007 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Changes since 1.21: +5 -5 lines
Diff to previous 1.21
Bugfix: the SQL queries were not adequately updated after the change of schema, in the volume navigation.

Revision 1.21 - (view) (download) (as text) (annotate) - [select for diffs]
Wed Jan 24 12:47:06 2007 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Changes since 1.20: +13 -12 lines
Diff to previous 1.20
#112332: outline.module does not define any node type, and the $volume_id is not related to $node->nid.
This way the logic is different in quite a few places.
This patch corrects what have become bugs given the new logic, when setting the node outline options.

Revision 1.20 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 23 15:19:16 2007 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Changes since 1.19: +258 -104 lines
Diff to previous 1.19
#112029
A first big patch, after changing the DB schema to two tables.

Main changes:
* A volume is not a node, but the definition of a group of nodes.
* Added a volume creation/update form in the volume_outline tab.
* Since a volume is potentially independent from any node, I added a "title" field in {outline_volume}
* Created <default> setting for nodes in volume for child_node_type and toc_depth : the volume's default value will be used.
* Much of the logic is different from the one used with one table only.

TODO:
* volume navigation is broken.
* Test all the forms in the volume_outline tab. I have noticed some interference when updating a node, another node from another volume got affected!

Revision 1.19 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 23 05:16:23 2007 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Changes since 1.18: +5 -6 lines
Diff to previous 1.18
Small code style fixes.

Revision 1.18 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 15 04:43:59 2007 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Changes since 1.17: +4 -4 lines
Diff to previous 1.17
#109416: fixes naming conflict with the book module.

Revision 1.17 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 15 04:37:44 2007 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Changes since 1.16: +8 -8 lines
Diff to previous 1.16
#109414: fix form naming conflict with og.module.

Revision 1.16 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 15 04:19:14 2007 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15
#109409
* created 'administer outlines' permission.
* fixed the administer outline settings permission.

Revision 1.15 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 15 04:15:29 2007 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Changes since 1.14: +8 -10 lines
Diff to previous 1.14
#109409. Fixed:
* wrong indentation in settings.
* location of the setting page.
* we do not need to define a default node type.
  The cover page for each volume can be of any type, depending on the use made of the volume.

Revision 1.14 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 15 03:33:00 2007 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Changes since 1.13: +91 -91 lines
Diff to previous 1.13
#106052 We are back to a two-table structure, so that we can define the attributes of a whole volume.

Revision 1.13 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 8 02:46:21 2007 UTC (2 years, 10 months ago) by pwolanin
Branch: MAIN
Changes since 1.12: +9 -5 lines
Diff to previous 1.12
fix some access issues

Revision 1.12 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 8 01:01:03 2007 UTC (2 years, 10 months ago) by pwolanin
Branch: MAIN
Changes since 1.11: +4 -5 lines
Diff to previous 1.11
fixed problem with node edit form

Revision 1.11 - (view) (download) (as text) (annotate) - [select for diffs]
Mon Jan 8 00:36:10 2007 UTC (2 years, 10 months ago) by pwolanin
Branch: MAIN
Changes since 1.10: +27 -28 lines
Diff to previous 1.10
naviagation elements working

Revision 1.10 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jan 7 21:43:23 2007 UTC (2 years, 10 months ago) by pwolanin
Branch: MAIN
Changes since 1.9: +17 -16 lines
Diff to previous 1.9
code for updating working better

Revision 1.9 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jan 7 21:18:15 2007 UTC (2 years, 10 months ago) by pwolanin
Branch: MAIN
Changes since 1.8: +37 -13 lines
Diff to previous 1.8
code for adding to outline working better

Revision 1.8 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jan 7 20:50:46 2007 UTC (2 years, 10 months ago) by pwolanin
Branch: MAIN
Changes since 1.7: +166 -155 lines
Diff to previous 1.7
hey, some of this code even works...

Revision 1.7 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jan 7 17:59:44 2007 UTC (2 years, 10 months ago) by pwolanin
Branch: MAIN
Changes since 1.6: +108 -186 lines
Diff to previous 1.6
more work on the code

Revision 1.6 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jan 7 04:38:37 2007 UTC (2 years, 10 months ago) by pwolanin
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5
fix parse error

Revision 1.5 - (view) (download) (as text) (annotate) - [select for diffs]
Sun Jan 7 04:30:00 2007 UTC (2 years, 10 months ago) by pwolanin
Branch: MAIN
Changes since 1.4: +320 -464 lines
Diff to previous 1.4
partial update- NOT TESTED

Revision 1.4 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 2 13:22:29 2007 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Changes since 1.3: +15 -18 lines
Diff to previous 1.3
#106341 Now the outline tab is present on every node, regardless of node type,
so we can remove the sql query checking for whatever it was checking. :-/


Also, a major difference with the original book.module PATCH,
it is that there is not book_cover node type specifically declared.
The volume cover will now be the first node to be top-level within the volume.
There could be more than one node at the top level within the volume.

Of course, the webmaster can have only one top-level node for a volume,
and that top level node be different from the other nodes within the module:
this way the volume has a specific volume cover.

And a high level of flexibility is maintained.

Revision 1.3 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 2 13:03:00 2007 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Changes since 1.2: +52 -53 lines
Diff to previous 1.2
#106338 Change function names book -> outline.
Minimum changes so that book.module and outline.module can be enabled at the same time.

Revision 1.2 - (view) (download) (as text) (annotate) - [select for diffs]
Tue Jan 2 09:06:20 2007 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Changes since 1.1: +9 -9 lines
Diff to previous 1.1
#106047 change hook() prefixes book_ -> outline_

Revision 1.1 - (view) (download) (as text) (annotate) - [select for diffs]
Fri Dec 29 06:12:17 2006 UTC (2 years, 10 months ago) by augustin
Branch: MAIN
Creation of a new outline module based on book.module.
The aim is to strip the book node type definition, but to keep and improve the outline function,
based on beginner's and pwolanin's patch here: http://drupal.org/node/65319 and http://drupal.org/node/81226 .
TODO:
  replace book_hooks() into outline_hooks().
  replace {book} into {volume}
  remove book node type definition
  make outline function more general.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a

Sort log by:

  ViewVC Help
Powered by ViewVC 1.1.2