Jeff VIP
Total posts: 745
22 May 2013 02:06

Hi Sergey,

maybe it is a good idea to be able to give (default) templates an alias in the Template Parameters

I have adjusted each template to have a very distinctive appearance.

My default Blog view doesn't look like a blog anymore, but it shows only thumbnails. In the Switch View list however, 'Blog' should be renamed into 'Thumbs', 'Table Advanced' into 'List'etc...

I know what you are thinking: Why not copy the template and name it 'Thumbs'? Well for the simple reason that I don't want to check it for changes in the code after each Cobalt update. It's like hacking code: after each update you have to go through the whole process of checking for changes. I have had my share of that in the past and frankly it can turn site maintenance into a real nightmare.:(

The Switch View shows template names in alphabetical order. So the only way to change that order is to rename the templates. As you can see in the example image, the Blog view is the 'default view' for a site visitor. And that is not quite what I want.

Best Regards,

Jeff

Last Modified: 02 Mar 2014


Sergey
Total posts: 13,748
22 May 2013 06:25

I think you already can do it in template manager


Jeff VIP
Total posts: 745
22 May 2013 07:44

Hi Sergey,

thanks I have missed that one! :D

Is there a way to change the order in the list?


Jeff VIP
Total posts: 745
22 May 2013 07:51

Almost forgot,

How can I set a view to be default?


Sergey
Total posts: 13,748
22 May 2013 07:55

No order no default view :( it is make first template in the list default.


Jeff VIP
Total posts: 745
22 May 2013 08:15

Sergey

No order no default view it is make first template in the list default.

I see. Then I would like this as a feature request :)

Best Regards,

Jeff


Sergey
Total posts: 13,748
22 May 2013 22:40

I can make default template parameter but I cannot make an order. There is no table in DB to store templates. It is simply files. I can only order it by template label.


Jeff VIP
Total posts: 745
22 May 2013 23:36

Sergey

I can make default template parameter

Perfect :D

Sergey

I can make default template parameter

**

Sergey**

I can only order it by template label

Well, ordering by template label isn't perfect, but it gives us at least some control :)


Sergey
Total posts: 13,748
23 May 2013 00:39

but it gives us at least some control

If I add it there wil be no parameters. It will be just default order.


Sergey
Total posts: 13,748
23 May 2013 01:31

Added.


Jeff VIP
Total posts: 745
23 May 2013 08:09

:D


Guest
23 May 2013 10:21

Sergey, I have 5 templates selected for list view. I would like to make the template table as the default. I think as per ur latest release, we could do that. I typed "table" in the default list template text box on backend under section settings. However I did not see table template loaded by default on the frontend. Am I missing something here?


Sergey
Total posts: 13,748
23 May 2013 11:11

Am I missing something here?

yes. templates are session based. there is no URL parameter for template. try in fresh browser. You probably see your last selected template. But new user will see what you set.

Also be sure you typed it exactly like it is in the select box.


Guest
23 May 2013 11:33

It doesn't work for me even on fresh browser I deleted all cookies,sessions etc.but still does not show.I wonder if I need any other config.


Jeff VIP
Total posts: 745
23 May 2013 20:11

Can't get it to work either :(

Sergey

You probably see your last selected template. But new user will see what you set.

But clearing cookies and cache should reset the last selected template, right?


Sackgesicht VIP
Total posts: 1,636
23 May 2013 20:45

Not working here as well ....


Sergey
Total posts: 13,748
23 May 2013 23:53

But clearing cookies and cache should reset the last selected template, right?

No. Joomla sessions are stored in DB per user. You have to login/logoff or login as different user.


Guest
24 May 2013 01:46

Sergey, I did everything. Still not showing up.


Guest
24 May 2013 05:37

This is really an important feature. I would love to see it working. I am using default joomla template, but still have no luck so far.


Sergey
Total posts: 13,748
24 May 2013 05:51

Working on it. Wil report later...


Sergey
Total posts: 13,748
24 May 2013 06:25

Ok I have found the error. It was complex. The fix is not simple. Please replace

com_cobalt/views/records/view.html.php

with attached file (unzip first)

Powered by Cobalt