Autogenerate TAB tittle

More
9 years 10 months ago #51226 by DimentR
Hello!
I really need help!
I used to: j3.3.6. and flexicontent v2.2.0 stable for J2.5/J3.x.
I created a template from a template items-tabbed.
Inside tab content - html. If the content appears in the table header -
Code:
<h2></h2>
, the tab Tittle changes to the content of the header (instead of the task name in the settings)!
How to turn this off it without changing the source code component flexicontent?

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #51235 by ggppdk
Replied by ggppdk on topic Autogenerate TAB tittle
Hello

i am not sure that i understand you

what exactly is inside an <h2> tag ??
(what do you mean with "content")



the TAB --TEXT-- is inside an <h2> tag ?


which template file are you modyfing?

-- item (article) view
components/com_flexicontent/templates/MYTEMPLATE/item.php(_html5).php

or category view:
components/com_flexicontent/templates/MYTEMPLATE/category_items(_htm5).php


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #51241 by DimentR
Replied by DimentR on topic Autogenerate TAB tittle
Well, I'll show screenshots.
* Content in Russian




Questions:
1. How to turn automatic change title TAB off it without changing the source code component flexicontent?
2. This is a bug or so conceived?

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #51255 by DimentR
Replied by DimentR on topic Autogenerate TAB tittle
Part php:
Code:
<?php if ((isset($item->positions['kursimage'])) || (isset($item->positions['kurstop']))) : ?> <!-- BOF image/top row MYCONTENT --> <aside class="flexi topblock kursblock group"> <!-- NOTE: image block is inside top block ... --> <?php if (isset($item->positions['kursimage'])) : ?> <!-- BOF image block --> <?php foreach ($item->positions['kursimage'] as $field) : ?> <figure class="flexi image field_<?php echo $field->name; ?> "> <?php echo $field->display; ?> <div class="fcclear"></div> </figure> <?php endforeach; ?> <!-- EOF image block --> <?php endif; ?> <?php if (isset($item->positions['kurstop'])) : ?> <!-- BOF top block --> <?php $top_cols = $this->params->get('top_cols', 'two'); $span_class = ''; //$top_cols == 'one' ? 'span8' : 'span4'; // commented out: bootstrap spanNN is not responsive to width ! ?> <div class="flexi infoblock <?php echo $top_cols; ?>cols group"> <ul class="flexi row"> <?php foreach ($item->positions['kurstop'] as $field) : ?> <li class="flexi <?php echo $span_class; ?>"> <div> <?php if ($field->label) : ?> <div class="harakteristika"><?php echo $field->label; ?></div> <?php endif; ?> <div class="znachenie"><?php echo $field->display; ?></div> </div> </li> <?php endforeach; ?> </ul> </div> <!-- EOF top block --> <?php endif; ?> </aside> <!-- EOF image/top row --> <?php endif; ?>

JS not modifed me

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #51263 by DimentR
Replied by DimentR on topic Autogenerate TAB tittle
Apparently the problem is too complicated for you.

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #51266 by DimentR
Replied by DimentR on topic Autogenerate TAB tittle
If someone would have the same problem as one of the simplest solutions - Report:
Change line 75 in the file /components/com_flexicontent/assets/js/tabber-minimized.js
Code:
this.titleElements = ['h2','h3','h4','h5','h6'];
to
Code:
this.titleElements = ['h3','h2','h4','h5','h6'];

The truth is this is the source code component, but not my template ...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.298 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline