Guest
28 Jul 2014 10:48

Hi,

i want to delete the section alias on url when i use the form to search a record. It is the action of the form. How can i do this? What is the file to do this modification?

And then i want to delete the alias of section. I have this page '/cobalt-section-list/items/1-ALIAS-SECTION.html'

I want to the delete the alias and remain only the id of section becouse i want to set up this in my file of language.

Last Modified: 21 Aug 2014


Sergey
Total posts: 13,748
29 Jul 2014 02:27

Guest becouse i want to set up this in my file of language.

How?

Guest i want to delete the section alias on url when i use the form to search a record. It is the action of the form. How can i do this? What is the file to do this modification?

You have to create custom router and add modifications there. I cannot delete aliases in main core as it is needed for most of the people.

Copy file com_cobalt/routers/main_router.php and select new file in Cobalt main configuration.


Guest
29 Jul 2014 11:28

i want modify this link 'cobalt-section/ID-ALIASECTION' to 'cobalt-section/ID-NAME-SECTION-ENGLISH'.

So then the ID i want to insert with JText::_('NAME-SECTION-ENGLISH') a specific name of section for any languages of site.

Can i do this? What is the file to do this modification?


Sergey
Total posts: 13,748
30 Jul 2014 00:41

You know what. I added it. How all aliases will go through JText. So you can translate them. Will be in next version tomorrow.


pepperstreet VIP
Total posts: 3,837
30 Jul 2014 13:36

Sergey You know what. I added it. How all aliases will go through JText. So you can translate them.

You mean, we can use language constants in any ALIAS input field in backend? Like it is for NAME & DESCRIPTION.


Guest
31 Jul 2014 07:39

Please write in this post if the new version is available.

I'm very interesting to the modifications to enable alias of other language.


Sergey
Total posts: 13,748
31 Jul 2014 13:11

pepperstreet

Sergey You know what. I added it. How all aliases will go through JText. So you can translate them.

You mean, we can use language constants in any ALIAS input field in backend? Like it is for NAME & DESCRIPTION.

Yes. Whatever is the alias of category, section, username, or article you can create a language key for that.

Guest Please write in this post if the new version is available.

I'm very interesting to the modifications to enable alias of other language.

Already available. For the future we release updates every Thursday. Whatever modifications are done during the week, you can get those with new update every Thursday.


Guest
31 Jul 2014 15:19

Hi,

thanks for the new release.

Can you tell me please in what file is added this modification for the languages.

Becouse i have made many modification in many files. If i update colbat i lost them.


Sergey
Total posts: 13,748
01 Aug 2014 09:24

Cobalt is created the way, you can doo all modifications without lose on update. Probable you changed wrong files. Usualy you change templates. And if you create a copies before change, then you do not lose those changes.

We do not track what files was changed.


Guest
01 Aug 2014 12:29

Hi,

i have updated the last version of Cobalt but i don't see modifications.

How can i set the different alias for any language for the same section?

Thanks.


pepperstreet VIP
Total posts: 3,837
01 Aug 2014 13:17

Guest How can i set the different alias for any language for the same section?

See Section and type parameter "ALIAS". You can insert your "CUSTOM LANGUAGE CONSTANT" directly. Think of it as a placeholder. Then create your J! Language Override for each language as usual.


Sergey
Total posts: 13,748
03 Aug 2014 03:40

For example this URL

 http://www.mintjoomla.com/support/community-forum/item/4388-modify-the-action-of-search-form.html 

So you can add to language evverides

MODIFY-THE-ACTION-OF-SEARCH-FORM="seaerch-form-actoin-modifcation"

Guest
04 Aug 2014 09:29

Hi,

i have changed the file 'main_router' with the new version of this. The alias works!!

But doesn't work with the name of types.


Sergey
Total posts: 13,748
04 Aug 2014 11:58

Type names are not part of the URL/alias ever.


Guest
04 Aug 2014 17:25

JTEXT doesn't work in name of type


Sergey
Total posts: 13,748
05 Aug 2014 05:32

In what URL? Give an example.


Guest
05 Aug 2014 10:45

When i create a Type i write in the field 'Type Name *' the code 'TYPE-NAME-ECT' becouse i want change the name for any languages. But it doesn't work.


Sergey
Total posts: 13,748
06 Aug 2014 11:10

But where it is not translated in URL? On the page? on what page? List or full view or form? ? ? ?


Guest
08 Aug 2014 12:21

The code JTEXT ect doen't work for example in the list view of a section, or in the navbar where it is write 'Post NAME-TYPE here'.


pepperstreet VIP
Total posts: 3,837
09 Aug 2014 00:06

Guest The code JTEXT ect doen't work for example in the list view of a section, or in the navbar where it is write 'Post NAME-TYPE here'.

Confirmed. It just works for:

  • Section NAME
  • Submit Button TOOLTIP in section menu bar

Seems not to work:

  • Section ALIAS
  • Section DESCRIPTION
  • Submit Button in Sec Menu

(not sure about section TITLE. Where is it used? Could not find any output.)


Sergey
Total posts: 13,748
11 Aug 2014 01:40

Guest The code JTEXT ect doen't work for example in the list view of a section, or in the navbar where it is write 'Post NAME-TYPE here'.

Fixed. If you do not want to wait till Thursday in markup template line 190 change $submit->name to JText::_($submit->name).

pepperstreet (not sure about section TITLE. Where is it used? Could not find any output.)

It is used in Browser title.

Powered by Cobalt