- Posts: 4
COMMUNITY FORUM
fulltext variable
- Никита Куликов
-
Topic Author
- Offline
- New Member
Less
More
9 years 8 months ago #146396
by Никита Куликов
fulltext variable was created by Никита Куликов
Hi! I use K2 with simple gallery. I need to change the place in which displays images simple gallery. As I understand, the gallery gets to the page via the variable 'fulltext' immediately after the text. This I determined by editing the template 'item.php'. Now it displays only the title, Intro and text:
<h2><?php echo $this->item->title; ?></h2>
<?php echo $this->item->introtext; ?>
<?php echo $this->item->fulltext; ?>
Where can I find the code that defines the variable 'fulltext' and it's work? I need to display the pictures from the gallery to the left of the text in a column.
<h2><?php echo $this->item->title; ?></h2>
<?php echo $this->item->introtext; ?>
<?php echo $this->item->fulltext; ?>
Where can I find the code that defines the variable 'fulltext' and it's work? I need to display the pictures from the gallery to the left of the text in a column.
Please Log in or Create an account to join the conversation.
- Mohamed Abdelaziz
-
- Offline
- Platinum Member
- Joomla Developer
9 years 8 months ago #146401
by Mohamed Abdelaziz
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Replied by Mohamed Abdelaziz on topic fulltext variable
Hi,
AFAIK, the simple gallery is a plugin, so it should be enabled before using.
The fulltext variable is already working and filled by K2 core code
AFAIK, the simple gallery is a plugin, so it should be enabled before using.
The fulltext variable is already working and filled by K2 core code
Multiple Extra Fields Groups for K2
AutoMeta for K2
Chained Fields for K2
More K2 Extensions In My Extensions Store
Please Log in or Create an account to join the conversation.
- Никита Куликов
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
9 years 8 months ago - 9 years 8 months ago #146410
by Никита Куликов
Replied by Никита Куликов on topic fulltext variable
I need to edit 'fulltext'. Where is it?
Last edit: 9 years 8 months ago by Никита Куликов.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 8 months ago #146459
by Krikor Boghossian
Replied by Krikor Boghossian on topic fulltext variable
The gallery is stored in the 'gallery' variable.
You can rearrange where it is shown in the item.php file.
Read this so you can locate this file: getk2.org/documentation/tutorials/174
You can rearrange where it is shown in the item.php file.
Read this so you can locate this file: getk2.org/documentation/tutorials/174
Please Log in or Create an account to join the conversation.
- Никита Куликов
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
9 years 8 months ago #146518
by Никита Куликов
Replied by Никита Куликов on topic fulltext variable
but in my template there is only: <?php echo $this->item->title; ?> <?php echo $this->item->introtext; ?> <?php echo $this->item->fulltext; ?> and gallery show the pictures
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 8 months ago #146523
by Krikor Boghossian
Replied by Krikor Boghossian on topic fulltext variable
$this->item->gallery is used to render the gallery if the gallery was uploaded through the gallery tab.
If you manually entered a gallery then you can only move it from the editor.
If you manually entered a gallery then you can only move it from the editor.
Please Log in or Create an account to join the conversation.
- Никита Куликов
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 4
9 years 8 months ago #146615
by Никита Куликов
Replied by Никита Куликов on topic fulltext variable
maybe, but ones again - output part of my item.php is:
<h2><?php echo $this->item->title; ?></h2>
<?php echo $this->item->introtext; ?>
<?php echo $this->item->fulltext; ?>
As you can see, there is no 'gallery' variable, but on the page the pictures will be displayed. If i delete '<?php echo $this->item->fulltext; ?>', pictures and text wiil disappear. According this, I must find and edit 'fulltext', or, if it includes somewhere this gallery, find and edit gallery's code.
<h2><?php echo $this->item->title; ?></h2>
<?php echo $this->item->introtext; ?>
<?php echo $this->item->fulltext; ?>
As you can see, there is no 'gallery' variable, but on the page the pictures will be displayed. If i delete '<?php echo $this->item->fulltext; ?>', pictures and text wiil disappear. According this, I must find and edit 'fulltext', or, if it includes somewhere this gallery, find and edit gallery's code.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 8 months ago #146726
by Krikor Boghossian
Replied by Krikor Boghossian on topic fulltext variable
Please read my last post.
The gallery variable is used for the galleries uploaded through the gallery tab. In all other cases you need to move it from the editor.
The gallery variable is used for the galleries uploaded through the gallery tab. In all other cases you need to move it from the editor.
Please Log in or Create an account to join the conversation.