【织梦DeDeCms5.6图集中图片ALT自动提取标题的修改方法】
准备工作
1、确保您的织梦DeDeCms5.6版本正确。
2、准备好FTP客户端,以便远程修改网站文件。
修改步骤
1、进入后台管理
登录到织梦DeDeCms5.6的后台管理界面。
2、定位到图片ALT修改代码
在后台,找到并进入“系统设置”模块。
在“系统设置”中,找到“自定义字段”或“模型字段”设置。
3、修改图片ALT提取代码
在自定义字段或模型字段设置中,找到与图片ALT相关的字段。
修改该字段的值,使其能够提取图片标题,这里需要修改的代码如下:
function getAlt($aid, $catid, $typeid, $flag, $fields, $isdown, $arcmid, $fields_index, $relid, $ismake, $day, $id, $typeid2, $name, $addtime, $newstext, $newstext2, $tags, $url, $ismember, $firsttitle, $restitle, $weight, $islink, $diggtop, $diggnum, $click, $download, $firststring, $titlepic, $ismember2, $username, $pubdate, $updatetime, $truetime, $keywords, $description, $userip, $typeid3, $templateid, $ishtml, $isqf, $isdt, $isding, $istop, $arcrank, $newadd, $isdown2, $isshow, $templets, $setting, $showfields, $fields_item, $htmlfilename, $htmlname, $htmlid, $htmlpath, $htmlurl, $id2, $flag2, $typeid3, $typeid4, $typeid5, $typeid6, $typeid7, $typeid8, $typeid9, $typeid10, $typeid11, $typeid12, $typeid13, $typeid14, $typeid15, $typeid16, $typeid17, $typeid18, $typeid19, $typeid20, $typeid21, $typeid22, $typeid23, $typeid24, $typeid25, $typeid26, $typeid27, $typeid28, $typeid29, $typeid30, $typeid31, $typeid32, $typeid33, $typeid34, $typeid35, $typeid36, $typeid37, $typeid38, $typeid39, $typeid40, $typeid41, $typeid42, $typeid43, $typeid44, $typeid45, $typeid46, $typeid47, $typeid48, $typeid49, $typeid50, $typeid51, $typeid52, $typeid53, $typeid54, $typeid55, $typeid56, $typeid57, $typeid58, $typeid59, $typeid60, $typeid61, $typeid62, $typeid63, $typeid64, $typeid65, $typeid66, $typeid67, $typeid68, $typeid69, $typeid70, $typeid71, $typeid72, $typeid73, $typeid74, $typeid75, $typeid76, $typeid77, $typeid78, $typeid79, $typeid80, $typeid81, $typeid82, $typeid83, $typeid84, $typeid85, $typeid86, $typeid87, $typeid88, $typeid89, $typeid90, $typeid91, $typeid92, $typeid93, $typeid94, $typeid95, $typeid96, $typeid97, $typeid98, $typeid99, $typeid100, $typeid101, $typeid102, $typeid103, $typeid104, $typeid105, $typeid106, $typeid107, $typeid108, $typeid109, $typeid110, $typeid111, $typeid112, $typeid113, $typeid114, $typeid115, $typeid116, $typeid117, $typeid118, $typeid119, $typeid120, $typeid121, $typeid122, $typeid123, $typeid124, $typeid125, $typeid126, $typeid127, $typeid128, $typeid129, $typeid130, $typeid131, $typeid132, $typeid133, $typeid134, $typeid135, $typeid136, $typeid137, $typeid138, $typeid139, $typeid140, $typeid141, $typeid142, $typeid143, $typeid144, $typeid145, $typeid146, $typeid147, $typeid148, $typeid149, $typeid150, $typeid151, $typeid152, $typeid153, $typeid154, $typeid155, $typeid156, $typeid157, $typeid158, $typeid159, $typeid160, $typeid161, $typeid162, $typeid163, $typeid164, $typeid165, $typeid166, $typeid167, $typeid168, $typeid169, $typeid170, $typeid171, $typeid172, $typeid173, $typeid174, $typeid175, $typeid176, $typeid177, $typeid178, $typeid179, $typeid180, $typeid181, $typeid182, $typeid183, $typeid184, $typeid185, $typeid186, $typeid187, $typeid188, $typeid189, $typeid190, $typeid191, $typeid192, $typeid193, $typeid194, $typeid195, $typeid196, $typeid197, $typeid198, $typeid199, $typeid200, $typeid201, $typeid202, $typeid203, $typeid204, $typeid205, $typeid206, $typeid207, $typeid208, $typeid209, $typeid210, $typeid211, $typeid212, $typeid213, $typeid214, $typeid215, $typeid216, $typeid217, $typeid218, $typeid219, $typeid220, $typeid221, $typeid222, $typeid223, $typeid224, $typeid225, $typeid226, $typeid227, $typeid228, $typeid229, $typeid230, $typeid231, $typeid232, $typeid233, $typeid234, $typeid235, $typeid236, $typeid237, $typeid238, $typeid239, $typeid240, $typeid241, $typeid242, $typeid243, $typeid244, $typeid245, $typeid246, $typeid247, $typeid248, $typeid249, $typeid250, $typeid251, $typeid252, $typeid253, $typeid254, $typeid255, $typeid256, $typeid257, $typeid258, $typeid259, $typeid260, $typeid261, $typeid262, $typeid263, $typeid264, $typeid265, $typeid266, $typeid267, $typeid268, $typeid269, $typeid270, $typeid271, $typeid272, $typeid273, $typeid274, $typeid275, $typeid276, $typeid277, $typeid278, $typeid279, $typeid280, $typeid281, $typeid282, $typeid283, $typeid284, $typeid285, $typeid286, $typeid287, $typeid288, $typeid289, $typeid290, $typeid291, $typeid292, $typeid293, $typeid294, $typeid295, $typeid296, $typeid297, $typeid298, $typeid299, $typeid300, $typeid301, $typeid302, $typeid303, $typeid304, $typeid305, $typeid306, $typeid307, $typeid308, $typeid309, $typeid310, $typeid311, $typeid312, $typeid313, $typeid314, $typeid315, $typeid316, $typeid317, $typeid318, $typeid319, $typeid320, $typeid321, $typeid322, $typeid323, $typeid324, $typeid325, $typeid326, $typeid327, $typeid328, $typeid329, $typeid330, $typeid331, $typeid332, $typeid333, $typeid334, $typeid335, $typeid336, $typeid337, $typeid338, $typeid339, $typeid340, $typeid341, $typeid342, $typeid343, $typeid344, $typeid345, $typeid346, $typeid347, $typeid348, $typeid349, $typeid350, $typeid351, $typeid352, $typeid353, $typeid354, $typeid355, $typeid356, $typeid357, $typeid358, $typeid359, $typeid360, $typeid361, $typeid362, $typeid363, $typeid364, $typeid365, $typeid
原创文章,作者:未希,如若转载,请注明出处:https://www.kdun.com/ask/1176648.html
本网站发布或转载的文章及图片均来自网络,其原创性以及文中表达的观点和判断不代表本网站。如有问题,请联系客服处理。
发表回复