plugin:editx
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
plugin:editx [2022-06-18 15:02] – created 77.28.89.8 | plugin:editx [2022-06-19 18:35] (current) – old revision restored (2020-09-26 11:45) schplurtz | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Old gay with fake plugin! | + | ====== EditX Plugin ====== |
+ | |||
+ | ---- plugin ---- | ||
+ | description: | ||
+ | author | ||
+ | email : danny0838@gmail.com | ||
+ | type : action | ||
+ | lastupdate : 2014-09-19 | ||
+ | compatible : 2013-03-06, 2012-10-13, | ||
+ | depends | ||
+ | conflicts | ||
+ | similar | ||
+ | tags : !experimental, | ||
+ | |||
+ | downloadurl: | ||
+ | bugtracker : https:// | ||
+ | sourcerepo : https:// | ||
+ | donationurl: | ||
+ | ---- | ||
+ | |||
+ | The above download link is the latest release, which should be more stable. For the newest revision (may be experimental), | ||
+ | |||
+ | ===== Installation And Usage ===== | ||
+ | |||
+ | Search and install the plugin using the [[plugin: | ||
+ | |||
+ | Further: | ||
+ | * Go to the **edit** page and click on the link in the header: **If you want to do a page management such as renaming, go here:** (or simply use the action **editx**) | ||
+ | * use the form to manage a page rename or deletion for the current page. | ||
+ | |||
+ | ==== Moving a page ==== | ||
+ | |||
+ | //Move// moves a page and all histories to the targeted name, leaving a redirection text on the old page. The move summary will be left in the source page history, the target page history, recent changes, and will be sent to the subscribers or the source of the target page. | ||
+ | |||
+ | If the target page exists or has a conflicting file (page, meta or attic files), the move cannot be done. Therefore if you move a page from A to B, you cannot move B back to A until you //delete (no history)// page A via this plugin or manually. | ||
+ | |||
+ | === Authority requirements === | ||
+ | |||
+ | - **edit** authority of the source page | ||
+ | - **edit** authority of the target page | ||
+ | - being in groups or users defined in **user_rename** | ||
+ | |||
+ | ==== Moving a page (Without redirection) ==== | ||
+ | |||
+ | If you want to perform a //move// without leaving a redirection and a note in the history, just check the checkbox **No redirect**, the source will be totally removed just as //delete// does. | ||
+ | |||
+ | === Authority requirements === | ||
+ | - **delete file** authority of the source page | ||
+ | - **edit** authority of the target page | ||
+ | - being in groups or users defined in **user_rename_nr** | ||
+ | |||
+ | ==== Deleting a page ==== | ||
+ | |||
+ | //Delete// removes all files in pages/ meta/ and attic/ related to the page, except **.mlist**. The delete summary will be left in the source page history, recent changes, and will be sent to the subscribers of the source page. | ||
+ | |||
+ | If **no delete history** is checked, there will be no history in the source page but still in the recent changes. | ||
+ | |||
+ | === Authority requirements === | ||
+ | - **delete file** authority of the page | ||
+ | - being in groups or users defined in **user_delete** | ||
+ | |||
+ | ==== Configuration ==== | ||
+ | |||
+ | Here are configs in the configuration manager: | ||
+ | |||
+ | * **redirecttext**: | ||
+ | * If you have [[PageRedirect]] plugin installed, you can fill in '' | ||
+ | * If you have [[GOTO]] plugin, use '' | ||
+ | * If you have [[mediasyntax]] plugin, use '' | ||
+ | * **user_rename**: | ||
+ | * If you want to enable for all with edit authority, leave it blank. | ||
+ | * If you want to disable for all, write an impossible "user name" such as **-**. | ||
+ | * **user_rename_nr**: | ||
+ | * **user_delete**: | ||
+ | |||
+ | ===== Development ===== | ||
+ | |||
+ | ==== Changes ==== | ||
+ | |||
+ | {{rss> | ||
+ | |||
+ | ===== Localization ===== | ||
+ | |||
+ | Translations can be put here, I'll check them in to the new version. | ||
+ | |||
+ | |||
+ | Note that the fixes in 2011/01/16 is big. German and Dutch translation, | ||
+ | |||
+ | > | ||
+ | |||
+ | ===== Discussion ===== | ||
+ | |||
+ | I am going to add several features in the plugin, such as hiding/ | ||
+ | |||
+ | ==== Clone Page ==== | ||
+ | |||
+ | I'm working on a project where work done in subdirectories can be cloned to other subdirectories. So for example, I'm building a course (say GEOG 420) and I search other courses and find a page from GEOG 346 I'd like to clone and edit. | ||
+ | |||
+ | The way I'd like it to work is I clone the page, and it brings the revision history along with it, writes " | ||
+ | |||
+ | In my perfect world there' | ||
+ | |||
+ | |||
+ | ==== Update Backlinks ==== | ||
+ | Automatically update all backlinks to point to the new location when a page is moved. | ||
+ | |||
+ | This eliminates the need to leave a redirect page with in the old location. | ||
+ | |||
+ | **Yes**! - this is the one thing the old pagemove did well. Maybe the old code can be reused ? | ||
+ | |||
+ | ** Please, can you give the status of Update Backlink ? ** | ||
+ | Can you explain the following change: | ||
+ | [[https:// | ||
+ | Revert " | ||
+ | |||
+ | ==== Localization ==== | ||
+ | |||
+ | Translations can be put here, I'll check them in to the new version. | ||
+ | |||
+ | Note that the fixes in 2011/01/16 is big. German and Dutch translation, | ||
+ | |||
+ | I'm already use it in my personal wiki, works fine for me. — hatifnatt 2011/05/28 17:50 | ||
+ | |||
+ | |||
+ | ==== Hide for unauthorized people ==== | ||
+ | I wanted to avoid that unauthorized people (those who were not authorized to edit the page) see the ' | ||
+ | |||
+ | <code php> | ||
+ | function _prepend_to_edit(& | ||
+ | if ($event-> | ||
+ | global $ID; | ||
+ | $link = html_wikilink($ID.'? | ||
+ | $intro = $this-> | ||
+ | $intro = str_replace( ' | ||
+ | if (auth_quickaclcheck($ID)> | ||
+ | print $intro; | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | --- [[user> | ||
+ | |||
+ | > Thank you for pointing it out. But I added '' | ||
+ | |||
+ | ==== Make available only of admins ==== | ||
+ | |||
+ | Could you add a setting to make this functional availible only for admins and managers? | ||
+ | |||
+ | > It should be possible but I didn't mean to do this since I think it's always better for people with edit authority to move a page instead of deleting and recreating a page, and checking delete file authority for page deletion is generally enough. Another reason is there is already a [[pagemove]] plugin doing it. | ||
+ | |||
+ | > There are several ways that I've thought about to achieve the similar feature such as: | ||
+ | |||
+ | - Add a config whether to restrict AUTH_ADMIN to access action editx | ||
+ | - Config settings which restrict groups that are allowed to perform //move//, //delete// and //purge// | ||
+ | - Configs for authority requirement for //move//, //delete// and //purge// | ||
+ | |||
+ | > Could you tell more about why and how you want the feature so we can make the best decision? | ||
+ | |||
+ | >> As it is now, those who don't have the rights to delete a page cannot do so with the editx plugin.. I personally agree that users should be allowed to move pages, which works fine if they both have the rights to edit in the old page and the new page. I would not like the situation that for every move the administrator should be contacted etc. More work, greater chance of errors.. but these are just my thoughts | ||
+ | >> | ||
+ | |||
+ | >> Because the page moving is not the most popular operation, but it's required to bring the wiki in order. So It'll be better if only maganers can rename pages to be sure, that all pages will be with correct names. Otherwise in some cases users can make very strangw redirection chain for example. | ||
+ | |||
+ | >> The best solution is to add option to config, something like "Who can move a page: All users with edit permissions, | ||
+ | |||
+ | >>> | ||
+ | |||
+ | ==== Error ==== | ||
+ | The following line keeps creating errors: | ||
+ | < | ||
+ | foreach ($tasks as $task) rename($task[0], | ||
+ | </ | ||
+ | |||
+ | When deleted the plugin seems to work fine though.. | ||
+ | --- [[user> | ||
+ | > Correction: I updated to todays version and now I don't see the errormessage.. | ||
+ | |||
+ | |||
+ | ==== Action on namespaces ==== | ||
+ | :?: Is possible to add the function to delete/move even entire namespace with their all contents? | ||
+ | |||
+ | > I would also appreciate operation on entire namespaces, including a copy function. A copy operation should only copy the last version, not the entire history of the pages in a namespace. -- Use case: I'm counselling wiki users who need to copy the structure of a namespace including pagenames on a regular basis. The easiest way to do this seems to be by copying the existing namespace, thereby renaming the top level of the branch. This leaves the original pages intact. Of course all copied pages have to be cleaned up then. But copying seems to be a more efficient way than creating 40+ pages from scratch. Maybe this is an odd application of the plugin and there are better ways to achieve the goal. Leif -- 2011/ | ||
+ | ==== Headings in intro.txt ==== | ||
+ | |||
+ | Right now, the ' | ||
+ | |||
+ | |||
+ | |||
+ | === Problems with var plugin === | ||
+ | |||
+ | When using the plugin [[plugin: | ||
+ | |||
+ | __Remedy:__ \\ | ||
+ | | ||
+ | file / | ||
+ | | ||
+ | | ||
+ | |||
+ | file / | ||
+ | | ||
+ | | ||
+ | |||
+ | that's all. | ||
+ | |||
+ | > This is fixed now in the var plugin. No further modifications in editx plugin required. ([[https:// | ||
+ | |||
+ | |||
+ | ==== Avoid eating up edit space ==== | ||
+ | |||
+ | I modified the intro.txt to only say " | ||
+ | |||
+ | diff tpl/ | ||
+ | 146a147, | ||
+ | > | ||
+ | > < | ||
+ | > < | ||
+ | > < | ||
+ | > < | ||
+ | > < | ||
+ | > </ | ||
+ | > </ | ||
+ | |||
+ | This puts a button with the text " | ||
+ | |||
+ | If one uses a list of users that can use editx, it might be an idea to make this code conditional on the users permissions, | ||
+ | |||
+ | ==== Compatibility with the data plugin ==== | ||
+ | Hi, I have a data plugin installed. When I move a page with a data inside, data in database remains, but they should be deleted as the original page is actualy deleted. Does this plugin use the regular docuwiki page deletion method (which activates consequentant plugins?) | ||
+ | |||
+ | ==== Dangerous deleting ==== | ||
+ | I just accidentaly pressed wrong submit button and deleted my page including its history WITHOUT ANY WARNINGS! TWICE! The main editing form is very dangerous, because there are two SAME submit buttons, one renames the page and the other DELETES the whole page including history (which is default) without any warning. | ||
+ | I suppose two changes: default keep history on changes and legacy javascript confirm on delete. | ||
+ | |||
+ | >Added a checkbox for confirmation in the latest version. Hope this helps. --- [[user> | ||
+ | |||
+ | ==== Compatibility problems with fckglite ==== | ||
+ | Hello, | ||
+ | the plugin is very interesting, | ||
+ | As a good WYSIWYG editor is pretty mandatory for most users, it would be great, it this problem could get checked over and maybe solved. Because editx would be a very mandatory plugin for most users, too. -- JBorchert, 2012-01-26 | ||
+ | > I tested latest editx with the latest distribution of fckgLite (Version 07), in Rincewind RC1, and had no problems. | ||
+ | |||
+ | ==== cannot download plugin with wget or plugin manager ==== | ||
+ | Hello, | ||
+ | |||
+ | I can't download plugin with Plugin Manager (or with wget) on GitHub. | ||
+ | |||
+ | Please could you get a direct URL for downloading ? | ||
+ | |||
+ | Thanks. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | I had problems too with the downloadlink. I found on Gtihub a working link: [[https:// | ||
+ | |||
+ | Jan | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ==== Announcement for stopping support ==== | ||
+ | We are not going to support this plugin. Although updates might be possible in the future, they would be rather small or personal. It is welcome to take over the whole job, using the same name or another name, under the given license (GPL 2). | ||
+ | |||
+ | If your are going to keep developing using the same name, please leave a note and update the plugin info and relink the download link, source repo, etc. to yours in this page. If you are going to take over the source repo also, please send us a message in the GitHub and we'll transfer the ownership. First come first win. --- [[user> |
plugin/editx.txt · Last modified: 2022-06-19 18:35 by schplurtz