Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Question regarding styling (Nokkori-Hotel)

  • Torsten Lachnitt
  • Torsten Lachnitt's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 6 months ago - 10 years 6 months ago #136983 by Torsten Lachnitt
Question regarding styling (Nokkori-Hotel) was created by Torsten Lachnitt
Hello all,

I´m using the Nokkori-Hotel template and I got this question regarding changing the style of the template:

would it be possible to have the styling the "Additional Info" like this imgur.com/dJo8OAr

Unfortunately, it looks like this at the moment: imgur.com/kVHywCm

Thanks in advance for your help
Brgds
Torsten

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #136984 by Yiota
Replied by Yiota on topic Question regarding styling (Nokkori-Hotel)
You will have to add the following CSS in the custom.css file located in templates/nokkori/css/
.itemExtraFields ul {padding:10px 0;}
.itemExtraFields ul li {
    border-bottom: 1px dotted ADD YOUR BORDER COLOR;
    display: block;
    margin: 0;
    padding: 4px 0;
}
.itemExtraFields ul li.even { ADD HERE YOUR BACKGROUND COLOR }
.itemExtraFields ul li.odd {}
.itemExtraFields span.itemExtraFieldsLabel {
  display: block;
  float: left;
  font-weight: bold;
  min-width: 100px;
}

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Torsten Lachnitt
  • Torsten Lachnitt's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 6 months ago #136985 by Torsten Lachnitt
Replied by Torsten Lachnitt on topic Question regarding styling (Nokkori-Hotel)
Thanks, Yiota, for that hint. Looking much better now except of the right side:
imgur.com/CnRKzE7
Any chance to get this fixed ?

Many thanks
Torsten

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #136986 by Yiota
Replied by Yiota on topic Question regarding styling (Nokkori-Hotel)
I thought you would remove the extrafields from the right side since you are loading it in the left side. Could you specify your structure so I can help you more efficiently?

Thank you.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Torsten Lachnitt
  • Torsten Lachnitt's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 6 months ago #136987 by Torsten Lachnitt
Replied by Torsten Lachnitt on topic Question regarding styling (Nokkori-Hotel)
What´s the name of the module for the extrafields on the right side ?

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #136988 by Yiota
Replied by Yiota on topic Question regarding styling (Nokkori-Hotel)
There is no module on the right side. The layout of the item page by default loads some blocks, like extra fields, social, author, etc under the itemRightContainer block.

Just open the item.php of templates/nokkori/html/com_k2/default folder and after you locate the div container named as above just remove or comment out the extrafields block from there.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Torsten Lachnitt
  • Torsten Lachnitt's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 6 months ago #136989 by Torsten Lachnitt
Replied by Torsten Lachnitt on topic Question regarding styling (Nokkori-Hotel)
Thanks for the update, Yiota. Is there a way to show only selected extra fields on the right side ? e.g. email adress, web site, etc.

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #136990 by Yiota
Replied by Yiota on topic Question regarding styling (Nokkori-Hotel)
If you check the item.php of the quickstart package you will notice that only the rates fields (perioda through d) are loading in the left block of content and all other extrafields are loading on the right block.
You can select the specific extrafields for the left part (customize the left part according to the code already in place by replacing the appropriate extrafield alias) and leave the rest load in the right side as the do now.

For example if your extrafield alias is address, your code for this exact extra field would be:

$this->item->extraFields->address->name; for the field's label and $this->item->extraFields->address->value; for the field's value.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Torsten Lachnitt
  • Torsten Lachnitt's Avatar Topic Author
  • Offline
  • Senior Member
More
10 years 6 months ago #136991 by Torsten Lachnitt
Replied by Torsten Lachnitt on topic Question regarding styling (Nokkori-Hotel)
Sorry, I don´t fully understand this. Unfortunately, I´m not a programmer :(
Does that mean that I have to remove the "itemRightContainer block" and add the lines like "$this->item->extraFields->address->name; for the field's label and $this->item->extraFields->address->value;" ??

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #136992 by Yiota
Replied by Yiota on topic Question regarding styling (Nokkori-Hotel)
No. Could you sent me the extrafields alias you are using and which ones you want to have on the left and which on the right?

Then sent me the item.php (if you have modified it from the default) so I can sent it back to you with the correct code to get your fields properly set up in the page.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum