在 Joomla 中获取刚刚创建的文章的 SEF URL [英] Get the SEF URLs for just created article in Joomla

查看:18
本文介绍了在 Joomla 中获取刚刚创建的文章的 SEF URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在管理面板中创建新的内容项目时,我想立即知道该项目的 sef url.这可以使用 php 代码吗?

When I create new content item in admin panel I want to know immediately sef url for this item. Is this possible using php code?

推荐答案

说到核心内容管理器,你不能这样做.原因,直到项目没有被保存,它才不会进入数据库,也没有它的 id.您可能会尝试通过 ajax 自动保存和检索数据,但这与裸功能有很大不同.

Speaking about core content manager you not could not do this. Reason, until the item is't saved it is not into the database, and there is no id for it. You may play around with auto-saving and retrieving data by ajax, but it is much different from the bare functionality.

这篇关于在 Joomla 中获取刚刚创建的文章的 SEF URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆