Strict Standards: Declaration of action_plugin_dlcount::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/dlcount/action.php on line 14

Strict Standards: Declaration of action_plugin_indexmenu::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/indexmenu/action.php on line 169

Strict Standards: Declaration of action_plugin_ipban::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/ipban/action.php on line 67

Strict Standards: Declaration of action_plugin_loglog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/loglog/action.php on line 82

Strict Standards: Declaration of action_plugin_navi::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/navi/action.php on line 46

Strict Standards: Declaration of action_plugin_uparrow::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/uparrow/action.php on line 69

Strict Standards: Declaration of action_plugin_userspagecreate::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/userspagecreate/action.php on line 97

Strict Standards: Declaration of cache_instructions::retrieveCache() should be compatible with cache::retrieveCache($clean = true) in /home/www/wiki/inc/cache.php on line 289

Warning: Cannot modify header information - headers already sent by (output started at /home/www/wiki/lib/plugins/dlcount/action.php:14) in /home/www/wiki/inc/auth.php on line 312

Strict Standards: Only variables should be passed by reference in /home/www/wiki/doku.php on line 71

Warning: Cannot modify header information - headers already sent by (output started at /home/www/wiki/lib/plugins/dlcount/action.php:14) in /home/www/wiki/inc/actions.php on line 154
Custom links in "home" [phpwcms-HowTo:wiki]

Strict Standards: Declaration of syntax_plugin_code::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/www/wiki/lib/plugins/code/syntax.php on line 41

Strict Standards: Declaration of syntax_plugin_tip::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/www/wiki/lib/plugins/tip/syntax.php on line 38

Custom links in "home"

Backend: This snippet places a user link range in ” home”. You can use any type of link.

Inspired by this snippet of Markus: backend default text

E.g.

Necessary preparations

- as there are:

  1. create the folder “include/inc_ext/be_special”.
  2. create the folders “include/inc_ext/be_special/lang/backend/de- and /lang/backend/en”.
  3. copy and paste the file “startup.php” into the folder “template/inc_default”.
  4. copy and paste the file “startupX.php” into the folder “…be_special”.
  5. copy and paste the files “lang.inc.php” into the folders “…be_special/lang/backend/de- and …be_special/lang/backend/en”.



Docu: –
Forum: –

Author: K.Heermann (flip-flop) http://planmatrix.de
CMS Version: >= 1.4x
Version: V1.0 (11.05.2010)
Folder: include/inc_ext/be_special/ *
Condition:



Have a look into the files “include/inc_ext/be_special/startupX(_YY).php” and you will understand the functional.

The vars for e.g. ”$BL['be_custom_link01_1_title']” you will find in “include/inc_ext/be_special/lang/backend/(YY)/lang.inc.php”.

Play around a little bit. If there is a section in “startupX(_YY).php” you don´t need, please kill the entries.

Some link examples:

Open a folder with the ID=13: (You can´t open a folder if the parent folder is closed).

<a href="phpwcms.php?do=articles&open=13:1">


Open the article with the ID=15:

<a href="phpwcms.php?do=articles&p=2&s=1&id=15">


Edit the article with the ID=15:

<a href="phpwcms.php?do=articles&p=2&s=1&aktion=1&id=15">


Edit the contentpart with the ID=22 in category ID=14:

<a href="phpwcms.php?do=articles&p=2&s=1&aktion=2&id=14&acid=22">


Code:

Insert this snippet to template/inc_default/startup.php

This snippet integrates the new file startupX.php.

File: template/inc_default/startup.php

<?php
// -------------------------------------!!!! Don´t touch !!!!---------------------------------
// obligate check for phpwcms constants
   if (!defined('PHPWCMS_ROOT')) {die("You Cannot Access This Script Directly, Have a Nice Day."); }
// -------------------------------------------------------------------------------------------
?>
 
<!-- fill in information for your customers here -->
 
<!-- ======================================================
  V1.0 flip-flop (KH) enhanced Version for loading a script
  in "home" called startupX -> "Custom Links"
====================================================== //-->
 
<?php
// Load language sensitive startupX file
if (is_file(PHPWCMS_ROOT.'/include/inc_ext/be_special/startupX.php'))
    include(PHPWCMS_ROOT.'/include/inc_ext/be_special/startupX.php'); //reads the new startup file
?>
 
<!-- ====================================================== //-->


Download:

Files in zip archive:

  • custom links
    • include/inc_ext/be_special/startupX.php (include the right startupX(_YY).php)
    • include/inc_ext/be_special/startupX_de.php (The german file)
    • include/inc_ext/be_special/startupX_en.php (The english file)
    • include/inc_ext/be_special/act_fileX.php (file for “delete all files from filecenter trash can” → Move del. files from trash can)
    • include/inc_ext/be_special/lang/backend/de/lang.inc.php (The german language file)
    • include/inc_ext/be_special/lang/backend/en/lang.inc.php (The english language file)
  • filebrowserX.php (A passive file browser with some extensions: FilebrowserX)


File: custom links, filebrowserX, act_fileX (14.98 KiB, 35 downloads)

english/other-enhancements/backend/custom-links-in-home.txt · Last modified: 2011/03/01 16:49 by Knut Heermann (flip-flop)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0

Strict Standards: Only variables should be passed by reference in /home/www/wiki/doku.php on line 79