- Posts: 2
COMMUNITY FORUM
Item view: "More in this category" customization
- afdrock
-
Topic Author
- Offline
- New Member
Less
More
13 years 7 months ago - 13 years 7 months ago #56854
by afdrock
Item view: "More in this category" customization was created by afdrock
Hi,
First, K2 is really awesome!
When I'm in a item view page, after my item content, I have the options to display
"Latest items from author" and "More in this category".
The problem is that I need to show more items from the same category, but in the same way as is displayed at "Latest items from author", I mean, displaying like 5 items from the same category, not from the same author.
Is there a way to do that?
I'm not good with php yet, but maybe trying to adapt the function "<!-- Latest items from author -->" in the file
"/com_k2/templates/default/item.php" to show category items instead of author's items.
Anyone can help?
First, K2 is really awesome!
When I'm in a item view page, after my item content, I have the options to display
"Latest items from author" and "More in this category".
The problem is that I need to show more items from the same category, but in the same way as is displayed at "Latest items from author", I mean, displaying like 5 items from the same category, not from the same author.
Is there a way to do that?
I'm not good with php yet, but maybe trying to adapt the function "<!-- Latest items from author -->" in the file
"/com_k2/templates/default/item.php" to show category items instead of author's items.
Anyone can help?
Please Log in or Create an account to join the conversation.
- Simon Wells
-
- Offline
- Platinum Member
Less
More
- Posts: 955
13 years 7 months ago #56855
by Simon Wells
Replied by Simon Wells on topic Re: Item view: "More in this category" customization
Hi,
More in this Category is produced using the following code:
More in this Category is produced using the following code:
Log in or Create an account to join the conversation.
- afdrock
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 2
13 years 7 months ago #56856
by afdrock
Replied by afdrock on topic Re: Item view: "More in this category" customization
Thanks a lot, Simon!
Because I'm in hurry, I will use the mod_k2_content alternative.
I created some of these module, one for each category.
The modules are positioned at the footer, and each module is displayed only in his correspondent category by Menu Selection.
When I get some time I will try to override the item.php file, mixing the codes that you've mentioned.
Thanks again!
Because I'm in hurry, I will use the mod_k2_content alternative.
I created some of these module, one for each category.
The modules are positioned at the footer, and each module is displayed only in his correspondent category by Menu Selection.
When I get some time I will try to override the item.php file, mixing the codes that you've mentioned.
Thanks again!
Please Log in or Create an account to join the conversation.
- troponin
-
- Offline
- Platinum Member
Less
More
- Posts: 398
13 years 7 months ago #56857
by troponin
Replied by troponin on topic Re: Item view: "More in this category" customization
needed this too .
Here
is the solution.
Please Log in or Create an account to join the conversation.
- joomlanew
-
- Offline
- New Member
Less
More
- Posts: 6
13 years 6 months ago #56858
by joomlanew
Replied by joomlanew on topic Re: Item view: "More in this category" customization
Hi,
Thanks for suggesting an alternative solution.
However, for some reason, I can not use module in this case. Is it possible to modify item.php file in such a way that it shows, say, 10 images (5 previous and 5 next)? I have already modified it to show images in place of just the item titles. The modified piece of code that I have applied is this:
Thanks for suggesting an alternative solution.
However, for some reason, I can not use module in this case. Is it possible to modify item.php file in such a way that it shows, say, 10 images (5 previous and 5 next)? I have already modified it to show images in place of just the item titles. The modified piece of code that I have applied is this:
Log in or Create an account to join the conversation.
- Tuna
-
- Offline
- New Member
Less
More
- Posts: 2
13 years 4 months ago #56859
by Tuna
Replied by Tuna on topic Re: Item view: "More in this category" customization
Trying to do something similar is next and previous images. Did you get this worked out?
thanks
thanks
Please Log in or Create an account to join the conversation.