[TYPO3-dev] Frontend Editing: Edit record from extension in frontend editing is possible?
Rupert Germann
rupi at gmx.li
Thu Apr 20 17:13:03 CEST 2006
Hi guys,
Francesco Pessina wrote:
> Yes you can.
>
> On each record wich you want to show the edit pencil icon you must add the
> following PHP code:
>
> $table_ref = 'name of table wich you want to edit';
> $record_ref = 'id of current record to edit';
[...]
why do you need such an effort? stdWrap is your friend! ;-)
try something like this (example is written for tt_news):
------------------
displayList {
title_stdWrap {
editIcons = tt_news : title, datetime, starttime, endtime,
archivedate, category, author, author_email, keywords, short, bodytext,
image, imagecaption, links, related, news_files
editIcons {
iconImg = <img src="/fileadmin/admin/edit_16.gif">
}
editPanel = 1
editPanel {
label = NEWS
allow = move,new,edit,hide,delete
line = 5
edit.displayRecord = 1
onlyCurrentPid = 0
previewBorder = 4
}
}
}
------------------
(the "title_stdWrap.editIcons = ..." configuration needs to be on one
line of course - linebreaks added by newsreader)
greets
rupert
PS: this example was written on 25.01.2005 in the tt_news newsgroup by
H.Raudenkolb
More information about the TYPO3-dev
mailing list