basename.inc.php
First Edition. 02/01/2006
Last Modified. 06/12/2006
Last Modified. 06/12/2006
Show only basename of the page
ボツ。実はやっていることはほぼコレだけです。
<?php echo make_pagelink($vars['page'], get_short_name($vars['page'])); ?>
Summary | Show only basename of the page |
---|---|
Revision | 1.1 |
Compatible Versions | Verified with 1.4.5-u2-i18n |
Developer | sonots |
First Edition | 02/01/2006 |
Last Modified | 06/12/2006 |
License | GPL |
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.
What's new
viewcvs
File | Date | What's new |
basename.inc.php.5 | 07/26/2006 | Cleanup |
basename.inc.php.4 | 06/12/2006 | Options, page and nolink. |
![]() | 04/18/2006 | Changing plugin's name and codes a bit. |
![]() | 02/05/2006 | Recreation from scratch. |
![]() | 02/01/2006 | First Edition. A little modification of topicpath plugin |
Compatibility Check
Please join us to check compatibilities.
Compatible
Incompatible