This plugin allows tag {PAGE_TEXT_BY_XX} where XX is id of page.
Tag outputs page_text of selected page with link to edit, visible only for admins . It may be useful for place customisable blocks of content on your site - various descriptions for users, welcome text on index.
Tag works on these tpl files:
header.tpl
index.tpl
footer.tpl
page.*.tpl
page.add.*.tpl
page.edit.*.tpl
list.*.tpl
forums.posts.tpl
forums.newtopic.tpl
forums.sections.tpl
forums.topics.tpl
pm.tpl
polls.tpl
users.profile.tpl
users.auth.tpl
users.details.tpl
users.tpl
users.register.tpl
Put "pagetextbyidn" into your plugin folder.
Go to Admin => Plugins => {PAGE_TEXT_ID_XX} tag and install the plugin.
Create pages with content and add tag in necessary tpl.
На страницах, содержащих id , созданных пользователем, например: /page.php?id=2
высвечивается в верху ошибка:
file_get_content() [function.file-get-contents]:Filename cannot be empty mysite/plugins/pagetextbyidn/inc/pagetextbyidn.code.php on line4
Thanked: 12 раз
Please fix the plugin download path :(
Thanked: 10 раз
Cannot download :(
I found a version, not sure that it is the latest /datas/users/cot_pagetextbyidn-894_494.zip
Thanked: 52 рази
There is an issue with this plugin when using the tag multiple times in the same tpl file, as reported here.
To fix it, replace inc/pagetextbyidn.code.php with the code available here.