Restart Apache (after making Apache config changes or PHP changes)
apachectl restart
or:
/sbin/service httpd restart
Restart MariaDB (after making any sort of config change)
systemctl restart mariadb
<div id="print-contents"> | |
<!-- Your content goes here. --> | |
</div> | |
<script> | |
printDivCSS = new String ('<link href="../css/main.css" rel="stylesheet" type="text/css">') | |
//The line referencing your CSS will keep your printed div formatting looking correct. | |
function printDiv(divId) { | |
window.frames["print_frame"].document.body.innerHTML=printDivCSS + document.getElementById(divId).innerHTML; | |
window.frames["print_frame"].window.focus(); |
#set ($query="+structureName:Blog +(conhost:48190c8c-42c4-46af-8d1a-0cd5db894797 conhost:SYSTEM_HOST), 10, modDate desc") | |
<xml version="1.0" encoding="UTF-8"> | |
<rss version="2.0"> | |
<channel> | |
<pubDate>1 Jan 2006 23:23:04 GMT</pubDate> | |
<title>Company Blog</title> | |
<description>Tips and Tricks</description> | |
<link>http://www.website.com/blog/</link> | |
<copyright>2006-2015 Company Name</copyright> |
#foreach($key in $context.keys) <pre> $key</pre> #end |
$("a").each(function() { | |
if($(this).parents('.info').length) { | |
var href = $(this).prop('href'); | |
var href = href.replace("https://somewebsite.com/", "https://someotherwebsite.com/"); | |
$(this).prop('href', href); | |
$(this).attr('target','_blank'); | |
} | |
}); |
$( document ).ready(function() { | |
$(".container a").each(function() { | |
var pageUrl = $(this).attr("href"); | |
if(pageUrl == null) { | |
var pageUrl = "nothing"; | |
} | |
if(pageUrl.indexOf("://") > 0 && pageUrl.indexOf("yourdomain.com") < 0) { | |
$(this).attr("target","_blank"); | |
} |
<?php | |
/** | |
* @package Joomla.Site | |
* @subpackage mod_articles_category | |
* | |
* @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
defined('_JEXEC') or die; |
Restart Apache (after making Apache config changes or PHP changes)
apachectl restart
or:
/sbin/service httpd restart
Restart MariaDB (after making any sort of config change)
systemctl restart mariadb
#set($cont = $dotcontent.query("+identifier:942ec5f5-9d49-4f34-a2ca-109201c4a21b +languageId:1620518258288", 1)) ##using French language id here | |
#set($inode = $cont.get(0).inode) | |
#set($contInFrench = $dotcontent.find("$!{inode}")) | |
<p>SEO Description = $contInFrench.seodescription</p> |
##$result.uri = "/some/address/index" | |
#set($segments = $result.uri.split('/')) | |
#set($segmentOne = $segments[1]) | |
#set($segmentTwo = $segments[2]) | |
$segmentOne = "some" | |
$segmentTwo = "address" |