Editing Joomla Category blog view - joomla

What file would I need to edit to change (overide) the Joomla 3.3 on Centos default category blog view ?
Im using the Yoo theme Katana theme ...
Ta,

What you have to do is 1st override the category blog view view in your template. Because editing core files are not preferred.
Here’s a simple tutorial to override the layout of the ‘category blog’ view.
First of all we need to create the override folder /templates/current_template/html/com_content/category/
Paste and copy the blog_item.php file located in /components/com_content/views/category/tmpl into the override folder we previously created.
edit the blog_item.php file as you need.

Default category blog listing path is:
{JoomlaSite}/components/com_content/views/category/tmpl/blog.php
That includes other related templates respectively:
{JoomlaSite}/components/com_content/views/category/tmpl/blog_item.php
{JoomlaSite}/components/com_content/views/category/tmpl/blog_links.php
{JoomlaSite}/components/com_content/views/category/tmpl/blog_children.php
In Joomla 3.3.x versions category blog layout is already overridden by default beez3 template, so you need to refer a copy from beez3 templates for latest changes(if any). Path for that is;
{JoomlaSite}/templates/beez3/html/com_content/category/blog.php
{JoomlaSite}/templates/beez3/html/com_content/category/blog_item.php
{JoomlaSite}/templates/beez3/html/com_content/category/blog_links.php
{JoomlaSite}/templates/beez3/html/com_content/category/blog_children.php
You can use this files to override respectively, based on which type of change is required to your current need. You can copy & paste respective files to your current theme's folder like this;
{JoomlaSite}/templates/{Your_Current_Theme}/html/com_content/category/blog.php
Replace {Your_Current_Theme} with your template folder name.

Related

Custom Template not working/Page blank showing "members-grid.php" ( ultimate member plugin) Wordpress

I want to modify member list page "members-grid.php" and create to my active theme folder.
I have created structure
Copy:
wp-content/plugins/ultimate-member/templates/members-grid.php
to paste theme filder:
wp-content/themes/twentysixteen/ultimate-member/templates/members-grid.php
See plugin Documentation:
https://docs.ultimatemember.com/article/1516-templates-map
https://docs.ultimatemember.com/article/121-using-html-in-e-mail-templates
Its Not working as expected. Please help.
enter image description here
enter image description here
You need to remove templates folder from your theme. Remove templates folder and simply add members-grid.php file inside ultimate-member folder.

designing layout of magento 2 theme

I am new to Magento.
I am creating Magenta 2 site, I have managed to install Magento, and for it to use the luma theme.
I want to be able to edit the theme (through Inheritance), I understand it uses XML files to design the layout, how do I change these, should they be in the new theme folder, and change them there?
If so, where do I get the origonal Luma xml files, or does magento create these? - There are no themes within the app/ folder, is it here where I create the new theme (that inherits from Luma)?
Many thanks for any help, I am completely new to Magento.
You have to create a custom theme and make theme.xml and set a parent to LUMA.
Now app/design/frontend/customthemename
So anything that you want to customized used in customthemename folder
Thanks
You should create a child theme to edit XML file. To create a child theme, there are 3 steps to do:
Firstly, create a new theme directory in app/design/frontend.
Secondly, declare the new theme by:
Creating theme.xml: this file identifies the name, parent and other
basic info of the new theme.
Creating Composer.json: this file is used to install the theme via Composer later.
Creating registration.php: this file is required in any Magento 2 Extension
and Themes.
Creating static files directories: this folder is used to store CSS, JS, image files.
Creating logo folder: this folder contains files that determine the location and size of your new theme logo.
Thirdly, apply and configure theme in admin: - Run Upgrade Command. - Apply the theme. - Deploy.
For more detailed tutorial, go to Guide to create Magento 2 theme.
The original XML files of any module and themes are located in vendor/magento//view/frontend/layout, with the module_name is the module related to the XML file you want to edit.
For example, with homepage CMS, the XML file is located in vendor/magento/module-cms/view/frontend/layout

phpFox Template change

I have installed phpFox and I have HTML( only html,css,js ) template. I want to change to my own html template instead of default template! I could to do this task! Please help me to change default template to my own html template. phpFox 3.3.0
Go to your admin area.
Then
Create a new theme here.
http://yousite.com/index.php?do=/admincp/theme/add/
Now create a new style here and select your theme
http://yousite.com/index.php?do=/admincp/theme/style/add/
add a new style here
Now go to folder
yoursite/theme/frontend/
Copy cosmic folder and rename it with the name which you had given in admin while creating style.
Also rename folder inside this folder cosmic to new folder name.
Now you can change the html
yourfolder/template/template.html.php
You can also change the CSS
frontend\yourfolder\style\yourfolder\css\custom.css
Activate your theme
http://yousite.com/index.php?do=/admincp/theme/
And make your theme default
Hope this will helps you.
Firstly, you tell us what exactly you want to modify or change. For instance if you want to change user profile head information, you should find the related template file from module "user".
Anyway before doing it I suggest you to backup the original files.
If you want just to create a template with new styles, then do as KESHU VAT's way.

JOOMLA, Best way to make alternate layouts for articles?

I can't find a answer for this, I want to know what is the best way to have an alternative layouts for articles in Joomla.
If I understand you correctly you are looking for a way to create additional Alternative Layouts for articles. Under parameter tab "Article Options":
If that is the case, its very close to the other provided answers here. Its just that you got to rename the copied default.php file to something else. If you rename it to custom.php it will end up with the text "custom" like the image above.
Here goes my shot for a step by step:
Find the default layout file(s). You could use the ones provided by the com_content component. They can be found at components/com_content/views/article/tmpl. Copy both default.php and default_links.php.
Now you need to rename and copy the file(s) into a template. The target template can be any of the installed templates. Using beez_20 the new path for the copied file(s) should be templates/beez_20/html/com_content/article/custom.php and templates/beez_20/html/com_content/article/custom_links.php.
Goto to edit article using the backend. Expand the Article Options tab and find Alternative Layout. Select your new layout.
Your template might already provide a article override. If so, you might want to use the files of that template instead (instead of the ones in step 1). So if you are using beez_20, you could copy templates/beez_20/html/com_content/article/default.php and templates/beez_20/html/com_content/article/default_links.php.
Helpful links:
Using Joomla’s Template and Layout Override
Layout overrides in Joomla 1.6
The best way to do this would either to install another content component - such as k2 which is highly customizable. Or any other content component on JED.
Alternatively you could create a template override on the existing Joomla Template. This is preferable to editing the files directly in com_content component as the template overrides will never be overwritten whereas the core files will be in any Joomla Updates. I should add, hopefully unnecessarily that this requires Joomla 1.5, 1.6, 1.7, 2.5 or 3.0 (although this is still in beta as of present). So make sure you're not using 1.0.
To create an alternative layout for the built in articles component the best way to do it is probably to create a template over-ride.
See this article on docs.joomla.org on "How to override the output from the Joomla! core"
Creating an alternative for an article layout is pretty straight forward. You can achieve this by using the core layout override with your published template(s).
First you want to get/copy the core article layout file:
components/com_content/views/article/tmpl/default.php
Then place it into your published template:
templates/YOURTEMPLATE/html/com_content/article/default.php
If the template you are using doesn't have the html folder, then you will have to create that folder and each folder to make that path correct.
Once you have this in place, all you need to do is make changes to that default.php file you have just place in the template and that is it!

Joomla 2.5 - Phocagallery and component.php

I'm setting up a site and I've run into a problem:
I've modified the component.php file in order to customize the printing of an article. Unfortunately i discovered that phocagallery uses the same file to display pictures.
Is it possible to indicate a file different from component.php as template view for phocagallery images?
That template file is what controls the look/output of ALL components. You're better off doing a template override for whatever component (like com_content) or doing this to customize the print view.

Resources