Linux 软件免费装

Plugin Name

开发者 LorenW
更新时间 2012年6月6日 03:15
PHP版本: 2.8 及以上
WordPress版本: 3.3.2

标签

page page template template redirect inherit parent template parent page template persistent template

下载

详情介绍:

In WordPress each page must be intentionally assigned a template (or have a template file intentionally named for it) or WordPress applies the default page.php template. Child pages do not inherit parent page templates. On a large website with many child pages within a hierarchy of pages this does not make for an easy or error free way to use page templates to create a sectioned CMS. A user can assign a template to a top level page (or a "beginning of section" page) but its descendants (child pages) will not follow with their ancestor's template. Each page's template must be individually assigned. For small sites with few pages and few users this is not a significant matter. On a site with hundreds or thousands of pages and multiple editors and multiple "sections" this makes WordPress less than ideal as a CMS platform This plugin solves that problem. It investigates each page and assigns hierarchical templates to pages and their children giving precedence to page-[id].php templates. If no page-[id].php templates are found all the way up the ancestory tree then it will check for page-[slug].php templates back up the ancestory tree. If those are not found then it will look for a meta assigned custom.php template - first for the currently selected page and then if the page does not have a custom.php template assigned the function will look back up the ancestory tree to see if an ancestor page has been assigned a custom.php template. If all of these fail it will fall back to WP's default page.php template. There is more description at http://www.warkensoft.net/wordpress-plugins/wordpress-hierarchical-page-template-redirect-plugin/

安装:

  1. Upload wp-hptr.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress There are no options or settings

升级注意事项:

Nothing here yet

常见问题:

None yet!

So no answers yet either.

更新日志:

0.1 This is the first version. However it has undergone considerable testing.