{/dede:loop}"."/> {/dede:loop}".">
Home > Article > CMS Tutorial > How to call the guestbook on the homepage of DreamWeaver
How to call the guestbook on the homepage of DreamWeaver?
Calling the guestbook on the homepage of Dedecms
{dede:loop table='dede_guestbook' sort='dtime' row='10' titlelen='36' typeid='40' if='ischeck=1'} <a href="[field:phpurl/]/plus/guestbook.php"> [field:uname /] <img src="[field:phpurl/]/plus/guestbook/images/[field:face /].gif" alt="" /> [field:msg function="cn_substr('@me',30)"/] [field:ip /] </a> {/dede:loop}
Where [field:uname /] is the nickname of the calling user
a47bca1e484c86aea760de696abb2511 is Call the user avatar
[field:msg function="cn_substr('@me',30)"/] to call the comment content
[field:ip /] to call the IP address of the poster
Knowledge expansion:
We know that using the custom form function provided by DedeCMS, we can create forms as needed for front-end users to submit, such as: online orders, online Some common interactive applications such as registration. So how is it called in the foreground? Many friends have asked questions. Today I will briefly talk about the method of calling the front desk.
dedecms5.6 Custom form content homepage calling code example:
{dede:loop table='dede_diyform1' sort='' row='10' if=''} <a href='[field:lianjie/]' target="_blank">[field:shenghuo/]</a>
{/dede:loop} 'dede_diyform1' is the name of the table you want to call [field:lianjie/] is you If you want the field names of the added table to be displayed immediately after submission without review, select "Full disclosure" in the "Public front list and content page?:" option of adding a new form.
The above is the detailed content of How to call the guestbook on the homepage of DreamWeaver. For more information, please follow other related articles on the PHP Chinese website!