drupal---链接重定向
我使用 cck 和链接模块为我的“测试”内容类型创建链接字段,现在我希望链接字段可以重定向到实际链接。例如:链接字段由“google”填充,我想要的是当访问者单击链接的名称时,它会重定向到 google.com。任何提示将不胜感激。
i used cck and link module to create a link field for my "test" content type, now i want to the link field can rediect to the actual link. eg: the link field is filled by "google" which i want to is when the visitor click the link's name, it rediects to google.com. any tips would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
转到“admin/content/node-type//fields”(替换为您的案例的测试,因为它是您的内容类型),
然后转到“编辑”您的链接字段,然后在设置下您必须选中“验证 URL”并取消选中“可选URL”,然后同时选择“必需标题”,然后保存,
现在当您创建新的“测试”内容时,必须输入链接标题和链接URL,
当它显示时,它只会显示重定向到链接 URL 的链接标题,
此致,
go to "admin/content/node-type//fields" (replace with test for your case, as it's your content type),
then go to "edit" your link field, then under settings you must check "Validate URL" and uncheck "Optional URL", then also select "Required Title", and save,
now when you create new "test" content, you must enter both link title, and link URL,
when it's showed, it'll only shows the link title redirecting to the link URL,
Regards,