Kingsley |
|
---|---|
http://www.cotonti.com/extensions/files-media/pagemavatar
How exactly does this work? Call the same way as pageavatar?
Although installed and all tags added to the corresponding tpls, it still says the page edit tags are missing. |
lukgoh |
|
---|---|
I don't have a computer to check this at the minuet, but take a look at the plugins php files to see what tags it is assigning. For example see where is says something like $t assign -> "TAG_NAME" = what the tag is/does.
Then just make sure you have the same tags in your tpl file.
I hope this helps, hopefully I will get my computer sorted and will be able to have a proper look.
Luke.
|
Kingsley |
|
---|---|
strange thing is, when I go to edit page, the output of the plugin is visible. I can select file(s), add file (s), but it doesn't upload. it returns to the edit page. in stead of publishing the page. |
lukgoh |
|
---|---|
Is the folder it is uploading to writable? |
Trustmaster |
|
---|---|
Here are some example tags usage for this plugin. In page.add.tpl, just this: {PAGEADD_FORM_MAVATAR} In page.edit.tpl it's a bit more complex: <ul> <!-- BEGIN: PAGEMAVATAR_ROW --> <li><em>{PAGEEDIT_FORM_MAVATARTITLE}:</em> {PAGEEDIT_FORM_MAVATARFILE} {PAGEEDIT_FORM_MAVATAR} {PAGEEDIT_FORM_MAVATARDELETE}</li> <!-- END: PAGEMAVATAR_ROW --> </ul> In page.tpl it's something like this: <!-- IF {PAGE_MAVATAR.1} --> <a href="{PAGE_MAVATAR.1}" title="{PAGE_MAVATARDESC.1}"> <img src="{PAGE_M__MAVATAR.1}" alt="{PAGE_MAVATARDESC.1}" /> </a> <!-- ENDIF --> <!-- IF {PAGE_MAVATAR.2} --> <a href="{PAGE_MAVATAR.2}" title="{PAGE_MAVATARDESC.2}"> <img src="{PAGE_M__MAVATAR.2}" alt="{PAGE_MAVATARDESC.2}" /> </a> <!-- ENDIF --> <!-- IF {PAGE_MAVATAR.3} --> <a href="{PAGE_MAVATAR.3}" title="{PAGE_MAVATARDESC.3}"> <img src="{PAGE_M__MAVATAR.3}" alt="{PAGE_MAVATARDESC.3}" /> </a> <!-- ENDIF --> <!-- IF {PAGE_MAVATAR.4} --> <a href="{PAGE_MAVATAR.4}" title="{PAGE_MAVATARDESC.4}"> <img src="{PAGE_M__MAVATAR.4}" alt="{PAGE_MAVATARDESC.4}" /> </a> <!-- ENDIF --> May the Source be with you!
|
Kingsley |
|
---|---|
Ah, begin and end tags.. now it works. thx Trust.. Maybe a good idea to create a template for downloads? so this kind of stuff is accessable? |
Trustmaster |
|
---|---|
Full templates might be confusing to find the parts that you need, so I added these example pieces to plugin's page. May the Source be with you!
|
Mr G. |
|
---|---|
or check comments on author's website |
Kingsley |
|
---|---|
#32707 Trustmaster: Added 1 minute later: #32711 Mr G.: |
Mr G. |
|
---|---|
last comment has a link to theme where tags are used. Just download and check files i.e. page.catalog.tpl |
Kingsley |
|
---|---|
@ Mr G. I'm sorry, but that kind of information shouldn't belong in comments. Plugin developer helps himself when he gives an example on how to integrate/operate his/her plugin. It shouldn't be a 'quest'.
Especially when the plugin DB isn't centralized, but divided over multiple sites. That makes in kinda prudent to have a unified format. |
McDuck |
|
---|---|
That was my comment on the site developer. |
Kingsley |
|
---|---|
I am totally not commenting on the work the developers produce (and the time spend. Am gratefull for it). All I am saying thet the likelyhood of their plugin being used on live sites raises significantly with a proper example/documentation. In this example, I would never had guessed that there was a begin and end tag. Simply expected it to function like the pageavatar (single) plugin. (mostly due to the almost indentical name). |
|
Dit bericht is bewerkt door Kingsley (2012-01-18 16:05, 13 jaren ago) |