[MGNLCAT-147] Remove dependency to STK Created: 13/Jan/15  Updated: 16/Apr/19  Resolved: 11/Feb/15

Status: Closed
Project: Magnolia Categorization Module
Component/s: None
Affects Version/s: None
Fix Version/s: 2.4

Type: Task Priority: Neutral
Reporter: Philip Mundt Assignee: Philip Mundt
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
dependency
depends upon MGNLRSSAGG-189 Remove implicit dependency to STK Closed
depends upon MAGNOLIA-6042 Add TemplateCategory and related Util... Closed
depends upon MAGNOLIA-6052 Add method to templating functions to... Closed
depends upon MTE-2 Add pager / pagination model Closed
is depended upon by MGNLSTK-1461 Conditionally bootstrap categorizatio... Closed
Template:
Acceptance criteria:
Empty
Task DoR:
Empty
Release notes required:
Yes
Epic Link: Extract STK functionality

 Description   

It should not be a requirement to have STK installed to be able to use categorization.

Currently there are the following "dependencies"
  • info.magnolia.module.categorization.commands.CategoryGeneratorCommand depends on MAGNOLIA-6042
  • info.magnolia.module.categorization.functions.CategorizationTemplatingFunctions depends on MAGNOLIA-6042 + STKTemplatingFunctions
  • info.magnolia.module.categorization.model.CategoryOverviewModel depends on STKPager
    • Use Pagination from MTE-2 instead
  • info.magnolia.module.categorization.syndication.CategorySyndicator depends on MAGNOLIA-6042 + STKTemplatingFunctions
Other tasks
  • Make former stk components (stkCategoryOverview, stkRelatedCategoriesLinkList) and stk page (stkCategoryOverview) available in this module
  • init.inc.ftl from STK can't be used anymore
    • Create simplified version in this module
  • Remove renderType=stk from existing components:
    • catCloud
    • catCloudWide
    • catCloudExtras
    • categoryRSSFeed
  • Component template categoryOverview uses functions from STKTemplatingFunctions
    • ... stkfn.abbreviateString(item.abstract!, 100) ... (depends on MAGNOLIA-6052)
    • ... stkfn.getAssetLink(item, "teaserImg", "teaser") ... use DamTemplatingFunctions#getAssetLinkForId(String, String) instead (see: MGNLDAM-527)
Follow up

Above changes require follow-up changes in STK – in particular adding removed STK-components from this module to STK itself and ideally extending the ones from categorization.

Notes

This will break binary compatibility of some classes.



 Comments   
Comment by Philip Mundt [ 11/Feb/15 ]

There is one remaining task in categorization's getExtraInstallTasks that has to be moved to STK in order to get rid of a migration delta.

tabCategorization has to be added to the dialog of stkArticleIntro (also see MGNLSTK-1461).

Comment by Philip Mundt [ 11/Feb/15 ]

Removed task and added bootstrap to STK (see MGNLSTK-1461).

Generated at Mon Feb 12 04:43:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.