Mel VIP
Total posts: 126
24 Feb 2014 00:35

Is it possible to have the title automatically generated from user submitted fields? For example I need the title to be the users location. So the user enters country, state and city in the ‘Location and address’ field. How can I make the title be the country, state and city? It needs to be in the url.

Thanks for your help

Last Modified: 10 Mar 2014


brianpat VIP
Total posts: 211
03 Mar 2014 15:10

Sergey Fixed in upcoming version. I have preg_match instead of preg_match_all. That is why it was replacing only first occasion.

Hi Sergey,

Can you please advise if I can show multiplelevel select option on title? Is it possible?


Sergey
Total posts: 13,748
03 Mar 2014 15:27

Depends what you mean.

Multiple select will be visible with values combined by coma ,.

Multiple level selct is more complicated. If you selected multiple values of multiple level select it will be also converted into string separated by coma.


brianpat VIP
Total posts: 211
03 Mar 2014 16:01

Sergey Depends what you mean.

Multiple select will be visible with values combined by coma ,.

Multiple level selct is more complicated. If you selected multiple values of multiple level select it will be also converted into string separated by coma.

Thanks for your reply.

Can you please get me an example considering the example I am giving here. Lets say I Have Make then Model. Make has values like Ford, Audi, Toyota, then you select Toyota and the model for Toyota are Corolla, Yaris etc etc..

Now the field used here is Makemodel. What will I input in composite title to display Toyota Corolla?


Sergey
Total posts: 13,748
04 Mar 2014 06:41

brianpat What will I input in composite title to display Toyota Corolla?

Toyota, Corola


brianpat VIP
Total posts: 211
04 Mar 2014 09:13

Sergey

brianpat What will I input in composite title to display Toyota Corolla?

Toyota, Corola I mean if your variable name is makemodel , what will you put on the basis of user selection from front end?


brianpat VIP
Total posts: 211
06 Mar 2014 18:00

Sergey Fixed in upcoming version. I have preg_match instead of preg_match_all. That is why it was replacing only first occasion.

not sure if this is actually fixed as said by you as I still have this issue.


Mel VIP
Total posts: 126
07 Mar 2014 01:37

Thanks for doing this Sergey, it works great.

For me it does not matter that it uses the country code instead of country name because in my custom template I can make the title from the Geo field so only the url has “city-state-country code” which is fine.


Sergey
Total posts: 13,748
07 Mar 2014 06:30

brianpat not sure if this is actually fixed as said by you as I still have this issue.

Who do you use it?


brianpat VIP
Total posts: 211
07 Mar 2014 09:19

Sergey,

I think this issue is still not fixed. When I use html syntax in the title, the breadcrumb still shows html syntax.


Sergey
Total posts: 13,748
07 Mar 2014 12:15

brianpat the breadcrumb still shows html syntax.

We cannot fix that. This is how Joomla handle breadcrumbs. We just give it a text and it display the way they want.


brianpat VIP
Total posts: 211
07 Mar 2014 12:42

Sergey

brianpat the breadcrumb still shows html syntax.

We cannot fix that. This is how Joomla handle breadcrumbs. We just give it a text and it display the way they want.

I understand that Sergey, it is not from cobalt, but from joomla. But any hint if I can able to change that in joomla?


Sergey
Total posts: 13,748
07 Mar 2014 13:31

Only hack it I think :) You need that HTML thee or you want to strip HTML when in breadcrumbs?


pepperstreet VIP
Total posts: 3,837
09 Mar 2014 23:36

brianpat But any hint if I can able to change that in joomla?

I guess, an override or alt-layout for breadcrumps module should work for you. As far as the output is accessible and can be modified in that file. (sometimes things might be created and formatted earlier in the core, so no guarantees.)

override:

templates > YOURtemplate > html > mod_breadcrumbs > default.php

or

alternative layout (selectable in module adv. parameters)

templates > YOURtemplate > html > mod_breadcrumbs > cobalt.php


brianpat VIP
Total posts: 211
10 Mar 2014 10:10

Thanks. I will try that.

Powered by Cobalt