I need to use another image for the K2 article for the another lang. For example, we have 2 languages used for the site: en (by default) and additional pl. In the administrator UI we can edit only general image preview. I made some edits to use another image for …
Read More »Joomla
How to display page title anywhere in Joomla template
This solution was tested on joomla 3, here is the code to use: <h1 itemprop="name"> <?php echo $this->escape($this->item->title); ?> </h1>
Read More »Joomla 1.5 admin panel in Virtuemart does not open sections and icons are not loaded
Today I got this problem on an old project where the entire admin panel worked correctly, but for Virtuemart all links looked like http://domain.ruadministrator/index.php?pshop_mode=admin&page=product.product_list&option=com_virtuemart. There should be a slash after the domain, but there is no slash, and therefore all Virtuemart sections in the admin panel do not work. An …
Read More »How to get a link in an email where the form is filled out via Chronoforms
This task is very simple, for normal CMS. For Joomla, I publish the solution in this article. In the Designer tab, add Custom Code Pure Code – Yes checkbox In the Code line add this one: <input type='hidden' name='page_url' id='page_url' value='<?php echo \JURI::getInstance()->toString(); ?>' /> To display a link in …
Read More »Find anchor in URL and scroll to its id on this page using JS
Here is a case: if a link contains a word, then direct the user to some anchor on the page. I needed this for ChronoForms in Joomla – when filling out the form, the page was updated, and it was necessary to return the user to filling out the form …
Read More »How to display any module in the text of the material in Joomla
The case is simple – in the text canvas, display some module. The implementation is also simple: In the Plugins section, make sure that the Content – Loading Modules plugin is enabled, then edit the material and add this: {loadmodule module_name} where instead of module_name write the name of the …
Read More »Display video instead of preview in K2 Joomla category
The task is to display a video instead of a preview of the K2 material in the general output of materials in the category. here wrote about how to display a video from YouTube instead of a picture of the K2 material inside the material. To display images in categories, …
Read More »Display video instead of preview in K2 Joomla material
The task is to display a video from YouTube on the K2 material page instead of the uploaded image. The output of the image on the site is like this: <?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?> <!-- Item Image --> <div class="itemImageBlock"> <span class="itemImage"> <a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; …
Read More »Removing type=’text/javascript’ and type=’text/css’ from Joomla for validator
At first, as a person from the 17th century, I tried stupidly to remove these types in the template code, but this process did not give a result and the validator continued to show warnings. The solution is simpler than it seems at first: In the folder with the template, …
Read More »301 redirect from index.php except admin folder
Description of the problem – if you add a standard redirect from index.php to the root of the site, this rule will by default apply to the site admins. For Joomla and Вitrix, the result will be the inability to log in to the admin panel, because the index will …
Read More »