How Joomla implement the item publishing and item unpublishing function?

Charles Yeung

Refer to my last post, I have figured out that Joomla call the controller with the POST data task=X.Y, however I found that if I publish an item (task items.publish) or unpublish an item (task items.unpublish), they also calling the controller JControllerAdmin of the function publish but not the function of publish and unpublish.

I know that Joomla may convert the POST data task items.unpublish to call the publish function instead of unpublish, but anyone know where is the code of converting this POST data?

p.s.: I have added the code exit(); at the beginning of the function publish under controller JControllerAdmin and testing for publish or unpublish an item, the result is same --> blank page. So I wondering how Joomla implement these function.

Jobin

Joomla's Default function for publish and unpublished are written in this file

libraries\joomla\application\component\controlleradmin.php

But its better to avoid editing on that and override those function if you require customization on it in your controller file.

Hope its helps..

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Unpublishing and publishing the android app

분류에서Dev

How to implement a context menu for each item in a listView

분류에서Dev

How can i check if an item is part of a specific menu [Joomla 3.3]

분류에서Dev

Joomla 3.x: How to allow underscore in menu item aliases

분류에서Dev

How to make a list of one item just that item

분류에서Dev

How To Get First Item of Array

분류에서Dev

How to get the item inside dd?

분류에서Dev

How to add an item to the top of a ListBox

분류에서Dev

How to add item to context menu?

분류에서Dev

How to change loadObjectList() item positions?

분류에서Dev

Which interface do I have to implement for an item collection

분류에서Dev

Nulling a Referenced Array Item From a Function

분류에서Dev

How to count item quantity in crystal reports on report footer by item name

분류에서Dev

How do you find the location of an item in a list without using the "index" function?

분류에서Dev

I get "Cannot find function asParagraghTextItem in object Item" from a Item of type PARAGRAPH_TEXT

분류에서Dev

How get item from a listView Android?

분류에서Dev

how to train a model for item sequence segmentation

분류에서Dev

How to achieve this when I hover an flex item?

분류에서Dev

How to make an item responsive in twitter bootstrap

분류에서Dev

How to call an item from a dictionary in python?

분류에서Dev

how to find contact id on item click of listview

분류에서Dev

how to change an actionBar item's name dynamically

분류에서Dev

How to use combobox item tcl tk

분류에서Dev

How to use preventDefault() for parent item only in a menu?

분류에서Dev

How to have several paragraphs in a list item?

분류에서Dev

How to make one item selected at a time?

분류에서Dev

How to add item in DataGrid (smart way)

분류에서Dev

How to change the Foreground Color of ListView Selected Item

분류에서Dev

how to set color for each item in tooltip with ChartJS

Related 관련 기사

  1. 1

    Unpublishing and publishing the android app

  2. 2

    How to implement a context menu for each item in a listView

  3. 3

    How can i check if an item is part of a specific menu [Joomla 3.3]

  4. 4

    Joomla 3.x: How to allow underscore in menu item aliases

  5. 5

    How to make a list of one item just that item

  6. 6

    How To Get First Item of Array

  7. 7

    How to get the item inside dd?

  8. 8

    How to add an item to the top of a ListBox

  9. 9

    How to add item to context menu?

  10. 10

    How to change loadObjectList() item positions?

  11. 11

    Which interface do I have to implement for an item collection

  12. 12

    Nulling a Referenced Array Item From a Function

  13. 13

    How to count item quantity in crystal reports on report footer by item name

  14. 14

    How do you find the location of an item in a list without using the "index" function?

  15. 15

    I get "Cannot find function asParagraghTextItem in object Item" from a Item of type PARAGRAPH_TEXT

  16. 16

    How get item from a listView Android?

  17. 17

    how to train a model for item sequence segmentation

  18. 18

    How to achieve this when I hover an flex item?

  19. 19

    How to make an item responsive in twitter bootstrap

  20. 20

    How to call an item from a dictionary in python?

  21. 21

    how to find contact id on item click of listview

  22. 22

    how to change an actionBar item's name dynamically

  23. 23

    How to use combobox item tcl tk

  24. 24

    How to use preventDefault() for parent item only in a menu?

  25. 25

    How to have several paragraphs in a list item?

  26. 26

    How to make one item selected at a time?

  27. 27

    How to add item in DataGrid (smart way)

  28. 28

    How to change the Foreground Color of ListView Selected Item

  29. 29

    how to set color for each item in tooltip with ChartJS

뜨겁다태그

보관