- Posts: 2
COMMUNITY FORUM
K2 - itemIntroText before itemImageBlock
- Krzysztof
-
Topic Author
- Offline
- New Member
Less
More
8 years 9 months ago #155914
by Krzysztof
K2 - itemIntroText before itemImageBlock was created by Krzysztof
Hi,
is any good solution for changing order of itemIntroText and itemImageBlock? I would lite to have at the first the Intro text (just next to Title).
It would be particularly the best, if the parts Title and Intro text I'll be able to place in separate module...
Thank you
Greetings
is any good solution for changing order of itemIntroText and itemImageBlock? I would lite to have at the first the Intro text (just next to Title).
It would be particularly the best, if the parts Title and Intro text I'll be able to place in separate module...
Thank you
Greetings
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 9 months ago #155935
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic K2 - itemIntroText before itemImageBlock
You can override the item.php file and change the order of the blocks.
These blocks can be easily identified by the comments in the item.php file.
More on overriding can be found here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
These blocks can be easily identified by the comments in the item.php file.
More on overriding can be found here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Krzysztof
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 2
8 years 9 months ago #155947
by Krzysztof
Replied by Krzysztof on topic K2 - itemIntroText before itemImageBlock
Thank you!
And now one step forward: Is it possible to place the Intro Text into separate module like eg here:
spychal.hekko24.pl/test/mvw/index.php?option=com_k2&view=item&id=291:consulting-2&Itemid=973&lang=en
Title and Intro is in separate module over the rest: mainbody and sidebar.
But it is build by duplicate Component module (in template) and set "display:none" for same parts of content. It is not good idea, because it produce some errors on page.
And now one step forward: Is it possible to place the Intro Text into separate module like eg here:
spychal.hekko24.pl/test/mvw/index.php?option=com_k2&view=item&id=291:consulting-2&Itemid=973&lang=en
Title and Intro is in separate module over the rest: mainbody and sidebar.
But it is build by duplicate Component module (in template) and set "display:none" for same parts of content. It is not good idea, because it produce some errors on page.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
8 years 9 months ago #155982
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic K2 - itemIntroText before itemImageBlock
There is no reason to overcomplicate the process.
This is not a module it a part of the component template.
In the item.php the DEV is loading module positions.
In your position, assuming you are using a sidebar I would do the following:
In my index.php I would exclude the sidebar position from k2 items, and in my item.php file override I would load that position.
More info can be found here:
www.joomlaworks.net/forum/k2-en/32949-solved-add-a-module-position-to-k2-template-do-it-better
www.joomlaworks.net/forum/k2-en/32697-how-to-hide-k2-content-module-in-item-view
This is not a module it a part of the component template.
In the item.php the DEV is loading module positions.
In your position, assuming you are using a sidebar I would do the following:
In my index.php I would exclude the sidebar position from k2 items, and in my item.php file override I would load that position.
More info can be found here:
www.joomlaworks.net/forum/k2-en/32949-solved-add-a-module-position-to-k2-template-do-it-better
www.joomlaworks.net/forum/k2-en/32697-how-to-hide-k2-content-module-in-item-view
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.