Joomla Hosting BLOG

Blog about Joomla, Technologies and Hosting Service

Joomla Hosting - ASPHostPortal.com :: What's New In Joomla 3.4.8?

clock January 6, 2016 19:24 by author ben

What's New In Joomla 3.4.8?

Joomla has just released version 3.4.8 of its open-source content management system (CMS) in an effort to lock down two new vulnerabilities, one of which could grant attackers full control of an affected website. As noted by SecurityWeek, the severity of these flaws didn’t go unnoticed: Symantec tracked an average of 16,000 hits per day attempting to exploit the issue. Here’s a rundown of what’s at risk with an unpatched Joomla install.

Joomla 3.4.8 fixes some issues found in the 3.4.7 release on Monday to do with browser sessions. All reported bugs from the 3.4.7 update have been fixed in this release:

  • Users were unable to edit or create items after the 3.4.7 update
  • Fatal error about connection->stat() not existing on external database connections
  • After session timeout users could still navigate the backend but without being able to create/edit items or use pagination/filters

Joomla Security Risks

For almost a decade, a critical remote command execution vulnerability has existed in Joomla; versions 1.5 through 3.4.5 are affected by CVE-2015-8562. According to Ars Technica, while Joomla security teams patched the vulnerability within two days, the bug was already being exploited in the wild on IP addresses 146.0.72.83, 74.3.170.33 and 194.28.174.106. In addition, any events using either “JDatabaseDriverMysqli” or “O:” in the user agent were likely attack vectors.

So what’s the big risk here? CVE-2015-8562 leverages an issue with poor filtering when Joomla saves browser session values. As detailed by Sucuri, exploiting this flaw and combining it with the result of MySQL meeting a UTF-8 character that isn’t supported by uft8_general_ci — which causes data truncation from a specific value — it’s possible to launch an attack that could fully compromise servers. Cybercriminals then use the servers as malware hosts or sell access to them for a fee on the Dark Web.

Big Numbers

Given the relative simplicity of the flaw and the substantial impact if exploited, its no wonder attackers were eager to jump on the problem in the wild. In an effort to determine which servers are still vulnerable, cybercriminals have been swinging for the fences, sending out HTTP requests and analyzing the responses of phpinfo() and eval(chr()) functions to find likely targets. The result? Symantec clocked a high point of more than 20,000 attempts in a single day, with day-to-day averages hovering around 16,000 hits, according to SecurityWeek.

It makes sense that cybercriminals would be working overtime trying to exploit the vulnerability. While WordPress still dominates the CMS marketplace, Joomla holds a solid second place with over 550,000 Web pages using the open-source service, including Linux.com, The Hill online newspaper and Harvard University. Full access to any of these servers would let malicious actors wreak havoc; Malware distribution, DDoS attacks and stolen data are all potential outcomes.

The takeaway here? Even with Joomla security on the ball, there’s no guarantee that existing code flaws won’t crop up and cause problems for big companies. The solution? Active monitoring for starters — just because an application, CMS or cloud-based service seems secure, that’s no reason to turn a blind eye if odd behaviors start to emerge. Immediate patching is also critical. Within two days, Joomla rolled out version 3.4.6 and closed the security hole but in the time hits were already skyrocketing. Two more days and 32,000 attacks could slip through. A week? More than 110,000.

Best Joomla Hosting Recommendation

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. We offers Joomla hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Joomla Hosting, we should be your best choice.



ASPHostPortal.com Proudly Announces DNS Failover Service

clock November 10, 2015 22:06 by author ben

ASPHostPortal.com is an expert web hosting organization that has been around given that 2008. As stated in their mission, their objective would be to offer quality internet hosting solutions with constant innovation and service upgrades at no extra cost to all customers. We build our servers, have our own nationwide fiber network and our own information center. Our hopes are that with our technologies, fantastic people and very first rate facilities we are going to be able to help our buyers attain wonderful success with their websites. Now, we support DNS Failover Service with premium server, high speed connection, and cheap price.

The issue of DNS uptime is often a topic that is ignored until something happens to your website. When you set up your website, you are likely focused on the look of the site and the site's content and SEO rankings. Downtime, however, is an issue that you should also take into consideration before the inevitable happens. You need to ask yourself what you can do to ensure that your site experiences minimal website downtime. You need to ask yourself whether or not your site is capable of handling surges in traffic. You need to consider how you will handle downtime due to things such as configuration errors or even natural disasters.

What you'll do if your website does go down? What will happen if your site monitor's contacts you at two in the morning, alerting you of a site outage? Notification of such an outage will do you no good if you don't have failover support in place. With the right failover support in place, your website traffic can be diverted to another IP address. When your site is back up and running, your site will be diverted back to your primary host. By ensuring proper failover support, you ensure that your customers (and your profits) aren't affected when your primary host goes down.

Aside from world class technologies, the hosting capabilities included are endless. From databases to internet site scripts, e-commerce and multimedia, ASPHostPortal.com provides a significant array of capabilities. ASPHostPortal.com can handle downtime problems with our DNS Failover services. You will not lose your customers and exactly your money. To learn more about our DNS Failover Service, please visit http://asphostportal.com/Windows-Hosting-DNS-Failover-Multiple-Data-Center

About ASPHostPortal.com :
ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET & Linux Hosting. ASPHostPortal.com has ability to support the latest Microsoft, ASP.NET, and Linux technology, such as: such as: WebMatrix, Web Deploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Light Switch, Latest MySql version, Latest PHPMyAdmin, Support PHP 5. x, etc. Their service include shared hosting, reseller hosting, and Sharepoint hosting, with speciality in ASP.NET, SQL Server, and Linux solutions. Protection, trustworthiness, and performance are at the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.



ASPHostPortal.com Proudly Announces DotNetNuke 7.4.2 Hosting

clock November 3, 2015 21:24 by author ben

ASPHostPortal.com is considered one of the best among the many web hosts and is very well-known for reliable servers and most of all exceptional customer service. It relies on the customer satisfaction and hence we offer great prices as well as quality service and most of all the reliability that customers expect in a web hosting site. To keep updated our customer’s website, today we launch DotNetNuke 7.4.2 with cheap price, best support, and high speed connection.

DotNetNuke is the undisputed leader when it comes to Web Content Management for Microsoft ASP.NET. More than 700,000 production websites worldwide use this path breaking technology to manage their websites. DotNetNuke open source Content Management Platform functions as a web application development framework also. This application offers something for everyone so on the basis of your role in the organization you can utilize its powerful utilities to achieve your web initiatives.

DotNetNuke is a brilliant combination of Content management System (CMS) and Web application development framework. This adaptable architecture allows developers to effortlessly add functionality or make changes in the look of the website through the addition of DotNetNuke applications. There are lots of websites where you can find free applications, you can use or customize these applications according to your need. That is reason DotNetNuke has become the first choice of developers.

As one of the most popular and fastest growing hosts, ASPHostPortal.com has exceptional reliability. We have a world class data center that provides top of the industry uptime and multiple functional administrative tools. We offer a top notch and reliable customer service team. Given that Customer Service can be a key differentiator when comparing web hosts, our expert support team always carefully scrutinizes this element. To learn more about our DotNetNuke 7.4.2 Hosting, please visit http://asphostportal.com/Dotnetnuke-7-4-2-Hosting

About ASPHostPortal.com :
ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET & Linux Hosting. ASPHostPortal.com has ability to support the latest Microsoft, ASP.NET, and Linux technology, such as: such as: WebMatrix, Web Deploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Light Switch, Latest MySql version, Latest PHPMyAdmin, Support PHP 5. x, etc. Their service include shared hosting, reseller hosting, and Sharepoint hosting, with speciality in ASP.NET, SQL Server, and Linux solutions. Protection, trustworthiness, and performance are at the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.



Joomla Hosting - ASPHostPortal.com :: CSS Hacks to fixing your Joomla design issues in different browsers

clock October 29, 2015 18:51 by author ben

If you are being tired of fixing your Joomla design issues in different browsers, then it’s time for moving on to some safe and permanent CSS Hacks. We usually face difficulties to implement designs or fixing css issues in the IE( with specific versions ), Chrome, Safari, Opera browsers etc. We can solve them with the help of CSS Hacks, though they also create problem sometimes. So without wasting any time we should proceed with the trust.

Let’s start with a simple part of CSS mentioned as below. We want the below CSS( make the color to white ) to be worked on all the browsers with most of the current/previous versions.

/* Dummy CSS to work with */
#selector {
  color: #000000;
}

For IE( Internet Explorer ):

/* IE 10( specific ) */
@media screen and (-ms-high-contrast: active),
(-ms-high-contrast: none) {
  #selector {
    color: #FFFFFF;
  }
}

/* IE 9( specific ) */
#selector {
  color: #000000; /* Ingeneral, for all browsers */
  color: #FFFFFF \0/IE9; /* Only for IE 9 */
}

/* IE 8( specific ) */
@media \0screen {
  #selector {
    color: #FFFFFF;
  }
}

/* IE 7( specific and below version ) */
#selector {
  *color: #FFFFFF;
}

For Google Chrome and Safari:

For Chrome and Safari we use same hacks with some little tweaks

/* Google Chrome */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  #selector {
    color: #FFFFFF;
  }
}

/* Safari( in MAC ) */
@media screen and (-webkit-min-device-pixel-ratio:0) {
  ::i-block-chrome,#selector {
    color: #FFFFFF;
  }
}

For Opera:

/* Opera( 11 and earlier version ) */
@media not screen and (1) {
  #selector {
    color: #FFFFFF;
  }
}
@media not screen and (orientation) {
  #selector { /* for the earlier versions of Opera */
    color: #FFFFFF;
  }
}


As it’s said that all these work fine but sometimes they also fail. So be happy to keep trying and find your solutions. Also your suggestions are acceptable. Happy knowledge sharing.

Best Joomla Hosting Recommendation

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. We offers Joomla hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Joomla Hosting, we should be your best choice.



Joomla Hosting - ASPHostPortal.com : Adding Javascript snippets to Joomla

clock October 29, 2015 00:19 by author ben

What is JavaScript?

JavaScript is a programming language used to make web pages interactive. It runs on your visitor's computer and doesn't require constant downloads from your website. JavaScript is often used to create polls and quizzes. JavaScript support is built right into all the major web browsers, including Internet Explorer, Firefox and Safari. Provided that the visitors to your site are using web browsers that support JavaScript (most do) and have JavaScript enabled (it is by default), then your JavaScript will run when they visit the page.

Module position basics

If you've been working with Joomla, you know that a Joomla template consists of HTML and some PHP snippets.

For one, it contains a component area where the output from the different components are shown (articles, blog lists, third-party components etc). A Joomla template also contains several PHP snippets, which are called module positions. You can assign modules to these positions and they will appear in the given position in your template.

Easier way to insert scripts

Of course, you can use an extension for each third-party script you want to enter. Probably there is one available (isn't there for almost anything?). The problem with this approach, though, is that you need to keep track of X number of extensions and their updates. And for each extension you add to your site, the chance of being hacked increases. After all, code is made by humans, and humans make mistakes.

For those reasons, I prefer using the 'Custom HTML' module when I need to insert code snippets. For best results, you should have special module positions for the JavaScript snippet modules. That way, you can control where in the source code the snippets appear, something which can be crucial for the workings of the snippet.

The method is simple, but effective.

You will need three module positions, and as many Custom HTML modules as you need (one for each snippet).

Inserting the module positions in your template

In order to make this as flexible as possible, you need three module positions:

  • endhead
  • topbody
  • endbody

Now you're ready to insert the module positions. You will need to enter the following code into your template index.php file. You'll find it here: /templates/yourtemplatename/index.php.

Make sure to create a backup of your index.php file before messing with it.

Enter this just before the </head> tag.

<jdoc:include type="modules" name="endhead" />

Enter this just after the <body> tag:

<jdoc:include type="modules" name="topbody" />

Enter this just before the </body> tag:

<jdoc:include type="modules" name="endbody" />

Save your template.

The next step is to add the actual modules that will hold your JavaScript. But before that, we need to do some adjustments to the text editor settings.

Allowing JavaScript in your editor

To be able to add the JavaScript to the Custom HTML module, you need to allow Javascript in your text editor. If you use TinyMCE, you find this setting in Extensions -> Plugin Manager -> Editor - TinyMCE 2.0. Make sure you have the setting for 'Code Cleanup on Startup' set to 'Off' and the 'Code Cleanup on Save' to 'Never'.

If you're using JCE, go to Groups -> Default (or other group you're using) -> Editor Parameters. Make sure the 'Allow Javascript' setting is set to 'Yes'.

Adding the script to the Custom HTML module

Now, you need to add the actual Javascript snippet to a Custom HTML module and assign it to the appropriate module position.

I'll use Google Analytics as an example. Go to the Module Manager and click New. Choose the 'Custom HTML' module type. You will see the module parameters.

Enter a title for the module, for instance 'Google Analytics code', enable the module, choose not to show the module title.

For the Google Analytics code, we assign the module to the newly created 'endhead' position. This has the Google Analytics snippet appear just before the closing HEAD tag (</head>). As you have not entered the new module positions to the template XML file, they will not appear in the module position drop-down. Not to worry: You can simply enter the position name 'endhead' in the field directly.

Lastly, enter the HTML mode of your editor and paste the Google Analytics code into the window. You can now save the module.

Best Joomla Hosting Recommendation

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. We offers Joomla hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Joomla Hosting, we should be your best choice.



ASPHostPortal.com Announces New Data Center in Canada

clock October 27, 2015 21:34 by author ben

ASPHostPortal.com is a web hosting provider dedicated to providing high quality web hosting at an affordable price. We care for the clients, ensuring each and every client is more than just satisfied day in and day out. We only use the best hardware, super fast network, covered by 24/7 Support Team. Today, we launch new high quality data center in Toronto, Canada.

Our Canada data center is equipped with raised floors, climate control, 24/7 security, fire suppression systems, water detection systems, UPS & generators to ensure that all customer data is safe and secure. You can be rest assured that your websites or dedicated servers are secured, managed and monitored in a state-of-the-art facility, and a customer have access to our engineers and the most reliable Support team.

As a leading small to mid-sized business web hosting provider, we strive to offer the most technologically advanced hosting solutions available to all customers across the world. Security, reliability, and performance are at the core of their hosting operations to ensure each site and application hosted on the servers is highly secured and performs at optimum level. Unlike other web hosting companies, we do not overload the servers.

ASPHostPortal.com is trusted web hosting provider since 2008. Our data center is located on 4 continents (US, Europe, Asia, and Australia). If you need custom build server configuration, please visit our website and contact our Sales team. We will work with people to create a custom quote at best possible price. To learn more about our new data center, please visit http://asphostportal.com/Hosting-Data-Center-Canada

About ASPHostPortal.com :

ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET & Linux Hosting. ASPHostPortal.com has ability to support the latest Microsoft, ASP.NET, and Linux technology, such as: such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, Latest MySql version, Latest PHPMyAdmin, Support PHP 5.x, etc. Their service include shared hosting, reseller hosting, and sharepoint hosting, with speciality in ASP.NET, SQL Server, and Linux solutions. Protection, trustworthiness, and performance are on the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.



Joomla Hosting - ASPHostPortal.com :: How to change default SEBLOD Joomla message form

clock October 22, 2015 18:08 by author ben

By default, after a submission of a form, SEBLOD display the message below :

Message


Successfully Saved

This message can be changed in the tab configuration of the form. Sometime, you need to change this message, depending on the informations that the user has submitted. For that, you must use the plugin field " Code", on the event "Afterstore".

Add a field Code Afterstore in the form. In this event, you have access to 2 variables :

    $fields  => the array of each fields in the form
    $config  => an array of various parameters :
        $config['message'] => the message to display
        $config['message_style'] => the Joomla! style of message (message, notice, warning,...)
        $config['pk']  => the id of the new content created
        $config['isNew']  => 1 : creation  /  0 : edition
        ...


For example, setting the $config like that :

$config['message'] = 'Thank '.$fields['first_name']->value.' '.$fields['last_name']->value.'for join us,<br />';
$config['message'] .= 'find here your ID : '.$config['pk'];
$config['message_style'] = 'message';


will display the joomla mesage :

Message

Thank Ben Thomas for join us,
find here your ID : xxxxxx

Best Joomla Hosting Recommendation

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. We offers Joomla hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Joomla Hosting, we should be your best choice.



Joomla Hosting - ASPHostPortal.com : How to Customize Joomla CSS?

clock October 21, 2015 23:47 by author ben

How to Customize Joomla CSS?

CSS

  • CSS stands for Cascading Style Sheets
  • CSS describes how HTML elements are to be displayed on screen, paper, or in other media
  • CSS saves a lot of work. It can control the layout of multiple Web pages all at once
  • External Style Sheets are stored in CSS files

CSS in Joomla Template

Some templates use only one CSS file (called template.css, mostly), others have several. For optimal page performance, you should keep the number of CSS files to a minimum. This reduces the number of server requests necessary to show the page. You may sometimes see that the template uses a main CSS file which imports all of the other files by the following syntax (example):

@import url('reset.css');
@import url('joomla.css');
@import url('typography.css');
@import url('modules.css');
@import url('custom.css');

Don't repeat styles if you don't need to

When styling elements with CSS it's important to be specific. And to keep your stylesheet lean. What I mean is you don't need to repeat styling just because you want to restyle an element. Let's say, for instance, that you have the following style for the H1 tag in your main CSS file (template.css or similar):

h1 {
font-size:24px;
color:#d7d7d7;
margin-bottom:1em;
text-transform:uppercase;
}

The normal styling for H tags are bold. Maybe you want to add the styling to make the header tag use the normal and not the bold style of the font. And, at the same time you don't want to have uppercase letters in the H1. Of course, you could do it like this, adding the following code to your custom.css:

h1 {
font-size:24px;
color:#d7d7d7;
margin-bottom:1em;
text-transform:none;
font-weight:normal;
}

This works, but it's not good code. You repeat all of the styling even though you just want to alter one style and add another. This is a better way:

h1 {
text-transform:none;
font-weight:normal;
}

In this case, you only add the styles that are different from the original. The other styles are left untouched.

Use Firebug to Test Your CSS

One of the tools I use to test my CSS is called Firebug. It's an add-on to Chrome which gives you a lot of information about the CSS and HTML structure of a web page. When you have Firebug installed, you can right-click on an element and choose 'Inspect element'. The Firebug window will open at the bottom of the screen. Now, you can see the HTML structure (left) and the CSS (right).

Now the fun begins! You can start experimenting with the CSS directly in Firebug. Want to change the margin of an element? The background color? Remove the border? Every tweak you would like is available to play with, and the result is instantly shown in the browser. Of course, if you refresh the page the changes are lost. When you're happy with your changes, copy the CSS into your custom CSS file and upload to your server.

You can also use the Inspector or Firebug Lite in Google Chrome or Safari.

Take a look at my previous post about 8 Free Firefox extensions every Joomla user should have.

Take some time to learn CSS

I believe every Joomla user / web site developer should learn some CSS and know HTML by heart. It makes it so much easier to modify your templates and to achieve what you (and your client?) wants.

It's not like learning PHP. I hardly know more than a handful things about PHP. HTML and CSS, however, are like second nature to me. That's because I've invested time into learning and practicing the use of these skills. This is especially true for CSS.

Easy to get started with CSS and Joomla

The easiest way of starting to learn CSS is to look at your existing template.css. Look at the structure of it and try changing some of the styles. Do a backup of the file first.

You could try and change the header tags first. Want the H2 tag to be smaller? You got it :) And now it's a site-wide change, valid for all instances of the H2 tag. Other tags to change are the a (link) tag, the p (for instance adjusting the line spacing) and the UL and LI tags (bullet list).

Best Joomla Hosting Recommendation

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. We offers Joomla hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Joomla Hosting, we should be your best choice.



ASPHostPortal.com Announces New Data Center in India

clock October 20, 2015 09:30 by author ben

As the commitment to customers to provide global hosting solution, ASPHostPortal.com is now operating servers that are located in the prestigious, state-of-art India Data Center. Their data centers are strategically located around the country to provide customers with the highest levels of availability, service and support on the market.

Located in Chennai (India), our data center has a capacity to hold about 40,000 servers. Backed by well-trained, experienced system engineers, network specialist and electrician, you can be rest assured that your site on this data center is maintained professionally. All our servers are equipped with minimum Intel Dual Processor Multi Core, 8 GM RAM and the fastest 1,000 Mbps connection backbone. This is to ensure that all sites hosted on their server has an access to the best performance, reliability and connectivity feature.

We operate the Screaming-Fast Network™, featuring multi-homed bandwidth with connections to over 40 networks. The route traffic over major Tier 1 Internet backbones such as UUNet/MCI, Level 3, NTT/Verio, and AboveNet, with no low-quality bandwidth and plenty of network capacity for maximum reliability and scalability.

With 10 years combined experience in ASP.NET, PHP, Network Administration, System Integration and related technologies, ASPHostPortal.com are an expert in the hosting market. We provide shared hosting, cloud hosting, reseller hosting, Sharepoint hosting, etc. with cheap price, complete features, uptime and 30 days money back guarantee. In addition, we have been awarded as one of the fastest hosting companies in the industry because of the good hosting performance this web host provides. To learn more about our new data center, please visit http://asphostportal.com/Hosting-Data-Center-India

About ASPHostPortal.com :
ASPHostPortal.com is The Best, Cheap and Recommended ASP.NET & Linux Hosting. ASPHostPortal.com has ability to support the latest Microsoft, ASP.NET, and Linux technology, such as: such as: WebMatrix, WebDeploy, Visual Studio 2015, .NET 5/ASP.NET 4.5.2, ASP.NET MVC 6.0/5.2, Silverlight 6 and Visual Studio Lightswitch, Latest MySql version, Latest PHPMyAdmin, Support PHP 5.x, etc. Their service include shared hosting, reseller hosting, and sharepoint hosting, with speciality in ASP.NET, SQL Server, and Linux solutions. Protection, trustworthiness, and performance are on the core of hosting operations to make certain every website and software hosted is so secured and performs at the best possible level.



Joomla Hosting - ASPHostPortal.com :: 6 Steps to Make Different Category Layout in Joomla

clock October 15, 2015 06:39 by author ben

If you’re reading this post, then this means that most likely you have reached a level, in Joomla, where you know that you can override the default layout of any view in any component by copying template files to the html directory of the template and then modifying these files. For example, if you want to override the default Category Blog layout, you will need to do the following:

  • Download, through FTP, the files blog.php, blog_item.php, and blog_links.php from the /components/com_content/views/category/tmpl directory.
  • Make some changes to your taste to the above files.
  • Upload them to the /templates/[your template name]/html/com_content/category folder (you will need to create this directory structure if it doesn’t already exist).
  • That’s it! You have now overridden the default layout for the blog layout. Joomla will now use the files in the html directory to display any page using the Category Blog menu item type.

But, what if you have a certain category that needs to have a unique, different blog layout than the others. What will you do?

Unfortunately, the above method will not work because the overridden template is applied across the board: all the Category Blog pages will have the same look and feel. Thankfully, there is another, even more powerful method, that can accomplish exactly what you want. You just need to create a new layout and then assign the menu item to that layout. In other words, you will have another menu item type (which is similar to the Category Blog menu item type)!

Here’s how to do this:

  1. Download the files blog.xml, blog.php, blog_item.php from the /components/com_content/views/category/tmpl directory.
  2. Rename the downloaded files to mylayout.xml, mylayout.php, and mylayout_item.php respectively.
  3. Open the file mylayout.xml in a text editor and 1) change the string “COM_CONTENT_CATEGORY_VIEW_BLOG_TITLE” to “My Layout”, and 2) change the string “COM_CONTENT_CATEGORY_VIEW_BLOG_OPTION” to “My Layout” as well.
  4. Make the appropriate layout modifications to mylayout.php and mylayout_item.php to accommodate the unique look & feel for that particular category.
  5. Upload the renamed files to the /templates/[your template name]/html/com_content/category directory.
  6. Now create a menu item of type My Layout and you should see that the layout that you have just created is applied!

Wonderful, huh? And the best thing is that you haven’t made a single code change to Joomla’s core (or any Joomla file for that matter – core or non-core), which means that your newly created layout will not be overwritten/removed by a future Joomla update!

Now, at first glance, the above process might seem a bit complicated, but it’s not – it’s really straightforward. It takes just a tiny bit of time if you follow the instructions.

Best Joomla Hosting Recommendation

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. We offers Joomla hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Joomla Hosting, we should be your best choice.



About ASPHostPortal.com

We’re a company that works differently to most. Value is what we output and help our customers achieve, not how much money we put in the bank. It’s not because we are altruistic. It’s based on an even simpler principle. "Do good things, and good things will come to you".

Success for us is something that is continually experienced, not something that is reached. For us it is all about the experience – more than the journey. Life is a continual experience. We see the Internet as being an incredible amplifier to the experience of life for all of us. It can help humanity come together to explode in knowledge exploration and discussion. It is continual enlightenment of new ideas, experiences, and passions

Corporate Address (Location)

ASPHostPortal
170 W 56th Street, Suite 121
New York, NY 10019
United States

Tag cloud

Sign in