basename.inc.php

Top > Old > Plugin > basename.inc.php
First Edition. 02/01/2006
Last Modified. 06/12/2006

Show only basename of the page

ボツ。実はやっていることはほぼコレだけです。

<?php echo make_pagelink($vars['page'], get_short_name($vars['page'])); ?>
SummaryShow only basename of the page
Revision1.1
Compatible VersionsVerified with 1.4.5-u2-i18n
Developersonots
First Edition02/01/2006
Last Modified06/12/2006
LicenseGPL

This page is written in both English and Japanese.

Table of Contents

Abstract

This plugins shows only basename of current page, in other words, this omits virtual directory name. For example, if the name is "Plugin/basename.inc.php", it will be only basename.inc.php.

How to use

#basename([options])
&basename([options]);

options

  • page=PageName
    • Default is the current page.
  • nolink
    • Do not link. Default does link.

TIPS: Embed into skin

If you like to use this in your skin, modfiy

echo $page

to

exist_plugin('basename'); echo do_plugin_convert('basename')

If you want to specify option, do as

do_plugin_convert('basename',"page=PageName,nolink")

Download

Save from right-click, and put into plugin directory.

basename.inc.php

What's new viewcvs

FileDateWhat's new
basename.inc.php.507/26/2006Cleanup
basename.inc.php.406/12/2006Options, page and nolink.
filebasename.inc.php.304/18/2006Changing plugin's name and codes a bit.
filepagename.inc.php.202/05/2006Recreation from scratch.
filepagename.inc.php.102/01/2006First Edition. A little modification of topicpath plugin

Compatibility Check

Please join us to check compatibilities.

Compatible

Selection Vote
PHP4 3
PHP5 2
1.3.7 0
1.4.3 0
1.4.4 0
1.4.5_1 0
1.4.6 1
1.4.7 3
1.4.5plus-eucjp 0
1.4.6plus-u1-eucjp 0
1.4.6plus-u2-eucjp 0
1.4.5plus-u2-i18n 1
1.4.6plus-u1-i18n 1
1.4.6plus-u2-i18n 1
1.4.7plus-i18n 1
1.4.7plus-u2-i18n 0

Incompatible

Selection Vote
PHP4 1
PHP5 0
1.3.7 0
1.4.3 0
1.4.4 0
1.4.5_1 0
1.4.6 0
1.4.7 1
1.4.5plus-eucjp 0
1.4.6plus-u1-eucjp 0
1.4.6plus-u2-eucjp 0
1.4.5plus-u2-i18n 0
1.4.6plus-u1-i18n 0
1.4.6plus-u2-i18n 0
1.4.7plus-i18n 0
1.4.7plus-u2-i18n 0