This is an old revision of the document!


Custom links in "home"

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

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.


Code:

Insert this snippet to template/inc_default/startup.php

This snippet integrates the new file startupX.php.

File: template/inc_default/startup.php

<!-- 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
?>

<!-- ====================================================== //-->


Files in zip archive:

  • custom links
    • include/inc_ext/be_special/startupX.php
    • include/inc_ext/be_special/startupX_de.php
    • include/inc_ext/be_special/startupX_en.php
    • include/inc_ext/be_special/act_fileX.php
    • include/inc_ext/be_special/lang/backend/de/lang.inc.php
    • include/inc_ext/be_special/lang/backend/en/lang.inc.php
  • filebrowserX.php

Download: custom links, filebrowserX, act_fileX (14.98 KiB, 114 downloads)

english/other-enhancements/backend/custom-links-in-home.1282566638.txt.gz · Last modified: 2018/06/03 18:08 (external edit)
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