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
9 mal
Is there a special way for upgrading?
223 mal
The plugin works around a single extrafield, so there are no special upgrade instructions except backing up database.
9 mal
{PAGEADD_FORM_AVATAR_TITLE} is not giving any text output
223 mal
Fixed for fresh installs. Otherwise input the extrafield title manually
76 mal
new version http://littledev.ru/news/cotonti/cotontifolio/pageavatar4.html
7 mal
"Fixed for fresh installs. Otherwise input the extrafield title manually" - нрифига не Fixed!
The new version works perfectly, thanks esclkm!
1 mal
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.
1 mal
https://github.com/esclkm/pageavatar is working. If you want thumb, you should use option like "all|datas/photos|thumb_150-200|0||crop"