Lightweight and flexible solution for linking files to pages and lists
PageAvatar is an advanced plugin used to associate pages with any types of files and manage such links. This is a simple yet powerful solution we normally use to build picture galleries for the websites powered by Cotonti.
Authors: esclkm, Kort, Cotonti Team
Github: https://github.com/Alex300/cotonti-pageavatar
The plugin is very easy to use. All you have to do is:
Page.add.tpl:
Add plugin tags as follows:
<tr> <td>{PAGEADD_FORM_AVATAR_TITLE}:</td> <td>{PAGEADD_FORM_AVATAR}</td> </tr>
Page.edit.tpl:
Add plugin tags as follows:
<tr> <td>{PAGEEDIT_FORM_AVATAR_TITLE}:</td> <td> {PAGEEDIT_FORM_AVATAR} <!-- IF {PAGEEDIT_FORM_AVATARFILE} --> <p>{PHP.L.Uploaded}: {PAGEEDIT_FORM_AVATARFILE}<br /> {PHP.L.Delete}: {PAGEEDIT_FORM_AVATARDELETE}</p> <!-- ENDIF --> </td> </tr>
The structure of a settings string is as follows:
category code | path to uploads folder | thumbnail mask(s) | mandatory? | extension(s) | thumb creation mode
Brief explanation:
You can now get your image paths in the LIST_ROW regular block or elsewhere, i.e.:
Should you have any questions or would like to report a bug, feel free to open a topic at the forums.
Version History
Thanked: 9 раз
Is there a special way for upgrading?
Thanked: 179 раз
The plugin works around a single extrafield, so there are no special upgrade instructions except backing up database.
Thanked: 9 раз
{PAGEADD_FORM_AVATAR_TITLE} is not giving any text output
Thanked: 179 раз
Fixed for fresh installs. Otherwise input the extrafield title manually
Thanked: 76 раз
new version http://littledev.ru/news/cotonti/cotontifolio/pageavatar4.html
Thanked: 7 раз
"Fixed for fresh installs. Otherwise input the extrafield title manually" - нрифига не Fixed!
The new version works perfectly, thanks esclkm!
Thanked: 1 раз
its not working with 0.9.19. when you try to upload on the page.edit, nothing happend. I mean it didnt upload image and didnt add data to page_avatar on the database.
Thanked: 1 раз
https://github.com/esclkm/pageavatar is working. If you want thumb, you should use option like "all|datas/photos|thumb_150-200|0||crop"