Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

HTML component name code
(1 viewing) (1) Guest
If you want to ask question about the product features, licensing conditions or other questions prior to purchase, please, do it here.
  • Page:
  • 1

TOPIC: HTML component name code

HTML component name code 7 years, 6 months ago #47954

I would like to replace a specify COMPONENT name with another in ALL Joomla webpage HTML FRONT-END CODE but obviously this component should continue to work.
In other words, I have a classic standard website with Joomla 3.6 and installed “com_xyzcomponentname” component working with PHP code and relative PHP database

Obviously on Joomla Front-end side in the browser address bar are called strings as
/index.php?option=com_xyzcomponentname&Itemid=100
and on my homepage index.php are visible the follow html code

<!DOCTYPE html>
<html lang="en-gb" dir="ltr">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8" />
<base href=" www.mydomain.com/index.php/en/index.php " />
<meta name="generator" content="Joomla! - Open Source Content Management" />
<title>My web page</title>
<link rel="stylesheet" href="/components/com_xyzcomponentname/assets/css/jquery-ui.min.css" />
<link rel="stylesheet" href="/components/com_xyzcomponentname/assets/css/xyzcomponentname.css" />
<link rel="stylesheet" href="/components/com_xyzcomponentname/assets/css/xyzcomponentname-mobile.css" />
<link rel="stylesheet" href="/components/com_xyzcomponentname/assets/css/jquery.fancybox.css" />
<link rel="stylesheet" href="/modules/mod_xyzcomponentname_item.css" />
<script src="/components/com_xyzcomponentname/assets/js/jquery-1.11.1.min.js"></script>
<script src="/components/com_xyzcomponentname/assets/js/jquery-ui-1.11.1.min.js"></script>
<script src="/components/com_xyzcomponentname/assets/js/jquery.fancybox.js"></script>
<script src="/components/com_xyzcomponentname/assets/js/xyzcomponentname.js"></script>
</head>
<body class="site com_xyzcomponentname view-contentsearch no-layout no-task itemid-100">
<div class="body">
. . .
</body>
</html>


question 1) I would like to set “JoomSEF free or paid” according to obtain SEF URLs like this
/index.php/mypersonalstring/?Itemid=100
which is equivalent to
/index.php/com_xyzcomponentname/?Itemid=100


question 2) May I change “com_xyzcomponentname” in all parts with “com_mypersonalstring” and obviously html code on my homepage index.php become

<!DOCTYPE html>
<html lang="en-gb" dir="ltr">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta charset="utf-8" />
<base href=" www.mydomain.com/index.php/en/index.php " />
<meta name="generator" content="Joomla! - Open Source Content Management" />
<title>My web page</title>
<link rel="stylesheet" href="/components/com_mypersonalstring/assets/css/jquery-ui.min.css" />
<link rel="stylesheet" href="/components/com_mypersonalstring/assets/css/mypersonalstring.css" />
<link rel="stylesheet" href="/components/com_mypersonalstring/assets/css/mypersonalstring-mobile.css" />
<link rel="stylesheet" href="/components/com_mypersonalstring/assets/css/jquery.fancybox.css" />
<link rel="stylesheet" href="/modules/mod_mypersonalstring_item.css" />
<script src="/components/com_mypersonalstring/assets/js/jquery-1.11.1.min.js"></script>
<script src="/components/com_mypersonalstring/assets/js/jquery-ui-1.11.1.min.js"></script>
<script src="/components/com_mypersonalstring/assets/js/jquery.fancybox.js"></script>
<script src="/components/com_mypersonalstring/assets/js/mypersonalstring.js"></script>
</head>
<body class="site com_mypersonalstring view-contentsearch no-layout no-task itemid-100">
<div class="body">
. . .
</body>
</html>


question 3) The “xyzcomponentname” script component sends an email with direct access as this link:
/index.php?option=com_xyzcomponentname&Itemid=100
Do it will be replaced with following?
/index.php?option=com_mypersonalstring&Itemid=100
or
/index.php/mypersonalstring/?Itemid=100

Waiting for your kind replay....
Last Edit: 7 years, 6 months ago by marcelitox.
The topic has been locked.

Re: HTML component name code 7 years, 6 months ago #47955

  • dajo
  • OFFLINE
  • Posts: 5069
Hello,

Unfortunately, JoomSEF is not able to make these modifications, it can't handle URLs for stylesheets or JS scripts for example, it can only rewrite hyperlinks on the website and you would need to implement a custom JoomSEF extension for your component for that to work.

In your case I think the best options are to implement a system Joomla plugin which will search for "com_xyzcomponentname" and replace it with "com_mypersonalstring" in the HTML output and then set-up a RewriteRule in .htaccess file to handle the replaced URLs correctly.
The links in e-mails will probably require some other handling, depending on how they're generated from the component.
ARTIO Support Team
The topic has been locked.
  • Page:
  • 1
User Login Empty