我使用joomla 3.9.24。在我的模板中,我必须将一个变量传递给组件(特别是com_content /文章)。在实践中,根据在某个位置是否有模块,它必须在文章中报告标题。按照Joomla pass value from component to use in plugin and module中的建议,JRequest已弃用。我写了以下内容: 在模板index.php文件中 title_var = 1;
...
$app = JFactory::getApplication();
$input = $app->input;
$input->set('title_va
我正在尝试为Joomla1.6制作一个jquery模式登录模块。应该允许传递的凭据抛出ajax以由php文件对其进行校对。但幸运的是似乎没有被处决。我的ajax如下所示
$.ajax({
type: "POST",
url: "do-login.php", // Send the login info to this page
data: "username="+$('#username').val()+"&password="+$('#password').val(),
suc
我想知道如何将数据从joomla视图传递到joomla模板。如何传递多个变量?
class CareerformViewCareerform extends JView
{
protected $state;
protected $item;
function display($tpl = null)
{
$app = JFactory::getApplication();
$params = $app->getParams();
// Get some data from the mod
我正在运行Joomla,并寻求您对以下问题的帮助。
假设我的模板中有3个布局,布局文件命名为...
index.php
index2.php
index3.php
我有5个菜单链接,说....
Link 1
Link 2
Link 3
Link 4
Link 5
我要找的是......
对于Link 1, Link 4 and Link 5,我希望Joomla加载常规的index.php,但对于Link 2,我希望Joomla加载index2.php,类似地,对于Link 3,我希望它加载index3.php。
我的意思是。如何将不同的布局分配给不同的菜单ID?
我知道有一个内置的选项,可以根