The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Hot answers tagged

3

Based on looking at the code of the modulelayout.php file, it looks like you may have to preface the layout name with _:. So your xml field would look like this: <field name="layout" type="modulelayout" label="JFIELD_ALT_LAYOUT_LABEL" description="JFIELD_ALT_MODULE_LAYOUT_DESC" default="_:mylayout" /> I'm seeing in the file that it sets a select ...


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


3

You can't set a class property to a dynamic value, such as a method call, during declaration like you're attempting. See http://php.net/manual/en/language.oop5.properties.php You would need to set it in your constructor. JLoader::Register('MyComHelperConfig', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/config.php'); class MyComController extends ...


3

Best way to do this is to add another menu item, rather than try to change the existing one. Then in menu manager change the access level on the Feature from the default 'Public' to 'Guest'. This means it will not be visible for users that are logged in. Then change the access level on the new Dashboard menu item to 'Registered' so that only logged in users ...


2

Having articles that are accessible like this: /component/content/article/(###-categoryname)/(###-articlename) Means you haven't created the appropriate menu structure to encompass content in these catgeories. The reason the wrong template is being used is because Joomla cannot decide what menu item the article belongs to. It is good practice to create at ...


2

If you follow the standard conventions, edit.php will be used for the form layout that allows you to edit an item, and default.php will be used for viewing an item as well as viewing a list of items. Typically in Joomla, you will see two types of view folders: singular and plural. The plural version (let's call it "articles"), will just have a default.php ...


2

If your goal is to load a module for only certain articles, there are two easy ways to do this: Put them all in the same category and then create a hidden menu item that loads the list of all articles in the category. No one ever needs to see the page, it just needs to exist. Then if you publish a module to that menu item, it SHOULD appear on all articles ...


1

I usually use the RSForm component & its registration plugin for this purpose. Some fields are mandatory for the Joomla registration form, but you can add a variety of fields indefinitely and arbitrarily.


1

For something like this you are going to need to do this in a few steps and have a couple of options. To make things easy I would recommend looking into something like JomSocial or Community Builder as most of the functionality you are looking for seems to be built in as far as avatars and custom registration pages. You other alternative is to override the ...


1

The idea of Joomla as a Content Management System is that you should generally be able to update the content and look of the website without having to edit code. You can likely disable or delete the modules you mention by logging in to the back-end of the website at www.yourwebsite.com/administrator and going to Extensions -> Modules.


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