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

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.


11

Yes is posible, go to each article, from here you can see a Tab called Optionsat the bottom you can see the field Read More Text, see the screenshot. Regards.


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

JLayoutHelper renders layouts originally from /layouts folder. First parameter is basically path to file. Just replace . with / in your mind :). So readmore.php is located at /layouts/joomla/content/readmore.php Copy it to templates/YOUR_TEMPLATE/html/layouts/joomla/content/readmore.php and edit it there.


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.


5

The more standard approach would probably be to use a plugin to catch the JForm object after the XML has been processed but before it has left the model to make your changes. An example of that function would be like this: function onContentPrepareForm($form, $data) { if (!($form instanceof JForm)) { $this->_subject->setError('...


5

The way you did change the view for your article layout is half the way the appropriate. That's because you did a good job finding and editing the correct php file (the template file for the article view), but you didn't follow the recommended practice for modifying core files. A. The proper way: Template Overrides For cases like these, Joomla provides a ...


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


4

Okay - here it is. This site uses outdated Joomla and outdated T3v3 framework. T3v3 holds its overrides inside the T3 system plugin. I had long time to use a T3 template and I didn't see this right away. Full path: plugins/system/jat3v3/t3v3base/html/ But, even this way, I would expect that any custom override inside the template should take ...


4

As @Sasi varna kumar showed with the screenshot in his answer, what you need to adjust is what articles should be shown in your blog layout. The settings you were adjusting are about showing categories and subcategories, which (the categories) can be considered as an independent content entity. Showing categories's data, like category's and subcategories' ...


4

I've been using FieldsAttach for this sort of thing, for a few years, the the concepts are clean and eloquent. Brian Teeman explains it well from an integrator point of view in his talk at https://www.youtube.com/watch?v=f2WLKWbRj5U but in some ways it is even more compelling from a developer's perspective. However, after watching Marco Ding's Joomla Day UK ...


4

Right, been playing around and got it working. You're firstly going to need to add the parameter to select a category to your acf.xml file, like so: <config> <fields name="params"> <fieldset name="basic"> <field name="category" type="category" extension="com_content" label="Select a category" /> </...


3

You can define a "smart" layout override. The new "smart" layout can choose the right layout according the current category. Understanding Output Overrides http://docs.joomla.org/Understanding_Output_Overrides Module Layout Overrides http://docs.joomla.org/Understanding_Output_Overrides#Module_Layout_Overrides Following the example, you can create: /...


3

To add a special "category" class to the articles of the featured articles menu item, you need to create a template override. Simply, copy the : default.php file, located in: components/com_content/views/featured/tmpl/ to ->: templates/YOURTEMPLATENAME/html/com_content/featured/ Create any of the above folders (html, com_content, featured) if they don't ...


3

Menu - Category Blog - Blog layout options Did you check this setting too ? in the menu options ?


3

You can't display dynamic data this way through an article by default, as the editors won't process php. However, to your rescue, there are plugins for this. You can install Nonumber's Sourcerer Plugin, and now you can write php, or other code directly in your articles. It even supports some of the most common Joomla variables and Objects, which are ready ...


3

Take a look at the Gravatar PHP documentation. Basically, you want to generate a URL for the image to be displayed. This URL is based on the users email address, and will of course only work for logged in users. The following code should give you a starting point: <?php $user = JFactory::getUser(); $default = "http://www.example.com/default.jpg"; // ...


3

You could Join the #__content table with the one of the #__contentitem_tag_map, which is the table that stores the many-to-many relationships among the various content items and the tags: $query->join('INNER', '#__contentitem_tag_map AS tags ON `tags`.`content_item_id` = `#__content`.`id`'); Then in your query you can filter the content items with a ...


3

You can override the "Read more" text in the admin section. In the "Extensions" menu, choose the Language menu item. Then choose "overrides" and click "new". You can search for the constant you want to override in that screen. Help is available on that page and it links to: https://help.joomla.org/proxy/index.php?option=com_help&keyref=Help34:...


3

After reading the comments under your question: You could modify the #__content.title column but bear in mind that this involves a potential risk of data lοss if a future Joomla update contains database alterations for that table. Generally modifying in this way the core is not a recommended practice. The title column could be changed with a MySQL ...


3

Revisions are stored in the #__ucm_content table. The version number is the core_version field. If you want, for example, to get the body of the 2nd reversion of the article with ID 123, you issue the following query: SELECT `core_body` FROM `#__ucm_content` WHERE `core_content_item_id` = '123' AND `core_version` = 2;


3

You would want to put this as a template override for com_content. Depending on whether you want it to appear on the category page or single article, the file would go /templates/TEMPLATE_NAME/html/com_content/category/blog_item.php /templates/TEMPLATE_NAME/html/com_content/article/default.php I would make a clone of existing view and then add code below ...


2

There's a very easy way. In menu manager it's possible to assign custom css classes to a menu item. In Protostar this page class will be applied directly to the component container, in this case <div class="blog">, which will allow you to style the entire blog output with your custom css. Now you can add your styles using the page class to provide the ...


2

You have a few options, you can duplicate your current template and rename it. Then you can alter the css and add extra classes as required, then assign this template to your desired category pages. You can find some help on how to do this here. The easiest option (in my opinion) would be to use a different template for the category sections. Providing you ...


2

I would take a dump of the database, then use notepad++ or similar to search the sql file for "id=124:a-long-walk-to-freedom". If something was found it should be relatively easy to fix. This is assuming that during your previous search attempt you forgot to compensate for SEF rewriting parts of the link or forgot to search module content. Searching the ...


2

A Content Plugin can accomplish this. To prevent F/E editing for articles this works: public function onContentBeforeDisplay($context, &$article, $params, $page=0) { if( $context == 'com_content.article' ) { $article->params->set('access-edit',0); } }


2

The Category Blog view is (by default) generated by the files components\com_content\views\category\tmpl\blog.php (layout for the blog page) and components\com_content\views\category\tmpl\blog_item.php (layout for each item on the blog page). But your template almost certainly uses overrides in order to change the output. (Never edit any core Joomla files, ...


2

It depends on your intention. If you use onContentPrepare to manipulate the markup you need to use the right scope. Your MyPlugin::onContentPrepare will always been fired if the plugin is loaded and a dispatcher triggers "onContentPrepare". But usually you will check against the scope like public function onContentPrepare($context, &$row, &$...


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