迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務經(jīng)理
微信掃描以上二維碼
028-61286886
技術(shù)咨詢
求助:想在列表頁下調(diào)用每篇文章內(nèi)容里面所有圖片,圖片數(shù)量是可控。、
如效果
這個簡單,提取content字段的圖片就行了,你想提取幾張就幾張
類別選擇:content(在自定義字段管理里面看),名稱填寫:editor(也在自定義字段管理里面),前綴:填寫 t或者return指定的值,字段標簽生成工具:http://m.apdwn.com/doc/code/field.html
前提content是主表字段才行
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復@迅睿開源社區(qū)技術(shù)-小白 內(nèi)容頁下提取圖片還行。列表頁循環(huán)就不會了!
{content module=news id=$t.id return=r}
{php $arr =dr_get_content_img($r.content,3);}
{var_dump($arr)}
{/content}
使用content 標簽調(diào)用附表字段或者使用聯(lián)查
{php $table= SITE_ID.'_'.MOD_DIR.'_data_0';}
{module action=module catid=$catid join=$table on=id order=displayorder_desc,inputtime_desc page=1 pagesize=4 sbpage=1 urlrule=$urlrule}
這個簡單,提取content字段的圖片就行了,你想提取幾張就幾張
類別選擇:content(在自定義字段管理里面看),名稱填寫:editor(也在自定義字段管理里面),前綴:填寫 t或者return指定的值,字段標簽生成工具:http://m.apdwn.com/doc/code/field.html
前提content是主表字段才行
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復@迅睿開源社區(qū)技術(shù)-小白 內(nèi)容頁下提取圖片還行。列表頁循環(huán)就不會了!
{content module=news id=$t.id return=r}
{php $arr =dr_get_content_img($r.content,3);}
{var_dump($arr)}
{/content}
使用content 標簽調(diào)用附表字段或者使用聯(lián)查
{php $table= SITE_ID.'_'.MOD_DIR.'_data_0';}
{module action=module catid=$catid join=$table on=id order=displayorder_desc,inputtime_desc page=1 pagesize=4 sbpage=1 urlrule=$urlrule}