GetOne()"; finally refresh the page to display the atlas content."/> GetOne()"; finally refresh the page to display the atlas content.">

Home  >  Article  >  CMS Tutorial  >  How does dedecms realize the output of large picture showphoto.htm atlas content

How does dedecms realize the output of large picture showphoto.htm atlas content

藏色散人
藏色散人Original
2019-12-26 09:29:032281browse

How does dedecms realize the output of large picture showphoto.htm atlas content

dedecmsHow to realize the output of large picture showphoto.htm atlas content?

dedecms realizes the introduction method of large picture showphoto.htm output atlas content. Friends in need can refer to the following

Recommended learning: 梦Weavercms

This method is very practical in many places in DEDE.

Open showphoto.php, find

The code is as follows:

require_once(DEDETEMPLATE.'/plus/showphoto.htm'); 
exit();

and add above it:

The code is as follows:

//------------------下为代码------------------// 
//图集大图模式显示图集内容介绍 
$arcRow = $dsql->GetOne("SELECT body FROM `dede_addonimages` WHERE aid='{$aid}'"); 
if(is_array($arcRow)) 
{ 
$arcbody = $arcRow['body']; 
}

Then open showphoto.htm and add code in the appropriate place:

The code is as follows:

<? 
php echo $arcbody; 
?>

Refresh the page to display the album content (introduction)

The above is the detailed content of How does dedecms realize the output of large picture showphoto.htm atlas content. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn