change list layout (contacts)

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Dec 03, 2013 3:47 pm
Reply with quote
Report this post
Where to change the layout of a single contact page?
the adress is now in one line and I want it down to eachother. Like this

adres:
-streetname
-Living place
-state or Province must be removed.
-postcode must be moved between streetname and livingplace.
-country must be removed

is this possible to implement?

And, is it possible to set a text in front of the position number?

Naamloos.png
User avatar
Senior Boarder

GK User
Wed Dec 04, 2013 1:08 am
Reply with quote
Report this post
Hi.
There are default Joomla Contact settings, no magic at all.

Contact Manager --> Contact --- Contact Details - just delete content of those fields and Joomla won't show them.
User avatar
Platinum Boarder

GK User
Wed Dec 04, 2013 1:12 am
Reply with quote
Report this post
And, is it possible to set a text in front of the position number?

What number - what for ?

Ok, let's try this way:
You can edit contact view here:
Code: Select all
gk_creativity\html\com_contact\contact\default_address.php

as you can see -- you can change order moving lines of code or add <br> after each selected. This time, you don't have to touch css.
... second file to edit , this is main contact view file ... in particular when you want to add "number"
Code: Select all
gk_creativity\html\com_contact\contact\default.php


Custom jobs belongs to you ! have fun.
User avatar
Platinum Boarder

GK User
Wed Dec 04, 2013 8:12 am
Reply with quote
Report this post
But wait ....
Maybe I have stupid question.

Why don't you use "Address" field, where you can add all necessary address information in good order, there you can use even enter to add "<br>"
You don't need other fields and code hacking :mrgreen: .
User avatar
Platinum Boarder

GK User
Wed Dec 04, 2013 8:16 am
Reply with quote
Report this post
is it possible to set a text in front of the position number?


Oooh I get it...
Sorry I have never used this field before, was useless for me and for all my clients.
User avatar
Platinum Boarder

GK User
Wed Dec 04, 2013 12:14 pm
Reply with quote
Report this post
Thanks! I changed the code and solved al my problems now.
Now i need to change the some rows from left to right. (List Contacts in a Category)
What file do I have to change?

The row names are not standard anymore. I've made some changes in the text with language overrides
postion becomes "zang nr", fax becomes "functie" etc etc.

Naamloos.png
User avatar
Senior Boarder

GK User
Wed Dec 04, 2013 12:20 pm
Reply with quote
Report this post
Pawel F wrote:But wait ....
Maybe I have stupid question.

Why don't you use "Address" field, where you can add all necessary address information in good order, there you can use even enter to add "<br>"
You don't need other fields and code hacking :mrgreen: .


Yeah, now to late for that. I did not know that it was that easy :D

Stupid :mrgreen:
User avatar
Senior Boarder

GK User
Thu Dec 05, 2013 10:11 am
Reply with quote
Report this post
Still looking for this .php file to edit....

Mailpim wrote:Thanks! I changed the code and solved al my problems now.
Now i need to change the some rows from left to right. (List Contacts in a Category)
What file do I have to change?

The row names are not standard anymore. I've made some changes in the text with language overrides
postion becomes "zang nr", fax becomes "functie" etc etc.

Naamloos.png
User avatar
Senior Boarder

GK User
Thu Dec 05, 2013 9:14 pm
Reply with quote
Report this post
Ok, probably there: gk_creativity\html\com_contact\category\default_items.php

this is "simple" html table, so please change order of columns.
User avatar
Platinum Boarder

GK User
Thu Jan 09, 2014 2:51 pm
Reply with quote
Report this post
Is it possible to make this table responsive? Now it goes out of the template and it does not have the same background. (see screenshot)

responsive.png
User avatar
Senior Boarder

GK User
Thu Jan 09, 2014 11:54 pm
Reply with quote
Report this post
Yes and No, <tables> was added to HTML w3c when nobody thought about mobile devices, but there is hope....
... read few articles about Responsive tables:
1) http://css-tricks.com/responsive-data-tables/
2) https://github.com/filamentgroup/RWD-Table-Patterns
3) http://demos.jquerymobile.com/1.3.0-beta.1/docs/tables/

I hope you will find best solution ...
User avatar
Platinum Boarder

GK User
Mon Jan 13, 2014 12:08 pm
Reply with quote
Report this post
Pawel F wrote:Yes and No, <tables> was added to HTML w3c when nobody thought about mobile devices, but there is hope....
... read few articles about Responsive tables:
1) http://css-tricks.com/responsive-data-tables/
2) https://github.com/filamentgroup/RWD-Table-Patterns
3) http://demos.jquerymobile.com/1.3.0-beta.1/docs/tables/

I hope you will find best solution ...


Is there a option that you could help me with this? Im not that good in programming :( That is one of the reasons that I bought a template and not create one by myself ;)
User avatar
Senior Boarder

GK User
Mon Jan 13, 2014 12:52 pm
Reply with quote
Report this post
Yes , I understand but you bought template for Joomla,
and we don't include solutions for elements inside except those you can see in DEMO like typography, PriceList etc.

As you can see RWD for tables request additional (extra) solutions, no one add it inside templates, even our competition.
But You have few options:
1) Hire somebody
2) teach your self how to do this
3) Buy ready solution (plugin for Joomla?)
4) Leave it as it is now
User avatar
Platinum Boarder


cron