简体   繁体   English

Joomla 3.7更改默认注册链接ID

[英]Joomla 3.7 Change Default Registration Link ID

Right now I'm testing a site on local host. 现在,我正在本地主机上测试一个站点。 But to show the error I'm running into, go to this address: 但是要显示我遇到的错误,请转到以下地址:

http://www.bearvalleycomp.com/cust/twoil/index.php/component/users/?view=registration&Itemid=101 http://www.bearvalleycomp.com/cust/twoil/index.php/component/users/?view=registration&Itemid=101

What I want it to do is show the page like this: 我想要它做的是显示这样的页面:

Edit: I don't have enough rep to post more than 2 links...Enter that same link above without the "&Itemid=101" 编辑:我没有足够的代表来发表两个以上的链接...在上方输入相同的链接,但不带“&Itemid = 101”

But I'm lost in the code to find the address to remove the Itemid=101 但是我在代码中迷失了寻找地址以删除Itemid = 101

I have found a guide where I can edit it through the system menu as shown here: 我找到了一个指南,可以在其中通过系统菜单对其进行编辑,如下所示:

https://www.templatemonster.com/help/joomla-3-x-edit-registration-page.html#gref https://www.templatemonster.com/help/joomla-3-x-edit-registration-page.html#gref

But it appears this 3.x might not be updated for the latest edition. 但是似乎此3.x可能没有更新为最新版本。

Any insight would be appreciated. 任何见识将不胜感激。 Thank you 谢谢

After looking through multiple files, I did find the answer to change the link. 浏览了多个文件后,我确实找到了更改链接的答案。 It's located under /modules/mod_login/tmpl/default.php. 它位于/modules/mod_login/tmpl/default.php下。 Down around line 101, I was able to add &Itemid=114 to the end of the index.php?option=com_users&view=registration making it look like this: 在第101行附近,我能够将&Itemid = 114添加到index.php?option = com_users&view = registration的末尾,使其看起来像这样:

index.php?option=com_users&view=registration&Itemid=114 的index.php?选项= com_users&视图=登记&ITEMID = 114

Now when I click on Create an account, I see a page for only registering an account. 现在,当我单击“创建帐户”时,我会看到一个仅用于注册帐户的页面。

However, now I get mail errors but I can look into that later I guess. 但是,现在我收到邮件错误,但我想稍后可以进行调查。

To work around this problem you have to add the register page to a hidden menu (normal menu, but willout position module) and use that alias item on your link. 要变通解决此问题,您必须将注册页添加到隐藏的菜单(普通菜单,但没有位置模块),并在链接上使用该别名项。 This way you can decide which modules to show or not for that particular page. 这样,您可以决定为该特定页面显示或不显示哪些模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM