12

That code is looking in the article text you need to is in the images call. It is json encoded so you have to decoded it first. $images = json_decode($this->item->images); echo $images->image_intro; Have a look at the com_content/article/default.php template to see some of the other parts of data you can use for images.


10

I believe I have your solution, but do NOT hack the core. We felt forced to do that over the years, and we're still paying the price even today, missing updates, revisiting hacks everytime we do update, and general incompatibility with other components. What we now do is this: New table #__content_ext with a key field that is identical to #__content and ...


9

First of all you need to pass article ID with your request. Then you can use JTable class to update the state: public function onAjaxDeletearticle() { // Get id from the request $id = JFactory::getApplication()->input->getInt('data'); // Get the new instance of #__content table $table = JTable::getInstance('content'); // Load the ...


9

The simplest method that I can think is to use the "featured" option on the articles. Mark any article that you want "sticky" as "featured" in the article manager. Then on the menu item for the blog layout, switch to the "blog layout" and look for "article order". Select "Featured Articles Order" to put the featured articles first. The bad side of this ...


8

If you want to hide the Title for "Featured articles" you need to specify that you want Joomla to take the configuration set from those articles. To do that go to Menu -> Main Menu -> Select the Menu which display "Featured Articles" -> Options and set Show Title to "Use Article Settings" Now, go and find your Article in "Article Manager" -> Options and set ...


7

Matt Thomas recently described his method, which I also favour, for creating sticky articles in Joomla 3.x: http://betweenbrain.com/notes/71-sticky-articles-in-joomla-3 In essence all you need to do is order articles by created date and set the creation date on your ‘sticky’ article to something far in the future.


7

The link you're referencing is telling Joomla to use the Contacts component to display information about the contact in the database with id #1...so...you need to log into the administrator, and go to the Contacts component. Once there, there should be a contact with ID #1, but by the sounds of it, that record may be deleted, unpublished, or possibly ...


7

You're going to want to use JInput for this. $jinput = JFactory::getApplication()->input; $option = $jinput->getCmd('option'); // This gets the component $view = $jinput->getCmd('view'); // This gets the view $layout = $jinput->getCmd('layout'); // This gets the view's layout if ($option == 'com_content' && $view == 'category' &...


7

Ok. Solved it. The problem was I was putting the code/ folder in administrator/ root, instead I should have put it inside the template folder (administrator/templates/my_template/code/). Now it works.


7

The were session storage changes in the Joomla 3.4.7 update. To fix the issue, you simply need to logout and log back in before you can make any article changes. Reference: https://docs.joomla.org/J3.x:Unable_To_Edit_Article_3.4.7


6

Articles are for content, not source code. Rule of thumb, different content in different places. If I have to quickly include Javascript, I would recommend NoNumber Sourcerer: http://www.nonumber.nl/extensions/sourcerer DRY principle, don't repeat yourself. Create modules with the Javascript code, and include it with {loadposition module-position}


6

I use J2XML which works great and it's free http://www.eshiol.it/joomla/j2xml/j2xml-1503.html


6

You can try redmigrator(free) or SpUpgrade (commercial). I try redmigrator four days ago and it works very well, if you only need the articles. If you follow the youtube redmigrator tutorial, it should be easy to migrate your content from J1.5 to J3.3 redmigrator Site: http://redcomponent.com/redcomponent/redmigrator redmigrator Tutorial: https://www....


6

You can use JLanguageAssociations::getAssociations. This function will return an array containing associated items. You can also check if if the language filter Items Associations parameter is enabled using JLanguageAssociations::isEnabled();. Here's an example from ROOT/administrator/components/com_content/models/article.php: // Load associated content ...


6

It's actually possible by overriding it via 3rd party plugin. You can create a simple system plugin calling setTemplate() method when the onAfterRoute event occurs : public function onAfterRoute() { $app = JFactory::getApplication(); $view = $app->input->get('view'); if ($view == 'form'){ $app->setTemplate('...


5

You can just add a view override in the template: Understanding Output Overrides http://docs.joomla.org/Understanding_Output_Overrides Component Output Types and Layout Overrides http://docs.joomla.org/Understanding_Output_Overrides#Component_Output_Types_and_Layout_Overrides The override only has to include your new CSS style modification, and the ...


5

Instead of trying to do nested categories you might want to just make a single article and link to that. Then use loadposition (or NoNumber modules anywhere) and just embed some modules INTO the page (not into module positions, though you could also do that). Then you can stick whatever you want on the page, including a module that lists all the categories ...


5

You can link to a category which has two child category (red and blue in your example). Your Menu links to category A which contains category b (blue) and category C (red). You can put your slider in an article which belong to category B or C. Then, you can order your articles.


5

Option 1: Create a menu for your categories and articles. Everytime you add an article to your category, you also add it to your menu. Then you use the menu module to call in that information. It'll be a menu, but it'll look like categories and articles. Option 2: Create multiple modules, one for each category, and call them all into that space. They'll ...


5

If you would like to change the structure/styling for an Article view, you need to create a Template Override, all of which is explained here: http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core Template overrides allow us to edit the view of an extension without editing the core file which may get overridden in an update. So once you ...


5

You can use this language plugin: http://extensions.joomla.org/extension/easy-language Once installed in your article you can do: {lang en}Monday{/lang}{lang es}Lunes{/lang} It will display the text on the selected languaje. Hope it work for you


5

Assuming with fails you mean it simply doesn't show on the article page and not that you are getting any other kind of errors. The code you posted seems okay and should work. So, I guess it might be one of the following reasons: Module is not enabled; - The module must be enabled. Module is not assigned to the current menu item for that article. You ...


5

The data you are looking for is available in same table (#__content) and you will find all the options in attribs column. Note that in MySQL the table will have the db table prefix that you have specified for your database during installation/db creation). And here all the values are storing in the JSON format. { "show_title":"", "...


5

You can use the following code to fetch custom field values by article id <?php JLoader::register('FieldsHelper', JPATH_ADMINISTRATOR . '/components/com_fields/helpers/fields.php'); //load fields helper $customFieldnames = FieldsHelper::getFields('com_content.article', $article_id, true); // get custom field names by article id ...


5

Your plugin appears to be written for a very old version of Joomla! The event in current versions is onContentBeforeSave. You are also missing $context argument. It's a good idea to check for context to make sure that you're modifying the correct content type (e.g. article). public function onContentBeforeSave($context, $article, $isNew) { if ($context !...


4

As far as I know there isn't such component available. That is a pretty neat idea actually. The problem right now with for example the article manager would be that, there is no information stored about who is reading what. We have a hits field and that is all. Something more that I've noticed is that the users table "last logged in" field is immediately ...


4

Is it an error shown by the server or by Joomla? Because I would indeed suspect some server security filter here. Be it mod_security or whatever your hoster came up with.


4

You do not need a plugin for that. Just override a category view and put your check there. For example for the Blog view override blog.php and around line 60 make your check: if ($item->created_by == JFactory::getUser()->id) : echo $this->loadTemplate('item'); } endif; That is of course just an example, but it shows the power of overriding. ...


4

If you're including the JavaScript as a user and customized to your article, then it's fine. Especially if it is different for each article. However if you happen to repeat the same JavaScript code in multiple articles, then there may be better solutions like an alternative article layout. You can read more about alternative layouts here: http://docs....


4

If you have selected category blog view and you need to print the article just after the intro text, try to override the following template: /templates/yourtemplate/html/com_conetnt/category/blog_item.php And paste in this: $option = JRequest::getCmd('option'); $view = JRequest::getCmd('view'); if ($option=="com_content" && $view=="category"...


Only top voted, non community-wiki answers of a minimum length are eligible