categories_event_handler.php

Checkout Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates

Creating "In-Portal" module for versions before 5.0.0.

    • -1893
    • +0
    ./categories_event_handler.php
  1. … 5855 more files in changeset.

Fixes #0000099: Category Name not shown in List and Other pages

INP-84

  1. … 4 more files in changeset.

Fixes #0000103: Applying License to In-Portal and Modules

INS-1

  1. … 255 more files in changeset.

Bug #0000085: Removed back IsMenu = 0 in OnBeforeItemCreate since we actually want have Suggested Categories to be listed in Menus if Admin setup Permissions that users can suggest them in a first place.

INP-73

1. Fixes #0000086: Added IsMenu = 0 during Category Suggestion

2. Corrected current category URL on Category Pending and Category Confirm Pending templates

INP-73

MINN-1

  1. … 2 more files in changeset.

1. Fixes #0000093: Tag <inp2:c_Field ../> returns incorrect info.

2. Fixed in other way: now category is always returned, but when "page" or "-virtual" special is used, then cms page is returned.

INP-79

When list of category items (links, articles, etc.) or categories is displayed in Front-End and parameter "parent_cat_id='0'" was used, then 0 is now replaced with "Content" category ID.

  1. … 1 more file in changeset.

1. Method "kDBEventHandler::StoreSelectedIDs" wasn't returning IDs, given using $direct_ids parameter.

2. Fixes #0000025: Non-root user can't use copy/cut/paste buttons in catalog.

3. Fixed "category status propagate" feature. Now it copies category StatusField value to all it's children. Before it was coping "Status" field value to all it's children, not "StatusField" field value, specified in unit config.

INP-17

  1. … 2 more files in changeset.

1. Fixes 0000031: Convert FCK "Internal Link Pointers" to Real URLs.

2. Fixes 0000032: SQL Error when using FCKEditor to edit textarea data.

3. In edit templates, where HTML isn't allowed, but multi line input is required 'allow_html="0"' added to inp_edit_textarea blocks.

4. Module root categories during installation were incorrectly sorted: "Products, Topics, News, Links" instead of "Links, News, Topics, Products".

5. Fixed "Preview" button in FCKEditor, when editing content blocks:

  • problems with non-latin character encoding in javascript
  • "Preview" button were not visible during content block editing, but was visible during category description editing, where it shouldn't.

    6. Method "CategoriesTagProcessor::_replacePageIds" moved to "CategoryHelper::replacePageIds" and can be used in any place, where required.

    7. Add new field option: "using_fck". When specified, then all "@@ID@@" occurences are replaced with actual structure page urls.

INP-21

INP-22

  1. … 24 more files in changeset.

Fixes #0000006: Left Tree with Sections Fails to Update.

1. Tree also was not refreshed automatically, when "Approve" & "Decline" (changed show in menu status), "Move Up" & "Move Down" (changed priority) toolbar buttons were used.

INP-2

  1. … 3 more files in changeset.

1. #27493 - Admin: Add Item on Advanced View

2. OnCancel event was called on "categories/categories_edit" template instead of "OnCancelEdit" resulting no temporary table was deleted.

3. Method kApplication::ConfigValue fixed. Now if variable value is present, but it has NULL as value, then such variable is not threated as missing and duplicate queries are performed.

TODO: replace all NULL values in ConfigurationValues table with default values based on variable type (0 for checkbox, empty string for text and so on)

4. Now kDBEventHandler::StoreSelectedIDs could also get IDs from new "ids" $event parameter, rather, then from request. Useful, when IDs are changed on kDBEventHandler::CheckPermission method (before actual event call).

5. Method CategoryHelper::getStructureTreeAsOptions added. Method provides ability to get all category structure as options for any dbitem field (like ParentId for categories and CategoryId for category items).

6. Method CustomFieldsEventHandler::_getHiddenFiels fixed. Now it doesn't given warning when editing category item, with no custom fields to show on general tab.

7. Fixed method kCatDBItem::MoveToCat. Now, when category item is in temp mode, then category manipulations are also made in temp tables.

8. Permission checking logic for categories and category items in temp table is changed. Now everything in temp tables for them is allowed. Permissions are checked only when Save button is pressed during main item (not subitem) editing. When user selected 5 items, but he can edit only 2 of them, then other 3 are automatically excluded from item edit form. When all of selected items are excluded, then user gets "no permission" screen. Same with "move up/down", "approve/decline" toolbar buttons.

9. Method CategoriesEventHandler::printChildren && CategoriesEventHandler::getChildren moved to CategoryHelper and now are used by new CategoryHelper::getStructureTreeAsOptions method. Some documentation added for other CategoryHelper methods.

10. Permission debugging information was not available in some of permission checking methods. That's why method kPermissionHelper::finalizePermissionCheck added. Method should be used in any place, when $event status should change to erPERM_FAIL.

11. Column filters on Category Edit -> Custom tab's grid were not working, because of incorrect grid name used (Default instead of SeparateTab).

12. Fixed title preset name in "products/products_access" template (was "pr", but should be "access").

13. Fixed incorrect pagination prefix in some templates.

14. Formatter added for OnSale field in Products table.

15. No permission template fixed, now it doesn't break catalog.

16. sections_list template fixed to use new blocks.

    • -122
    • +97
    ./categories_event_handler.php
  1. … 29 more files in changeset.

1. Fixed category edit template layout in IE -> hidden fields moved outside table to look normal.

2. Fixed ajax overlay zIndex, so new windows will open over it, not under it as before.

3. Content category stripped from exported data.

4. Use is redirected exactly to import target category (not just in home category as before) after import is made.

5. #27456 - Admin: Import -> Multiple Fixes

  1. … 15 more files in changeset.

1. Fixed bug, when "extra_toolbar" (in head frame) stays from "catalog" section and was not replaced by Front-End "extra_toolbar" when using "View in browse mode" functionality from category item grid (like links).

2. Opening form tag was missing on tree template in admin.

3. #27461 - Admin: Browse Modes -> Section Properties for Items

4. Now c_CategoryLink tag builds link to category using it's path as template, not actual design template as before (as result was have identical links in menu and in category listing).

5. New method kEventManager::openerStackChange for changing last element of current window's opener stack.

6. Don't autocreate missing system pages, when user browses to them, like design pages (because they could intensionally not created in structure via .smsignore file).

7. Correct category id is now passed, when going to 404 not found and no permission tempalates.

8. Incorrect element template was used for article in category displaying.

  1. … 12 more files in changeset.

1. Tag adm_TemplateMatches removed, because equals_to parameter does the same as equals_to parameter for m_if tag.

2. Simultanious edit message functionality.

3. New title_render_as parameter for combined_header block.

  1. … 59 more files in changeset.

#27333 - Admin: Field with Primary Category on "Showing All"

  1. … 5 more files in changeset.

#27228 - Admin: Save DESC from .TPL in Template Description in ThemeFiles

  1. … 5 more files in changeset.

1. New js hook "m:OnUploadersReady" added. Hook event is called, when all flash uploaders done initializing (flash completely loaded and can be manipulated on).

2. Fixed various incosistent with database structure unit configs.

3. Currency rates are updated using object, not just direct sql query, as before.

4. Checkout step box in default2009 theme was broken (fixed).

5. USPS integration fixes (like no error from usps were shown on Front-End, incorrect style used in both admin and front-end usps messages).

  1. … 8 more files in changeset.

1. check for non-existing tab (when prefix is given) added in catalog

2. now theme default2007, then theme default2009 will be preselected during install (when available)

3. added new constant DBG_IGNORE_FATAL_ERRORS, that should be used in methods, that define their own error handlers and don't want kApplication to interfear (like sending 500 HTTP Responce code on fatal errors).

4. new edit button design for template editor on Front-End.

5. new method CategoriesTagProcessor::_transformContentBlockData added for applying custom processing to st_ContentBlock tag

6. new tag st_EditingScripts with all admin javascript includes from admin added. In case, when it's now used all such javascript are still added in st_EditPage tag.

  1. … 80 more files in changeset.

#27228 - Admin: Save DESC from .TPL in Template Description in ThemeFiles

  1. … 5 more files in changeset.

1. Show All/Show Structure links remembered last visited category.

2. Empty line between grid and toolbar in IE.

3. New replacement #section_label#, that will be replaced with label, from given section.

4. Unused old tab design styles removed from css file.

5. Completely rewrited "Loading ..." overlay logic during ajax requests in catalog and other ajax-related places.

6. search_keydown function fixed and don't raise php fatal error when enter is pressed in simple search input near search buttons in toolbar.

7. Categories tab removed from reviews section (was accidentally added during new catalog implementation).

8. Priority dropdown in categories list in admin is now filled with positive values.

9. Fixed proj-cms templates (because they will be moved to core later).

  1. … 15 more files in changeset.

Exclude DES.TPL from Templates Drop-down

1. export in new catalog fixed

2. openSelector fixed, now it really uses given url as form.action during submit

3. added ability to specify onAfterOpenPopup callback for open_popup function

4. new unit config option: PassPriority, used to sort prefixes in "env" variable in links

5. new tag abstract tag ModifyUnitConfig, used as addition to OnAfterConfigRead, but is called only when combined_header is used

6. fixed problem, when events from GET were not passed, when empty event names were presetnt in POST

7. SelectParam helper method changed, now it can be used as tag: selects 1st parameter, that has value from given parameter names

8. category sorting by priority is only applied in admin (now it's not forced) and in CachedMenu tag

9. tag c_HomeCategory added to return home category, because not it's Content (id > 0), not 0, as before.

10. fixed "SaveWarning" tag for categories. now it is displayed during category editing.

11. Virtual fields shown in grid are now skipped from search, when they doesn't have corresponding calculated fields

12. Missing email events (found in language pack, but not found in db) are now skipped without rising sql error.

13. new parameters perm_prefix and perm_event added to combined_header block. They as used during permission checking.

14. new parameter pagination_prefix added to combined_header block. It's used (when passed) as prefix for drawing upper pagination bar (usually in subitem lists).

  1. … 181 more files in changeset.

1. More upgrade scripts (move all categories from Home to Content, rename /in-edit/desings/general to /platform/designs/default_design.des for all categories)

2. CMS page load sql fixed to add theme filter (forgot to implement this, but described in specs)

3. Onlinestore category index and product detail template names replaced with new ones for all categories

4. Spelling error in template from include on my favorites template resulted in empty template (no favories were always shown)

  1. … 4 more files in changeset.

1. CachedMenu tag now uses MenuTitle field instead of page name

2. Iheritance of Template field for categories

  1. … 12 more files in changeset.

1. Path field was not used and was removed from Category table

2. TemplateExists now lowercases template name before checking on disk

3. System pages (in structure) now has same path creation logic, like virtual pages (based on their location in structure, not on disk)

4. Fixed admin section highlighting when browsing on Front-End through frame and st:EditPage tag is present on page

5. Correct category is passed in st:PageBrowseLink, not parent category id as before

6. Config cache was not rebuild, when changing module root category (e.g. for In-Link)

7. "Content" category removed from tag CategoryPath results

8. Misspelled category path (with "/" instead of "||") in template description.

  1. … 15 more files in changeset.

Merging "st" and "c" prefixes. Theme selector.

1. Theme selector for catalog/advanced_view

2. Catalog is now derived from "Content" category as Proj-CMS

3. Search box for category permission editor

4. yellow/red folder (small/super small) icons moved to core (from proj-cms)

5. getFrame hang up fix in all getFrame copies

6. Fixed 2 popups from System Tools section

7. added QuickCategoryPermissionRebuild configuration variable

8. missing OnResetSorting event permission mapping added

9. kDBBase::PrepareFieldOptions is now called only once per field

10. usage of undefined configuration variable "UseFileCache" in "cache.php"

11. cache variable cms_menu is now deleted together with StructureTree (in adm:OnResetCMSMenuCache event)

12. Fixed spelling error on $add_collation variable in kPermCacheUpdater::initData method (bug by Dima)

13. "menu" type added for category lists (<inp2:c_InitList types="menu" except="menu"/>) for showing/excluding menu items from category lists

14. During theme file rebuild files from disabled theme are not added to ThemeFiles table

15. Templates with .des.tpl and .elm.tpl extensions are skipped on structure creation step; also ".svn" directory is skipped

16. New parameter "additional_blue_bar_render_as" for block "combined_header" allows to specify block to render at right corner of blue bar.

    • -24
    • +1016
    ./categories_event_handler.php
  1. … 35 more files in changeset.

#24714 - In-portal CMS (merging In-portal & Platform); merged language pack from core, in-portal, proj-base

  1. … 2 more files in changeset.

#24714 - In-portal CMS (merging In-portal & Platform); paths

  1. … 18 more files in changeset.

pre-release changes

  1. … 13 more files in changeset.

#23843

    • -157
    • +100
    ./categories_event_handler.php
  1. … 1 more file in changeset.