[ 
https://issues.apache.org/jira/browse/ROL-1353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13475163#comment-13475163
 ] 

Glen Mazza commented on ROL-1353:
---------------------------------

Note, related to this issue, the template guide lists the second and third 
parameters in reverse order from what's in weblog.vm for the following two 
methods, causing users to inadvertently be giving the values for one for the 
other: 

weblog.vm:
#macro(showBookmarkLinksList $folderObject $subfolders $expanding )
#macro(showWeblogCategoryLinksList $categoryObject $subcats $expanding )

I think weblog.vm has it right, having $expanded as the third param, because 
it's largely subordinate to the second param.

The template guide ( weblogger-docs/templateguide/roller-template-guide.odt) 
needs to be updated to swap the second and third parameters.  It's a binary 
file, so I can't submit a patch but this what it should look like after it's 
done:

#showBookmarkLinksList($folderObj $subfolders $expanding)
Arguments:
        $folderObj: Folder object from which bookmarks are to be shown
        $subfolders: Set to true to recusively show Folder object contents
        $expanding: Set to true to show a JavaScript-expandable tree of folders 
and bookmarks

#showWeblogCategoryLinksList($categoryObj $subcats $expanding)
Arguments:
        $categoryObj: Category object containing category objects to be 
displayed
        $subcats:  Set to true to recusively show sub-Category object contents
        $expanding: Set to true to show a JavaScript-expandable tree of folders 
and bookmarks

                
> #showWeblogCategoryLinksList($rootCategory true true) displays value 
> "categoryObject.name"
> ------------------------------------------------------------------------------------------
>
>                 Key: ROL-1353
>                 URL: https://issues.apache.org/jira/browse/ROL-1353
>             Project: Roller
>          Issue Type: Bug
>          Components: Weblog Categories
>    Affects Versions: 3.0
>         Environment: Roller Weblogger 3.0-incubating (20061103094907:dave)
>            Reporter: Robert Eister
>            Assignee: Roller Unassigned
>         Attachments: ROL1353a.patch
>
>
> When #showWeblogCategoryLinksList($rootCategory true true) is set, it 
> displays value "categoryObject.name" when that category is selected.
> To reproduce:
> - Add a child category
> - Go to blog
> - Select any single-level category or a child category
> - Display of category name will now be replaced with "categoryObject.name"
> However if a parent category name is selected, it's name still displays 
> properly.  This seems to be the only instance that works.
> All permutations of #showWeblogCategoryLinksList($rootCategory <true/false> 
> <true/false>) except #showWeblogCategoryLinksList($rootCategory false false) 
> behave this way.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to