- Posts: 9
COMMUNITY FORUM
Templating issues
- Olaf Veerman
-
Topic Author
- Offline
- New Member
- according to a post from Fotis (forum.joomlaworks.gr/index.php?topic=8516.0), it should be enough to copy the contents of components/com_k2/templates/default to templates/*yourtemplate*/html/com_k2/*customtemplate* to be able to assign a custom template to a category.
This did not work for me however. The template did not show up in the dropdown of the category parameters.
I am doing some testing now by having the folder of my custom template in the components/com_k2... folder instead of my template folder.
Anybody run into the same, or am I missing something?
- the changes I made to the item.php show up without a problem. However, the category overview stays the same, no matter how I change category.php and category_item.php
Anybody run into this?
Please Log in or Create an account to join the conversation.
- Olaf Veerman
-
Topic Author
- Offline
- New Member
- Posts: 9
Please Log in or Create an account to join the conversation.
- Oceanwatcher
-
- Offline
- Elite Member
- Posts: 175
In /components/com_k2/templates
I duplicated the default folder and named it something else. This name immediately came up in the drop-down menu for templates in the category settings.
I have been changing the template for full article display a little bit and also doing some changes to the styles.css. I do not know what file that controls the display of items on the front page. That is my next thing to change.
Another thing that is a problem for me is that some things in the k2 template picks up some styling from the main template. Most of it is ok, but there is a top margin over a heading that I would love to get rid of...
Please Log in or Create an account to join the conversation.
- Oceanwatcher
-
- Offline
- Elite Member
- Posts: 175
The file that controls the frontpage is category_item.php - BUT - even if you have set the categories to use the new template, it will not work. You have to go to the menu item to choose the template there as well. So it seems some things on the front page is decided by the parameters in the menu item, and some are decided by the category parameters.
Any way - my changes to the template is now showing up on the frontpage, so I will go on with my fixing :-)
Please Log in or Create an account to join the conversation.
- Oceanwatcher
-
- Offline
- Elite Member
- Posts: 175
Please Log in or Create an account to join the conversation.
- Erebrum
-
- Offline
- Junior Member
- Posts: 30
Link here (posting to avoid post duplication)
Please Log in or Create an account to join the conversation.
- Johan Cyprich
-
- Offline
- New Member
- Posts: 2
I'm having the same problem. I put a new template in this folder: templates/rt_merdian_j15/html/com_k2/blog and it doesn't appear in the template selection list when editing a category. Although, the template does appear when its in components/com_k2/templates/blog. Is is better to put a custom template in the K2 component folder or the Joomla template folder?
Thanks.
Please Log in or Create an account to join the conversation.
- juro
-
- Offline
- Senior Member
- Posts: 42
First I thought it was a problem with the JYAML component, so I tried it on my development box with a fresh install and the ja_purity template - it didn't work.
Please Log in or Create an account to join the conversation.
- Johan Cyprich
-
- Offline
- New Member
- Posts: 2
I'm having the same problem. I put a new template in this folder: templates/rt_merdian_j15/html/com_k2/blog and it doesn't appear in the template selection list when editing a category. Although, the template does appear when its in components/com_k2/templates/blog. Is is better to put a custom template in the K2 component folder or the Joomla template folder?
Thanks.
I fixed this template selection problem. I forgot to add a templates folder in the Joomla template. The correct folder structure is: templates/rt_merdian_j15/html/com_k2/blog/templates/. Now I have to customize the template for a blog theme.
Please Log in or Create an account to join the conversation.
- GL2
-
- Offline
- New Member
- Posts: 1
/templates/yourtemplate/html/com_k2/templates/...
Please Log in or Create an account to join the conversation.
- akdon champi
-
- Offline
- New Member
- Posts: 4
Its works here.. the location should be:
/templates/yourtemplate/html/com_k2/templates/...
Please Log in or Create an account to join the conversation.
- Francesco Tumminello
-
- Offline
- New Member
- Posts: 16
I followed the instruction on the article Templating in K2, and I did what you have written here, but nothing happend. So there's probably something wrong in what I did.
Now I have this path: templates/MYTEMPLATE/html/com_k2/templates/..
Inside templates I have two folders: default and blog (I've copied default, as per instructions, and rename it with blog); and for files generic.php, profile.php, register.php, user.php
If I've understood well this should be the right configuration. Instead if I check in the component, Category and try to select something from LAYOUT TEMPLATE, I have nothing, just --Use dafault--
Where I'am wrong?
What happens of the frontside is that when I click on the menu item (k2 category list) my template disapper, and the result is what the attached image shows.
Any suggestions??
Thanks a lot
Please Log in or Create an account to join the conversation.
- olsen
-
- Offline
- Elite Member
- Joomla and K2 Freelancer
Didn't solve your issues?? Why dont you consider hire me? Email me or contact me www.xevedigital.com for details
Please Log in or Create an account to join the conversation.
- Francesco Tumminello
-
- Offline
- New Member
- Posts: 16
olsen said:watch this:
k2community.joomlaworks.gr/forum/topics/k2-subtemplate-featu...
Please Log in or Create an account to join the conversation.
- John Wicks
-
- Offline
- New Member
- Posts: 15
Jw
Please Log in or Create an account to join the conversation.