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
11 years 5 months ago - 11 years 5 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
11 years 5 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
11 years 5 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
11 years 5 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
11 years 5 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
11 years 5 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
11 years 5 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
11 years 5 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
11 years 5 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
11 years 5 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.

  • Torsten Lachnitt
  • Torsten Lachnitt's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 5 months ago #136993 by Torsten Lachnitt
Replied by Torsten Lachnitt on topic Question regarding styling (Nokkori-Hotel)
Should I send it via Email ?

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

More
11 years 5 months ago #136994 by Yiota
Replied by Yiota on topic Question regarding styling (Nokkori-Hotel)
There is no need for that, you could do it from here.

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
11 years 5 months ago #136995 by Torsten Lachnitt
Replied by Torsten Lachnitt on topic Question regarding styling (Nokkori-Hotel)
OK, thanks for the info. I have some additional questions:
I got three categories with different extra fields, is this working ?
Also, in an article, if I leave an extra field blank, the field will not be displayed, right ?
Would it be possible to show the price field with the currency symbol (in this case €) ?
Please find attached the file "data.zip".
Attachments:

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

More
11 years 5 months ago #136996 by Yiota
Replied by Yiota on topic Question regarding styling (Nokkori-Hotel)
This will work on all of your categories as far as you have somehow decided which part will remain with the same info (if applicable) in all three categories. What I mean is that you will have to decide first which extrafields you would like to show on the left part and which on the right. Maybe there is no need for all categories to show extrafields on the right, for example, but you need to narrow down which ones will it be.
It would help if you could sort this out.

If you leave the extrafield blank it won't show, yes.

The symbol of the price could be whatever you want. The field of the price is a textfield extra field type and the symbol goes along with the number. It's all up to what you will type in.

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
11 years 5 months ago - 11 years 5 months ago #136997 by Torsten Lachnitt
Replied by Torsten Lachnitt on topic Question regarding styling (Nokkori-Hotel)
As an example, I take this site here: start.suche-seminarhaus.de/index.php/hotel/using-k2/trainer/item/178-harald-kurz
The extra fields "Name", "Email" and "Homepage" are shown on the right and that´s how it should be. So not sure if I need the extra fields also on the left side. Do you have an example for extra fields showing on the left side ?

Regarding the currency symbol, I will use a filter for K2 (K2 Search & Filter by Joomlart, demo.joomlart.com/joomla-extensions/) and I cannot type the currency symbol in the same field as the price because this won´t work.

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

More
11 years 5 months ago #136998 by Yiota
Replied by Yiota on topic Question regarding styling (Nokkori-Hotel)
OK. In your example the extrafields seem to work very nice in the right bar. On the left side by default the extrafields that we fetch are the ones with aliases perioda to periodd under Rates shown in our demo here: demo.nuevvo.com/#nokkori/index.php?option=com_k2&view=item&layout=item&id=129&Itemid=116.

Another way to show the currency is to put it in another extrafield and fetch that as well along with the price or put it in the template files right before the extrafield's value is called.
In the first case the drawback is that you will have to add it in every single item you add that has a price.

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
11 years 5 months ago #136999 by Torsten Lachnitt
Replied by Torsten Lachnitt on topic Question regarding styling (Nokkori-Hotel)
Thanks, Yiota. Could you please send me the edited file then ?
That´s a great idea to use the currency as an extra field. Not sure regarding the formatting or how to handle this.

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

More
11 years 5 months ago #137000 by Yiota
Replied by Yiota on topic Question regarding styling (Nokkori-Hotel)
Since I am at a little loss of what it is that you actually want to achieve with your extrafields would you be kind enough to revise it for me in order to get it right and sent you the file back as you want?

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
11 years 5 months ago #137001 by Torsten Lachnitt
Replied by Torsten Lachnitt on topic Question regarding styling (Nokkori-Hotel)
OK, that´s what I want to achieve:

We got three different categories at the moment, each category uses it´s own extra fields. The specified extra fields (not all extra fields !!!) should show on the right side of the screen, see also start.suche-seminarhaus.de/index.php/hotel/using-k2/trainer/item/172-gerald-sommer as an example.

You can find the category listings (specified extra fields) in the updloaded file "Categories_Nokkori.rtf", included in "data.zip".

Hope this clarifies the question.

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

More
11 years 5 months ago #137002 by Yiota
Replied by Yiota on topic Question regarding styling (Nokkori-Hotel)
I need you to verify on more thing for me. The fields you have provided in your *.rtf file are the aliases of the extrafields or the names? If they are the names I would like you to sent me the exact alias names for each one you have in your *.rtf file.

I'm sorry for asking so many questions but if the aliases of the extrafields are incorrect the file I'll sent you won't work.

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.


Powered by Kunena Forum