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

You can do this with modules.php and modChrome: Go to your Module and set a title like this: First Title||Underline Title Then open this file joomlaroot/templates/youtemplate/html/modules.php Between the modChrome_xxxx function, put this code: $moduleTitle = explode("||", $module->title); echo "<h3>".$moduleTitle[0]."</h3>"; if(!empty($...


8

In the index.php file of your folder, such as \joomlaroot\yourfolder\index.php, load just the framework of your Joomla site, use the following code: Once that is done, you have full access to "everything Joomla". <?php if (!defined('_JEXEC')) { define( '_JEXEC', 1 ); define('JPATH_BASE', dirname(dirname(__FILE__))); require_once ( JPATH_BASE ...


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.


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

The addIncludePaths call only affects that particular instance of the $layout variable. Unless you are also rendering the layout in the plugin, your code will have no effect on the actual rendering. It looks like you are trying to affect this line from the document renderer: JLayoutHelper::render('joomla.edit.frontediting_modules', $displayData); This ...


5

I won't give you code on how to create a such menu, but I will give you an idea that will allow you to create a similar end result. You can create a "Split-Menu", by using 2 menu modules. At the First Menu Module (main first-level module) you will set to show only up to level 1 menu-items, in the: Module settings -> Start Level & End Level At the ...


5

Try this(tested and worked in Joomla 3.3.0): Put this code: <?php $db = JFactory::getDbo(); $id = $item->core_catid; $db->setQuery("SELECT cat.parent_id FROM #__categories cat WHERE cat.id='$id'"); $parent_category_id = $db->loadResult(); $db->setQuery("SELECT cat.title FROM #__categories cat WHERE cat.id='$parent_category_id'"); $...


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

Yes, absolutely. You can override the layouts by copying the file to templates/YOURTEMPLATE/html/layouts/ using the same path as where you found the file. So in your case, copy the file currently at layouts/joomla/content/readmore.php to templates/YOURTEMPLATE/html/layouts/joomla/content/readmore.php.


5

Alternative layouts Docs says: As with module layouts, the file must not be named the same as the core file and must not include underscores in the name. Additionally, there should not be an XML file of the same name in this folder. So if there is XML file, it's considered to be alternative menu item, not alternative layout. You could create one extra ...


5

I bow down to @Lodder experience and assume you cannot overcome this issue by overriding the XML. However, you still have two options: Either edit the original XML file Although, there may be reasons not to do this, for example if you wish to retain the original functionality. Also if there is ever an update, there's a chance your XML file will be ...


4

The intro image is generated in the JLayout layouts/joomla/content/intro_image.php. You can override this in your own template in /templates/your_template/html/layouts/joomla/content/intro_image.php. Just copy the file there and adjust as needed. I think you should be able to generate a link there. To generate the link, you can use JRoute::_(...


4

Layout Overrides » Alternative Menu Items From your question I understand that what will fit your needs is to create an alternative menu item for the Featured Items menu item. This is almost identical to the common overrides with the exception that you will give a new name to your layout file and also create a XML file with the same name. So, copy the ...


4

You can just duplicate your blog.php override and rename it (e.g. shop.php). At that point it will be available as an alternative layout for Category Blog. You can also add child layouts, like shop_item.php and then reference these from shop.php so you can style each item rendered in the category view.


4

If I am understanding your question you want to hide/change the menu item depending on whether or not a person is logged in or not? OK this is how I managed to how to hide content from guest users or logged in users. Create a new 'Guest' group; Create a Guest Group in the User Manager Add a new Guest Viewing Access Level Change the default guest group ...


4

You can't create two cells the same time within a foreach loop. Change your code as below, <?php if (!empty($this->intro_items)) : ?> <table cellpadding="0" cellspacing="0" width="600" border="0" style="width: 580px !important;"> <?php $count = 0; ?> <?php foreach ($this->intro_items as $key => &$item) : ...


4

You may get an PHP error or warning. That would explain why you see the menu without styling. You should enable error reporting on your server to see these errors/warnings. What is the value of $this->baseurl and $this->template? Are these variables really available in your override? You can check the values with PHP's var_dump() function: <?php ...


4

All you need is just copying these files : .../components/com_content/views/category/tmpl/blog_children.php .../components/com_content/views/category/tmpl/blog_item.php .../components/com_content/views/category/tmpl/blog_links.php .../components/com_content/views/category/tmpl/blog.php .../components/com_content/views/category/tmpl/blog.xml to .../...


3

It is possible to create an override for the edit params layout only for the com_content component. In general the JLayout system will search for overrides in the following folders, with priority order as shown: 1. templates/mytemplate/html/layouts/com_mycomponent 2. components/com_mycomponent/layouts 3. templates/mytemplate/html/layouts 4. layouts There ...


3

Make sure you have the folder structure correct: Component path: /components/com_content/views/article/tmpl/default.php Template path: /templates/mytemplate/html/com_content/article/myarticle.php


3

Add the following code to your blog_item.php override file where you want the links to show up: <?php $urls = json_decode($this->item->urls); // Create shortcut if ($urls && (!empty($urls->urla) || !empty($urls->urlb) || !empty($urls->urlc))) : ?> <div class="content-links"> <ul class="nav nav-tabs nav-stacked"&...


3

In the template override file /html/mod_articles_categories/default_items.php I added the code <img src="<?php echo $item->getParams()->get('image') ?>" width="40" height="40" border="0"/> just after this line: <a href="<?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($item->id)); ?>"> That did the trick. ...


3

You can. If you use, say, Akeeba Admin Tools Pro you are going to have to put in some exceptions, but generally Joomla does not care what you have in folders and/or files it doesn't use. But you probably should not. You can assign the active template per menu item. So simply assign your "sub-site" a template that looks like you want it to. I doubt finding ...


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

You don't need to perform an override for this, it's a simple parameter change. Go to: Joomla backend >> Extensions >> Template Manager >> Isis Then go to the Advanced tab and you will see 2 parameters to change the logo. The first one changes the logo that you see in the top right hand corner of the admin template and the second parameter changes the ...


3

Go to Content -> Category Manager Edit your category Go to Options tab Assign your layout in "Alternative Layout" option.


3

I don't think you can do that automatically within Joomla itself. I would just create a new layout (set as default one globally) which checks the category id of the loaded article and then decides if it loads the default or the news layout. A bit hackish and hardcoded but should work.


3

For an article override for items only of a specific category, I guess you could do something like this in /your_template/html/com_content/article/default.php if ($this->catid==2) { $this->loadTemplate('news'); } else { $this->loadTemplate('original'); } I did not test this, but you get the picture I hope.


3

Yep, I would also do the template override. Fetch the file components/com_content/views/categories/tmpl/default_items.php and copy it to <your_template>/html/com_content/categories/default_items.php. (I am not totally sure about the correct name, see the Joomla docs about this) Now you can edit it. In the file components/com_content/views/category/...


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