How is the level (1 or 2) of header HTML tag used in item view

More
9 years 6 months ago - 9 years 6 months ago #58857 by tramber91
Hi

logically I have selected default template for 2 different items.
To be sure i"m using the same template I have rename for test the directory default (template) and both items page show error when display

It is OK for this item
www.test.ete44.fr/fr/temps-de-guerre/tem...-arme-de-la-victoire
Ex : I have h2 tag on titlle
Code:
<h2 class="contentheading"> <span class="fc_item_title" itemprop="name"> Le Prêt-bail américain, arme de la victoire</span> </h2>

On this item, it is different
www.test.ete44.fr/fr/blog-44/139-commemo...-auvers-22-juin-2013
first, not same display and h1 tag for title
Code:
<h1 class="contentheading"> <span class="fc_item_title" itemprop="name"> Commémoration Villeneuve sur Auvers - 22 juin 2013 </span> </h1>

I don't know where i did something wrong ?

an idea ?
thanks

Bertrand

Bertrand
En Toutes Lettres digital
Last edit: 9 years 6 months ago by ggppdk.

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

More
9 years 6 months ago - 9 years 6 months ago #58861 by ggppdk
It can depend on the menu item, if "Show page header" is ON and the menu title matches, or if our other logic has set 'page_heading' to be same as item title
Code:
// SEO, header level of title tag $itemTitleHeaderLevel = ( $this->params->get( 'show_page_heading', 1 ) && $this->params->get('page_heading') != $item->title && $this->params->get('show_title', 1) ) ? '2' : '1'; ?> ... ... ... <?php if ($this->params->get('show_title', 1)) : ?> <!-- BOF item title --> <?php echo '<h'.$itemTitleHeaderLevel; ?> class="contentheading"> <span class="fc_item_title" itemprop="name"> <?php echo ( mb_strlen($item->title, 'utf-8') > $this->params->get('title_cut_text',200) ) ? mb_substr ($item->title, 0, $this->params->get('title_cut_text',200), 'utf-8') . ' ...' : $item->title; ?> </span> <?php echo '</h'.$itemTitleHeaderLevel; ?>> <!-- EOF item title --> <?php endif; ?>


-- 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...
Last edit: 9 years 6 months ago by ggppdk.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.568 seconds
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
Save