Hot answers tagged

15

TOC of this answer: Content under same Item Id How Duplicate content is created / Dynamic Pages / URLs SEO perspective Dealing with Duplicate content in Joomla References and links 1. Why the Articles are being displayed under the same itemid First of all, this is not the problem why you are getting duplicate urls. The articles are using ...


12

The recent versions of Joomla provide built-in multi-lingual capabalities. However, setting up a multi-language, requires a few more steps than just enabling the plugin and the language switcher module. Briefly the steps are as below: Install the Language Packs, from the Extension Manager -> Install Languages. - This will translate system labels like ...


9

I have done this by creating a module position at the same location with the component and checking if a module is present at this position then display it, otherwise go for the component: Code sample: <main id="content" role="main" class="main"> <?php if ($this->countModules('myposition')) { ?> <jdoc:include type="modules" ...


9

About Joomla Intro & Full Article Text Well, here is how this works: When creating an article, you have the option to insert a "Read More" in your article. What happens when you insert the Read More is that it splits the content of the article into 2 pieces, and it saves these 2 pieces in 2 database columns in the db #__content table. The text before the ...


8

When you are creating "static" pages with a single article menu item, the page will get its title from the menu item. At this point you have an option to override the page title, in the Menu Item settings -> Page Display. Actually the same applies, for every page of almost every front-end component, that you can create pages with their menu items. So, you ...


8

To enhance the given answers here: To include a modul position in your component view and to load modules there, you just have to add echo JHtml::_('content.prepare', '{loadposition yourmodulposition}'); to the view file. The second string with the load position short tag can be replaced with a var which contains more html if you need that. You don't ...


7

When creating anchors, you need to assign the name as an ID of the element, like so: Link: <a href="#contact">Contact</a> Anchor: <div id="contact"> // Your form here </div> When clicked, it will take you to this anchor. If you wish to animate the transition with a smooth scroll, you can use jQuery, like so: jQuery(document)....


7

When you Share something on Facebook, Facebook will use the most recent information that its scraper has cached from your pages. If FB scraper has not yet crawled a page, then it will read your metadata and generate the content for the shared post at that time. Usually it will prefer to see Open Graph meta tags. A sample of og:metatags that can exist on a ...


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 ...


6

The native multi-language system of Joomla is ok if you have a few articles and modules. If you have a lot of articles, modules, it’s not simple to handle because everything is in duplicate. Imagine if you have 500 articles, you will need 500 articles in English, 500 in french, etc. So, i suggest to use a module like this one : http://www.faboba.com/en/...


5

There used to be a Joomla 1.5 era extension called Automatic Menu but I can't find it on the JED that did exactly this, so, I'm guessing it never made it off 1.5. However, in recent times we used a similar feature in SWMenu (we have a Pro license but I believe the feature is the same in the free version). With that we have the category structure in the menu'...


5

You can define an hourly cron job or use phpMyAdmin and execute this SQL: UPDATE `jos_content` c SET c.checked_out = 0, c.checked_out_time = 0 WHERE HOUR(TIMEDIFF(CONVERT_TZ(NOW(), @@session.time_zone, '+00:00'), c.checked_out_time)) >= 2; UPDATE `jos_categories` c SET c.checked_out = 0, c.checked_out_time = 0 WHERE HOUR(TIMEDIFF(CONVERT_TZ(NOW(), @@...


5

Trying to avoid crons whenever possible, but based on the answer from @Farahmand, I put a variation of this code in a User Plugin onUserLogout() event: When any user logs out, the plugin checks-in any of their content, as well as any other check-outs that may have been abandoned. I wanted only certain user groups to be affected, and to insure that any ...


5

Hope this can help you. You need to create a Languaje Content entry for your language. Go to Extensions->Language Manage -> Content And create a new record as shown in the picture In order to get the flag I created a new gif file fo.gif and uploaded to media/mod_languages/images Here is it if you need it


4

The exact steps to do this for #__content are given at this question. The main difference for articles that makes the original tutorial unusuable is that articles do not have the params column, but the attribs column instead.


4

I would recommend the JCE Image Manager, an extension to the popular Joomla Content Editor. It requires a paid subscription, but it allows you to resize your images on upload, and even create thumbnails automatically. The thumbnails can then be used to create a modal popup to display the full size image. Additionally, it includes a basic image editor that ...


4

Yes, with Joomla's JForm, you can use them virtually anywhere - here's a tutorial that might help, and an example to Custom field in a content plugin: <?xml version="1.0" encoding="UTF-8"?> <form> <fields name="params" > <fieldset name="params" > <field name="content_myfield" ...


4

Joomla articles are managed using the Article Manager, in the Content → Article Manager menu. Some of the options to manage articles are: New (see Article editor below) Edit (select an article and click Edit, or click the article title directly) Publish/Unpublish (make selected article(s) visible or invisible to visitors) Featured (Featured articles are ...


4

By default, this is not available in Joomla, however you have 2 options: Rather than assigning multiple categories to your article, you could use tags instead. Cause to be honest, this is kinda of what they are used for. There is an extensions called CW Multicategories which does allow you to assign multiple categories to an article. Even though I have not ...


4

Actually you said it - you need to change the content in the database. For doing such thing from within Joomla, Regular Labs DB Replacer Pro is the tool to use. Supporting regex searches, will allow you to do this change easily and quickly. *Always keep up a backup before working directly with the database, something that DB replacer does.


4

To edit entire HTML output directly, create a system plugin with onAfterRender event. Use application's getBody() method to get the content and setBody() to save the modified content. defined('_JEXEC') or die; plgSystemExample { protected $app; public function onAfterRender() { if ($this->app->getDocument()->type !== 'html') ...


3

'Uncategorised' is the default article category. There's nothing special about it, it behaves like any other category, and you can rename it or delete it (providing any articles it contains are re-assigned) if you want.


3

As best as I've been able to tell, it's simply another category. I've used it as such in the past with no ill consequence, and there doesn't appear to be any core code that does anything special with it. The database structure for it, and any contained articles seems to be identical, and appears on any pages as such.


3

The Automatic Menu Extension that I used from J1.5 was: ArtCats for Joomla!: http://www.orware.com/products/artcats-module/all-pages Its been updated for J3 - and if you want it in your menu then choose a menu system that allows modules inserted. Kazaam: http://extensions.joomla.org/extensions/extension/structure-a-navigation/menu-systems/kazaam If you ...


3

Having looked around a little, I found the following plugin: http://extensions.joomla.org/extensions/structure-a-navigation/menu-systems/menu-editors/20057 Upload, install and enable Once you have your category structure complete, in the plugin settings, select all the categories you wish to use. You will also need to select all subcategories too as it ...


3

You can do this using jQuery (as Lodder suggested). Here's an alternative solution (from this answer at StackOverflow). Place this code in your index.php file: <script> var $root = jQuery('html, body'); jQuery('#contact').click(function() { var href = jQuery.attr(this, 'href'); $root.animate({ scrollTop: $(href).offset().top }, ...


3

You are correct, but you don't need to go down to JTable, if you're following the Joomla way and using JControllerForm as the basis for your view controller e.g. class MycomponentControllerMycontent extends JControllerForm {} and using JModelAdmin as the basis for you components Model e.g. class MycomponentModelMycontent extends JModelAdmin {} Extending ...


3

Take a look at our http://www.neno-translate.com it will fix issues like these when you install it and makes it easy to translate and manage your multilingual content.


3

Gantry has built-in support for columns, and is responsive. You can use it like this (this example will give you 3 columns, each 33.33% wide): <div class="gantry-width-33 gantry-width-block"> <div class="gantry-width-spacer"> <img src="image1.jpg"> <div class="clear"></div> </div> </div> <div ...


3

In Joomla, there's usually several ways to achieve the same (or similar) result. I would suggest that instead of using the blog layout, you should try RokSprocket. It's a free Joomla module that can display your content (articles) in several ways, and filter them by category, similar to a blog layout. The settings allow you to hide the intro text, set ...


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