dsnw2651 2016-02-17 13:39
浏览 43

修改Anchor CMS中自定义字段的URL

So, I've recently set up a CDN for my website and have been going through and amending all of the URLs.

I need to amend every occurrence of http://helloarchie.blue/ to http://helloarchie.helloarchie.netdna-cdn.com/.

So far so good, except there's one thing I'm stumped on.

I have a custom field set up in the CMS for post thumbnails (the thumbnails that display on the home page). I upload these via the CMS and it automatically puts them in helloarchie.blue/content/ and this is the URL it uses to display them on the live site, and I can't figure out how to change it.

Here's the code for the thumbnail:

<img class="front-tn" src="<?php echo article_custom_field('thumbnail', 'http://helloarchie.helloarchie.netdna-cdn.com/img/template.jpg'); ?>" />

I've also found this in one of the PHP files which looks like it may have something to do with it:

if($value) {
        $html .= '<a href="' . asset('content/' . $value) . '" target="_blank">' . $value . '</a>';
    }

Can I add the URL in there somewhere for it to work?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 python的qt5界面
    • ¥15 无线电能传输系统MATLAB仿真问题
    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀
    • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100