This is an old revision of the document!


Custom links in "home"

Backend: Mit diesem Programm können Benutzerlinks in ” Home” erzeugt werden. Jede Art von Links ist möglich.

Inspiriert durch dieses Programm von Markus: Backend Standardtext

Z.B.

Notwendigen Vorbereitungen

- die da sind:

  1. Erzeuge das Verzeichnis “include/inc_ext/be_special”.
  2. Erzeuge das Verzeichnis “include/inc_ext/be_special/lang/backend/de- und /lang/backend/en”.
  3. Kopieren und Einsetzen der Datei “startup.php” in das Verzeichnis “template/inc_default”.
  4. Kopieren und Einsetzen der Datei “startupX.php” in das Verzeichnis “…be_special”.
  5. Kopieren und Einsetzen der Dateien “lang.inc.php” in die Verzeichnisse “…be_special/lang/backend/de- und …be_special/lang/backend/en”.



Docu: –
Forum: –

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


FIXME Translate


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”.

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

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

<!-- 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 englisch 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, 114 downloads)

deutsch/andere-erweiterungen/backend/custom-links-in-home.1283924651.txt.gz · Last modified: 2018/06/03 18:07 (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