Transform h2 item title in h1

More
9 years 6 months ago #50203 by esinet
Ok
If i understand, i must change item.php and item_html5.php in my new duplicate blog template.
And after that, i must change all the template of categories ...that's it ?
And what must i change in the modular_html5.php (or item_html5) to set $itemItemLevelHeaderLevel to 1 ?
Thanks a lot

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

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

More
9 years 6 months ago #50204 by esinet
But it's not that i want ...
My item's have default template and nothing changed with a duplicate of blog ...

What i finally did :
Duplicate Default in com_flexicontent/templates directory and renamed it defaultH1
In defaultH1:
i copy past modular.php and replace it in item.php
Idem with modular_html5.php in item_html5.php

I modified item.php with
$itemTitleHeaderLevel="1";

I don't know what i must modified in item_html5.php
Code:
$itemTitleHeaderLevel = ( $this->params->get( 'show_page_heading', 1 ) && $this->params->get('page_heading') != $item->title && $this->params->get('show_title', 1) ) ? '2' : '1';

Then in joomla administration, i've got one more template default in flexicontent template list.
In the item view of defaultH1 template, i configure the fields i want to see in frontend (the same as default...)

And finally, in Article type, i changed the default template Item => ::defaultH1:: instead of ::default::

Am i ok ?
Must i change something in item_html5.php ?
Thanks and best regards

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

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

More
9 years 6 months ago #50206 by ggppdk
Hello

i copy paste modular.php and replace it in item.php, same with modular_html5.php in item_html5.php


yes that what you do for customizing the item.php of your custom template


-- 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 6 months ago #50214 by esinet
Thanks for your answer.
Must i change the last number '2' in item_html5.php here in the last line :
Code:
$itemTitleHeaderLevel = ( $this->params->get( 'show_page_heading', 1 ) && $this->params->get('page_heading') != $item->title && $this->params->get('show_title', 1) ) ? '2' : '1';
=>
Code:
$itemTitleHeaderLevel = ( $this->params->get( 'show_page_heading', 1 ) && $this->params->get('page_heading') != $item->title && $this->params->get('show_title', 1) ) ? '1' : '1';

Joomla 3.9.14 /3.6.5 FLEXIcontent v 3.3.1.6

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.270 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