203 Posts
louispapera
10 years ago
11
Topic

Form Title and Description:

Hi to all, any form have a title and a description. How I do to change these values when change the languages ? Is there a method as for overrides ?

Thanks, best regards, Louis

Get a Book for SEBLOD
4229 Posts
Kadministrator
10 years ago
2
Level 1

When you activate JText option in the component options it should also run this fields trough JText, is this not happening?

203 Posts
louispapera
10 years ago
0
Level 2

Hi Klas, I do not see any possibility about a method to change these two values. 

Jtext options has well actived by seblod. Now what have I to do for my need ? 

Explain better your suggestions, please. Many thanks, Louis

203 Posts
louispapera
10 years ago
0
Level 2

Klas, I saw that the same problem is for title and category descriptions. I hope in your help.

Regards, Louis

4229 Posts
Kadministrator
10 years ago
1
Level 1

Hi,

you will need to do a layout override (

http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core )

- for form this is com_cck/views/form/tmpl/edit.php . You need to copy this template to your site template to html/com_cck/form/edit.php and change

echo '<'.$tag.$class.'>' . @$this->type->title . '</'.$tag.'>';<br>

to

if ( JCck::getConfig_Param( 'language_jtext', 1 ) ) {
  $form_title = JText::_( 'COM_CCK_'.str_replace(' ', '_',strtoupper(@$this->type->title) ) );
 }else{
  $form_title = JText::_( @$this->type->title );
 }
 echo '<'.$tag.$class.'>'.$form_title.'</'.$tag.'>';<br>

Next line in this template is about description where you could do the same, but I think it is better to disable form description and use language restriction plugin to display different description field for each language.

203 Posts
louispapera
10 years ago
0
Level 2

Thank you klas for your suggestions. I see that is not easy to reach, I have already tried  to insert some free text and with restriction plugin it works well.

Unfortunately remains also the problem of the categories. What you say to me ?  Regards, Louis

4229 Posts
Kadministrator
10 years ago
2
Level 1

It is simlar with categories, you will need to override view your are using, if it is a seblod list then you need to override lsit view template, if you are using joomla categories list you will need to do it on joomla com_content categories view, or category view when looking at single joomla category

203 Posts
louispapera
10 years ago
0
Level 2

Hi, klas thanks for your special reply.

I need to change title and description in seblod list and in joomla category.

You have consider that I have a multilanguage web site.

Now, I would like to know how to do. 

1- about seblod list  ( I haven't found nothing within list>configuration> or template....) where have I to search ?

2- about joomla category.... I haven't any idea. 

Please, give me a just support step by step. 

After many months thay I work, this your suggestion  is very very important for put into production the site.

Best regards, Louis

203 Posts
louispapera
10 years ago
0
Level 2

Hi Klas and Seblod Community, anyone could help me, please ?

This is my main problem: when I change language

I do not know as start for change title and description in a form created by seblod and the same thing in a category to assign just overrides.

I hope to be clear, in any case, if you have any doubt, contact me, do not hesitate.

Thank you in advance for your help. 

Best Regards, Louis

10 years ago
2
Level 1

Hi

I confirm that even if you activate the Jtext options in seblod configurations, the list descriptions don't interpret Jtexts

thanks

cyril

4229 Posts
Kadministrator
10 years ago
1
Level 2

Solution is to do an override, see above.

10 years ago
0
Level 3

Thanks Klas

cyril

Get a Book for SEBLOD