- Posts: 36
COMMUNITY FORUM
Moving the Video above the content
- Scott Tuchman
-
Topic Author
- Offline
- Junior Member
Less
More
14 years 11 months ago #84695
by Scott Tuchman
Moving the Video above the content was created by Scott Tuchman
I would like to move the video position to appear above the content. Where in the k2 component folders would I find where to start and what do I need to move to accomplish this?
Please Log in or Create an account to join the conversation.
- spock
-
- Offline
- Junior Member
Less
More
- Posts: 26
14 years 2 months ago #84696
by spock
Replied by spock on topic Moving the Video above the content
search on components\com_k2\templates\default\item.php
or into your template directory
templates\template_name\html\com_k2\templates
<?php if($this->item->params->get('itemVideo') && !empty($this->item->video)): ?> <!-- Item video --> .... <?php endif; ?>
and move to your position
or into your template directory
templates\template_name\html\com_k2\templates
<?php if($this->item->params->get('itemVideo') && !empty($this->item->video)): ?> <!-- Item video --> .... <?php endif; ?>
and move to your position
Please Log in or Create an account to join the conversation.
- Ricardo Nunes
-
- Offline
- New Member
Less
More
- Posts: 4
13 years 7 months ago #84697
by Ricardo Nunes
Replied by Ricardo Nunes on topic Moving the Video above the content
Hi spock!
I'm trying to changes like you told and nothing happens?
I want to put video and photo gallery on top of article but i can't find the way?
Thanks
I'm trying to changes like you told and nothing happens?
I want to put video and photo gallery on top of article but i can't find the way?
Thanks
Please Log in or Create an account to join the conversation.
- william white
-
- Offline
- Platinum Member
Less
More
- Posts: 3722
13 years 7 months ago #84698
by william white
Replied by william white on topic Moving the Video above the content
If you have made the correct changes and nothing happens, then check your category and see if its reading a custom template. Also, check in templates/Your template name/html/com_k2/templates/default/item.php and see if this is where its getting its default from.
See here for more info on overrides
See here for more info on overrides
Please Log in or Create an account to join the conversation.
- Ricardo Nunes
-
- Offline
- New Member
Less
More
- Posts: 4
13 years 7 months ago #84699
by Ricardo Nunes
Replied by Ricardo Nunes on topic Moving the Video above the content
Hi!
Thanks William for the answer, now i see what was the error, i was editing another file, (components/com_k2/templates/default) . I edit this now templates/Your template name/html/com_k2/templates/default/item.php and it works!!
Thanks again William
Thanks William for the answer, now i see what was the error, i was editing another file, (components/com_k2/templates/default) . I edit this now templates/Your template name/html/com_k2/templates/default/item.php and it works!!
Thanks again William
Please Log in or Create an account to join the conversation.
- Ricardo Nunes
-
- Offline
- New Member
Less
More
- Posts: 4
13 years 7 months ago #84700
by Ricardo Nunes
Replied by Ricardo Nunes on topic Moving the Video above the content
Hi again! After changing the file like William White told, in first place was all right but then i'm experimenting some errors in website... Like the video don't show in a specific category (weird) but if i change article to another category it shows the video.?? Very strange behavior, maybe i have been missing something?
So i had to put it back the like was in first place...
If someone knows why is component having this behavior i really appreciate the help.
Thanks guys.
So i had to put it back the like was in first place...
If someone knows why is component having this behavior i really appreciate the help.
Thanks guys.
Please Log in or Create an account to join the conversation.
- Kannan Naidu Venugopal
-
- Offline
- Platinum Member
- Aham Brahmasmi
13 years 7 months ago #84701
by Kannan Naidu Venugopal
K2 Rocks \m/
Replied by Kannan Naidu Venugopal on topic Moving the Video above the content
Hi Ricardo Nunes,
Are you using template overrides ? Is yes, you need to select the template for the categories that you want to show the video, also please check if the item view options is set to show video on that category.
Are you using template overrides ? Is yes, you need to select the template for the categories that you want to show the video, also please check if the item view options is set to show video on that category.
K2 Rocks \m/
Please Log in or Create an account to join the conversation.