Revision history for AdvancedCategoryAction


Revision [18959]

Last edited on 2008-01-28 00:13:28 by DavePreston [Modified links pointing to docs server]
Additions:
>>This is the development page for a "more advanced" version of the [[Docs:CategoryActionInfo category action]]. The version presented on this page is a further development of the beta version already running on this site (with as its main feature a more structural and readable columnar layout), borrows ideas from NilsLindenberg's PageAndCategoryDivisionInACategory, while adding new functionality and flexibility.
Deletions:
>>This is the development page for a "more advanced" version of the [[CategoryActionInfo category action]]. The version presented on this page is a further development of the beta version already running on this site (with as its main feature a more structural and readable columnar layout), borrows ideas from NilsLindenberg's PageAndCategoryDivisionInACategory, while adding new functionality and flexibility.


Revision [15377]

Edited on 2006-10-03 16:37:21 by DavePreston [minor spelling correction]
Additions:
~~~-choose a single category to show related pages for with the **##cat##** parameter (the current page must actually be a member of that category); default is **all** categories the **current page** belongs to
Deletions:
~~~-choose a single category to show related pages for with the **##cat##** parameter (the current page must actually be a memeber of that category); default is **all** categories the **current page** belongs to


Revision [11208]

Edited on 2005-09-28 02:10:22 by MovieLady [added some code changes to add spaces in CamelCase words & remove "Category" all the time in lists]
Additions:
=== Minor code modifications ===
Thought I'd toss these changes up here just in case anyone else is trying to make similar adjustments.
I changed the code so it would remove "Category" when it appears in front of a category name for show="all|categories|pages" (it doesn't work yet for show="members", though I would like to adjust that as well):
line 139:
%%(php;0)
to:
%%(php;0)
Then, to put spaces in CamelCase words in category displays, I made these changes to the code (requires UrlBeautify changes):
line 117:
%%(php;0)
to:
%%(php;0)
$list[] = $wakka->Link($member,"",addspaceincamelcase($member));
lines 139 and 143:
%%(php;0)
to:
%%(php;0)
$list[] = $wakka->Link($member,'',preg_replace('/^Category/','',addspaceincamelcase($member)));
lines 167 and 172:
%%(php;0)
to:
%%(php;0)
$list[] = $wakka->Link($member,"",addspaceincamelcase($member));
--MovieLady


Revision [9162]

Edited on 2005-06-12 19:03:36 by JavaWoman [ading link]
Additions:
~-GenerateUniqueId


Revision [9160]

Edited on 2005-06-12 19:01:26 by JavaWoman [ref to alpha feature]
Additions:
//Installed as an **[[WikkaBetaFeatures alpha feature]]** on this server as of 2005-06-12.//


Revision [8990]

Edited on 2005-06-08 11:11:32 by JavaWoman [added link]
Additions:
//official//
~-CategoryActionInfo


Revision [8988]

Edited on 2005-06-08 11:05:46 by JavaWoman [completing features]
Additions:
~-Select a **category**:
~~~-choose what category to show members of with the **##cat##** parameter; default is the **current category page**
~~~-choose a single category to show related pages for with the **##cat##** parameter (the current page must actually be a memeber of that category); default is **all** categories the **current page** belongs to
~-Template pages (meant only to clone from and thus not real "content") are filtered out by default (except for a category for templates); override this with the **##inctpl##** parameter
~-The assumption is that categories are named with 'Category' at the start; if not, this can be indicated with the **##catnames##** parameter; when 0, this will automatically select **##show##** = 'members' and disable other features like "related pages" that depend on this naming convention
~-Output is wrapped in a div with class "categorycols", "categorylist" or "categoryrel" as an easy hook for styling; use the **##class##** parameter to add extra classes
~-The automatically-generated (main) heading (also with an id) can be overridden with the **##head##** parameter
~-Backwards-compatible with the version 1.1.6.0 parameters (##page##, ##col## and ##compact##); the new parameters override the old ones if both are present
Deletions:
//incomplete - see docblock for now//
~-**Category** selection:
~~~-choose what category to show members of with the **##cat##** parameter; default is the current category page
~~~-choose a single category to show related pages for with the **##cat##** parameter (the current page must actually be a memeber of that category); default is **all** categories the current page belongs to
~-//more...//


Revision [8956]

Edited on 2005-06-08 08:41:52 by JavaWoman [features (partial)]
Additions:
//incomplete - see docblock for now//
~-Choose output **format** with the **##type##** parameter:
~~//category context://
~~~-##cols## produces a columnar output, with columns constructed as left-floated ##div##s
~~~-##list## produces an unordered list
~~//page context://
~~~-##related## is a special option that displays "related pages": pages in the same categories as the **current** page; this automatically sets some other options, such as list-format output and showing only pages---
~-Choose **what** to show with the **##show##** parameter:
~~-##all## shows both subcategories and pages, but separated
~~-##categories## shows subcategories only
~~-##pages## shows member pages only
~~-##members## shows all, but without separation between subcategories and pages (automatic when ##catnames## is off (0) and the operation of the 1.1.6.0. category action)
~-**Category** selection:
~~//category context://
~~~-choose what category to show members of with the **##cat##** parameter; default is the current category page
~~//page context://
~~~-choose a single category to show related pages for with the **##cat##** parameter (the current page must actually be a memeber of that category); default is **all** categories the current page belongs to
~-//more...//
===Syntax===
""{{category [cat="categoryname"] [show="all|categories|pages|members"] [type="cols|list|related"] [cols="n"] [catnames="0|1"] [inctpl="0|1"] [class="class"] [head="main heading"]}}""
* parameter must be specified in order to list category members (otherwise the action will revert to
* @input string $show optional: all|categories|pages|members; default: all; or members if $catnames
===##""makeMemberCols()""##===
Deletions:
//to follow - see docblock for now//
* parameter must be specified in order to list category members (otherwise teh action will revert to
* @input string $show optional: all|categories|pages|members; default: all; or memberrs if $catnames
===##""makeMemberCols()""===


Revision [8949]

Edited on 2005-06-08 00:05:31 by JavaWoman [layout]
Additions:
===##""makeMemberList()""##===
Deletions:
===##""makeMemberList()""===


Revision [8946]

Edited on 2005-06-07 23:59:06 by JavaWoman [minor]
Additions:
~-AdvancedBacklinksAction
//Note that this is still 'somewhat' beta code and currently contains (commented out) some debug code; this will be cleaned up later.//
Deletions:
~-""AdvancedBacklinksAction"" //(follows)//
//Note that this is still 'somewhat' beta code and currently contains (commented out) some debug code; this weill be cleaned up later.//


Revision [8945]

Edited on 2005-06-07 23:37:15 by JavaWoman [initial]
Additions:
>>This is the development page for a "more advanced" version of the [[CategoryActionInfo category action]]. The version presented on this page is a further development of the beta version already running on this site (with as its main feature a more structural and readable columnar layout), borrows ideas from NilsLindenberg's PageAndCategoryDivisionInACategory, while adding new functionality and flexibility.
In fact, it takes the possibilities of the current category system to its practical limits in what it is capable of for **category navigation**. While a [[CategorySystemOverhaul category system overhaul]] definitely will be needed to support new functionality, this should help to tide us over until we have designed and implemented a new system.::c::
This code completely replaces the current **##./actions/category.php##** file (make a backup if you want to try it out). Although it uses some new parameters it is still completely compatible with the current (1.1.6.0) category action; the new parameters take precence over the old ones though.
//Note that this is still 'somewhat' beta code and currently contains (commented out) some debug code; this weill be cleaned up later.//
Deletions:
>>This is the development page for a "more advanced" version of the [[CategoryActionInfo category action]]. The version presented on this page is a further development of the beta version already running on this site (with as the main feature a more structural columnar layout), borrows ideas from NilsLindenberg's PageAndCategoryDivisionInACategory, while adding new functionality and flexibility.
In fact, it takes the possibilities of the current category system to its practical limits in what it is capable of for category navigation. While a [[CategorySystemOverhaul category system overhaul]] definitely will be needed to support new functionality, this should help to tide us over until we have designed and implemented a new system.::c::
This code completely replaces the current **##./actions/category.php##** file (make a backup if you want to try it out).
//Note that this is still somewhat beta code and currently contains (commented out) some debug code; this weill be cleaned up later.//


Revision [8944]

The oldest known version of this page was created on 2005-06-07 23:15:21 by JavaWoman [initial]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki