Joomla

Joomla site Browser title will not change

若如初见. 提交于 2019-12-25 08:18:38
问题 I have cloned a website into a different domain and I am trying to change the browser title that shows up in the website tab. I have changed the page display Browser Page Title on the home page module(which was blank), I have changed the page title, its still showing the same title that was on the old website. I could change something in the code but Im not sure where to find it. Is there another place where this title can be changed from on the menu or code? <?php /** * @package Joomla.Site

Sliding text from under image

一曲冷凌霜 提交于 2019-12-25 08:07:17
问题 I need to show txt nicely sliding from under image after click. When user will click on other image, previous text have to slide out (not be vissible). I am not good in javascript at all. Now I have something like this: .html <a href="#" class="show_hide"><img src="image.jpg" width="100%" height="100px;"></a> <div class="slidingDiv"> <div>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc venenatis auctor quam eget imperdiet. Vestibulum et nibh sit amet lectus mattis rutrum. Nam

variable not work in where clause php joomla

耗尽温柔 提交于 2019-12-25 08:02:07
问题 I have function and my function works good only I do not understand this: <?php // $category output is 23 when I echo $category; and there is no records ->where('d.category_id = ' . (int) $category) // also this method not work ->where('d.category_id = ' . $category) // but this method works ->where('d.category_id = 23') ?> this is full code: $category = $params->get('title'); //echo $category; public static function getSuggested($category) { $db = JFactory::getDBO(); $query = $db->getQuery

Site keeps redirecting to HTTP when I visit HTTPS, for no apparent reason

大兔子大兔子 提交于 2019-12-25 07:58:42
问题 I am trying to get SSL working for my site on a LAMP server. When I type any page address on the site as https://www.example.com it gets redirected to http://www.example.com. I think the SSL would work (or at least I could get it to) if I could get the server to go through HTTPS but it just refuses, and always changes to HTTP. The site utilises Joomla! but I am pretty sure it's not relevant, as: I have another almost identical Joomla! site on the same server, and SSL works successfully. SSL

Run custom php code in joomla module backend page

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 07:20:33
问题 i am using Joomla 2.5 , I am working on a module .My module loads some javascripts in frontend. I want to run few php code in backend, when admin click on save button. How to do that? 回答1: You can write a plugin that uses the event trigger onBeforeSave, then when you hit the save button, the plugin is run. You can do any validation on the data sent by post, if it fails just return false and you will return to your form. You can see some documentation on how to do this here: http://docs.joomla

Multiple models for a view without controllers

两盒软妹~` 提交于 2019-12-25 06:37:48
问题 As I've just started with Joomla component development, this might sound stupid, or might be trivial. I would like to know if its possible to have different models attached to a view, without using separate controllers? My intention is actually to use same model for different views. Thanx in advance... 回答1: Yes, you can load any model in the view with $model = JModel::getInstance('ModelName', 'ComponentNameModel'); 回答2: OK, got it working. Basically you just need to check for the 'view'

Joomla 3 Article Options - How to get article view different from category blog view

筅森魡賤 提交于 2019-12-25 06:34:26
问题 I have a clean install of Joomla 3.2.3 using the default template and testing with it. Here is how I have it set up at the moment: Main Menu with Article >> Category Blog Main Article category 4 Test articles linked to the Main Article category I would like to hide the article author (article options) in the category blog view, but when I click to read the full article I would like to have the article author displayed. When I hide the author in the category blog settings, it also hides the

Mysql data query and the sharp-pound underbar thing [closed]

Deadly 提交于 2019-12-25 05:30:45
问题 This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 7 years ago . I have a mysql query that looks like this $query="SELECT * FROM #__content" . I have no idea what the #__ before content is supposed to mean ? If I have

Seeking Guidance on Implementing HighCharts in Joomla

依然范特西╮ 提交于 2019-12-25 05:23:07
问题 We want to implement HighCharts in our custom Joomla module. Since it's a Javascript library, do we attach it to the view as a reference to the script files? I've also read about a PHP wrapper for HighCharts. Is it advisable to use it instead of the direct Javascript library? 回答1: To embed Javascript files into a Joomla module, you need to use the following code: $document =& JFactory::getDocument(); $document->addScript(JURI::root() . "modules/mod_your_module/file.js"); $document->addScript

jquery toggle sometimes does not work

南楼画角 提交于 2019-12-25 05:17:08
问题 Ok, having an absolute nightmare with a drop down jquery menu. I'm creating a shopping basket and want the user to toggle click the dropdown basket to show the items in the basket. Ive got the content and can do this but its very intermittent! Ive got it to work in jfiddle but not my localhost. I think the problem could be coming here. This is how I run the code... Joomla2.5 - My template - index.php Calls the jquery 1.10.2 Jumi Module - js code to call: cart.js - which calls: Basket.phtml