dedecms如何發布相冊圖集
php零幼功到接手直播視頻課:進來念書
dedecms發布圖集之具體點子如下部:
1、后臺創建三個image分揀
2、樹植篇章,每個成文上傳五個圖板
3、/include/extend.func.php 文本中 加入下邊皮代碼
function Getimgurls { global $dsql; $imgurls = $result = ''; $imgrow = $dsql->GetOne ; $imgurls = $imgrow['imgurls']; if { $dtp = new DedeTagParse ; $dtp->LoadSource ; $images = array ; if ) { foreach { if == 'img') { $row = array ; $row['width'] = $ctag->GetAtt ; $row['height'] = $ctag->GetAtt ; $row['imgsrc'] = trim ); $row['text'] = $ctag->GetAtt ; $images[] = $row; } } } $dtp->Clear ; $i = 0; foreach { if break; if { $result .= "<li><img src='{$row['imgsrc']}' alt='{$row['text']}' width='70' height='70'></li>"; } $i++; } return $result; } }
4、網頁中調用
{dede:arclist row=4 typeid =13} [field:id function=Getimgurls /] {/dede:arclist}
后者
{dede:list pagesize='10'} [field:id function=Getimgurls /] {/dede:list}
相關引進:織夢cms
之上就是dedecms如何發布相冊圖集之祥縷始末,更多請關注 小螞螞蟻站長吧網其其它相關篇章!
上一篇:織夢如何去掉index.php
相關推薦