Is Subpage Of Plugin [ 29 ]

Deutsch English


Aktuelle Version: 0.7 | Bisherige Downloads: click me to obtain stats / 790

SVN Download

Is Subpage Of ist ein einfaches Wordpress Plugin, das abfragt, ob die aktuell angezeigte Wordpress-Seite eine Unterseite einer übergebenen übergeordneten Seite ist. Hilfreich ist das vor allem dann, wenn man Inhalte nur in bestimmten Dokumentenbäumen darstellen will.

Anforderungen

Das Plugin benötigt Wordpress 2.0+, kompatibel mit 2.3 – 2.7

Installation

  1. Downloaden Sie das Plugin und entpacken Sie es.
  2. Laden Sie die entpackte Datei is_subpage_of.php in den /wp-content/plugins/ Ordner hoch.
  3. Aktivieren Sie das Plugin im Wordpress Administrationsbereich.
  4. Fertig die Installation.

Upgrade

  1. Deaktivieren Sie das Plugin im Wordpress Administrationsbereich.
  2. Laden Sie die Datei is_subpage_of.php in den /wp-content/plugins/ Ordner hoch und überschreiben die alte Version.
  3. Aktivieren Sie das Plugin im Wordpress Administrationsbereich.

Entwicklung

Implementierung

Die Funktion muss wie folgt aufgerufen werden:

<?php if(is_subpage_of('ID')) { ... } ?>

Die folgenden Optionen stehen zur Verfügung:

  • ID:
    - Eine einzelne ID der übergeordneten Seite.

Folgende Aufrufe sind Beispiele und funktionsfähig:

<?php if(is_subpage_of('3')) { ... } ?>
<?php if(is_subpage_of('3') OR is_subpage_of('9')) { ... } ?>

Weitere Downloadquellen

Support

Bei Fragen, Anregungen oder Kritik zum Plugin bitte entweder das Forum, die Kommentare oder das Kontaktformular nutzen.

Danke an dieser Stelle auch an pufaxx für die Erfindung des Rades. :)

Changelog

10.06.2007 – version 0.7

  • Plugin Release


English Version

Latest version: 0.7 | Downloads: 790

SVN Download
Is Subpage Of is a simple Wordpress conditional plugin that determines if the executing page is a subpage of the passed pageID. Helpful to show content on certain document trees only.

Requirements

The plugin requires Wordpress 2.0+, compatible with 2.3 up to 2.7

Installation

  1. Download the plugin and unzip it.
  2. Upload the file is_subpage_of.php to your /wp-content/plugins/ folder.
  3. Activate the plugin from your Wordpress admin panel.
  4. Installation finished..

Upgrade

  1. Deactivate the plugin from your Wordpress admin panel.
  2. Upload the file is_subpage_of.php to your /wp-content/plugins/ folder and overwrite the existing file.
  3. Activate the plugin from your Wordpress admin panel.

Development

Implementation

Call the is_subpage_of function like so:

<?php if(is_subpage_of('ID')) { ... } ?>

Options are like following:

  • ID:
    - A single ID of a parent page.

Some examples follow – each is a proper invocation of the plugin:

<?php if(is_subpage_of('3')) { ... } ?>
<?php if(is_subpage_of('3') OR is_subpage_of('9')) { ... } ?>

Alternative download sources

Support

For questions, suggestions or issues with the extension please use the forums, comments or the contact form.

Changelog

10.06.2007 – version 0.7

  • Plugin released

Found something helpful? Development of this and other free stuff on my site can be supported by a PayPal donation in the sidebar. You'll get a backlink!


29 Reaktionen zu " Is Subpage Of Plugin "

24 Ping- & Trackbacks

5 Kommentare

  1. look

    Seems like a nice plugin. I saw something similar on http://erik.range-it.de/wordpress/plugins/is_child/
    with – I think – some more features…

    Auf diesen Kommentar antworten

    27. September 2007 um 09:47

  2. Oliver ADMIN

    Hey look,

    thanks for the tip. I’ve been searching the net for such a plugin before I created mine, but didnt find one. But nice to see, there is someone who had the same idea/wish already… ;)

    Auf diesen Kommentar antworten

    27. September 2007 um 18:23

  3. Hendry Lee

    I think this is a nice complement to in_category() function for posts. I can’t visit the link given by “look” though.

    Combining this with exec php plugin, I can display various snippets of things at the end of my page in additional to post.

    Some great usage ideas here…

    Auf diesen Kommentar antworten

    6. September 2008 um 08:08

  4. look

    @Hendry
    Yes, I know. I think I found the updated version of the plugin at http://2pt3.com/post/wordpress-plugins/, the direct url to the plugin is http://2pt3.com/files/is_childphp.zip

    Auf diesen Kommentar antworten

    9. September 2008 um 09:10


Schreib einen Kommentar



Poets of the Fall - Carnival of Rust Video
Poets of the Fall - The Ultimate Fling Video
Poets of the Fall - Locking Up The Sun Video