title field in front end - SOLVED

More
13 years 7 months ago #15233 by aloisio
Please, send me some information to identify the line or lines to delete.
I already deleted the code in what appears the word "title" but isn't correct

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

More
13 years 7 months ago #15235 by aloisio
It's this what you ask?
Remember this are the 2 parts of code I deleted
Code:
<?php if ($this->params->get( 'show_page_title', 1 ) && $this->params->get('page_title') != $this->item->title) : ?> <h1 class="componentheading"> <?php echo $this->params->get('page_title'); ?> </h1> <?php endif; ?> </code> <code> <?php if ($this->params->get('show_title', 1)) : ?> <h2 class="contentheading flexicontent"> <?php echo $this->escape($this->item->title); ?> </h2> <?php endif; ?>

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

More
13 years 7 months ago #15238 by micker
ok
at first
did you read tutoriel for templating ?
flexicontent.org/documentation/t ... ation.html
(google translate is your friend)
0 duplicate your selected base template
1 in type configuration disable title of content
2 in item.xml
add <group>new-title</groupe>
3 creat your field
4 in template configuration drag and drop your field in position
5 edit item.php
add in good place
Code:
<!-- BOF new-title --> <div id="new-title"> <?php if (isset($this->item->positions['new-title'])) : ?> <?php foreach ($this->item->positions['new-title'] as $champ) : ?> <div class="champ_<?php echo $champ->name; ?>"> <?php if ($champ->label) : ?> <div class="etiquette"><?php echo $champ->label; ?></div> <?php endif; ?> <div class="valeur"><?php echo $champ->display; ?></div> </div> <?php endforeach; ?> <?php endif; ?> </div> <!-- EOF new-title -->
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
13 years 7 months ago #15243 by aloisio
Micker, thank you very, very much.
But, I don't know php. I know html, javascript and css.
your item 1:
in the types screen, when I edit a type, in the options of the type, I don't see the option anable or disable "title of content", and "title" there are only in parameters SEO.
So I think that I don't understand your explication.
Sorry.
By the other side:
Forgive me, but I only need to identify lines of code that I have to delete in the file "item.php" so that the field title disappears.
Meanwhile, I will try to follow your script

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

More
13 years 7 months ago #15244 by micker
for title
see in flexicontent configuration
after use me code
regards

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
13 years 7 months ago #15245 by aloisio
Please, send me some indication.
What is the code of title field in the template?

Another posibility to hide the field "Title":
In the screen to configurate the fields, there are a panel "Manage permissions". In this panel there are a column "View".
I put all permissions in red to the "title" field but the field is displayed.

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

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