Keyword

Drawing of the template category item

  • jeanchristophe
  • jeanchristophe's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 2 months ago #76397 by jeanchristophe
Drawing of the template category item was created by jeanchristophe
Hello,

I would like to modify the template category item.
I would like to have the pictures to the side of the article and not over.
That's why I would like to change the template.

I would like to know if you have a drawing of it, to find out where what is going where and change it.

Thank you very much
Best regards
Jean-Christophe

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

More
15 years 1 month ago #76398 by Emilija Vojnović
Replied by Emilija Vojnović on topic Drawing of the template category item
hi there.. here is how i have managed to do this

div class="itemBody" wraps around div class="itemImageBlock" and div class="itemFullText". this is my css for it.

div.itemImageBlock {
padding:8px;
float: left;
width: 40%;
margin-top: 0;
margin-right: 0;
margin-bottom: 16px;
margin-left: 0;
}

div.itemFullText {
float: left;
width: 50%;
}

as you can see, i've leaved 10% of the width for additional margins and padding that are already included in the css.

here is the print screen

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

  • jeanchristophe
  • jeanchristophe's Avatar Topic Author
  • Offline
  • Junior Member
More
15 years 1 month ago #76399 by jeanchristophe
Replied by jeanchristophe on topic Drawing of the template category item
I will try this.

Thank you very much

Happy hollydays
Best regards
Jean-Christophe

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

More
15 years 4 weeks ago #76400 by Lee White
Replied by Lee White on topic Drawing of the template category item
Thankyou so much, this was really helpful to me. I've searching for weeks trying to find this solution...

Mihael Fugaj said:hi there.. here is how i have managed to do this
div class="itemBody" wraps around div class="itemImageBlock" and div class="itemFullText". this is my css for it.

div.itemImageBlock {
padding:8px;
float: left;
width: 40%;
margin-top: 0;
margin-right: 0;
margin-bottom: 16px;
margin-left: 0;
}

div.itemFullText {
float: left;
width: 50%;
}

as you can see, i've leaved 10% of the width for additional margins and padding that are already included in the css.

here is the print screen

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

More
15 years 1 week ago #76401 by HomesteadMommy
Replied by HomesteadMommy on topic Drawing of the template category item
I would like to change this as well. I tried the coding but didn't see any changes...I think i could be placing it in the wrong place. I was using the general template in K2. Is this the right place?
Thanks,
Kim

Mihael Fugaj said:hi there.. here is how i have managed to do this
div class="itemBody" wraps around div class="itemImageBlock" and div class="itemFullText". this is my css for it.

div.itemImageBlock {
padding:8px;
float: left;
width: 40%;
margin-top: 0;
margin-right: 0;
margin-bottom: 16px;
margin-left: 0;
}

div.itemFullText {
float: left;
width: 50%;
}

as you can see, i've leaved 10% of the width for additional margins and padding that are already included in the css.

here is the print screen

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

More
15 years 1 week ago #76402 by piperchick
Replied by piperchick on topic Drawing of the template category item
HomeSteadMommy,

I just looked at your site. I can't see where you want to do this? Are you trying to do it for your video within the article-view?

If you don't already use firebug, you might want to try it. It is a FireFox add-on and it will inspect elements of your web site and tell you exactly where to make the changes.

That said, some of the templates have their own css which over-ride the default. You may want to try looking in templates\template name\html\com_k2\templates (change "template name" to your template name.)

Don't forget to include a link so that we may help you better! (disclaimer: I am not an expert, but find these forums very helpful).


HomesteadMommy said:I would like to change this as well. I tried the coding but didn't see any changes...I think i could be placing it in the wrong place. I was using the general template in K2. Is this the right place? Thanks, Kim

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

More
15 years 1 week ago #76403 by HomesteadMommy
Replied by HomesteadMommy on topic Drawing of the template category item
Thanks for having a look. I do have firebug and will keep working on my site today. Hard getting a block of time long enough with little ones lol.

What I would like is when you open the articles (I'm using catalog mode) I would like the photos to be to the side and not top. You can see how they come up on my site here. I would like them to look like this site.

Before I changed to K2 I had the Imagesized plugin and it did a great job for this! Exactly what I wanted, but it doesn't seem to work with K2.

piperchick said:HomeSteadMommy,
I just looked at your site. I can't see where you want to do this? Are you trying to do it for your video within the article-view?

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

More
15 years 1 week ago #76404 by Emilija Vojnović
Replied by Emilija Vojnović on topic Drawing of the template category item
Those fields are extra fields?

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

More
15 years 1 week ago #76405 by piperchick
Replied by piperchick on topic Drawing of the template category item
I have just played with this in Firebug and got it to work. I have attached a screen shot.

All I did was a a float: left; to the div.catItemImageBlock in k2.css

div.catItemImageBlock {
float:left;
margin:0 0 16px;
padding:8px;
}

components/com_k2/css/k2.css

You may need to finesse a bit as Mihael has indicated.

I hope this helps.

HomesteadMommy said:Thanks for having a look. I do have firebug and will keep working on my site today. Hard getting a block of time long enough with little ones lol. What I would like is when you open the articles (I'm using catalog mode) I would like the photos to be to the side and not top. You can see how they come up on my site here. I would like them to look like this site.
Before I changed to K2 I had the Imagesized plugin and it did a great job for this! Exactly what I wanted, but it doesn't seem to work with K2.

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

More
15 years 1 week ago #76406 by HomesteadMommy
Replied by HomesteadMommy on topic Drawing of the template category item
Thanks!! I'll give it a try. :-)

piperchick said:I have just played with this in Firebug and got it to work. I have attached a screen shot.

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

More
15 years 1 week ago #76407 by Emilija Vojnović
Replied by Emilija Vojnović on topic Drawing of the template category item
OK,
so we've managed to put the ImageBlock on the left side and the FullText on the right, play a little bit with CSS and we got the results the we wanted.
Now my occupation is to put the ImageBlock on the left and the ExtraField on the right side. FullText will be placed below in that case.

Something like this:

div.itemImageBlock / div.itemExtraFields

div.itemFullText

Does anyone have an idea?

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

More
15 years 1 week ago #76408 by troponin
Replied by troponin on topic Drawing of the template category item
you have to replace the div for extra field on the other point in the item.php and edit the css.

Search in www for div placement css and clear div

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

More
15 years 1 week ago #76409 by Emilija Vojnović
Replied by Emilija Vojnović on topic Drawing of the template category item
item.php!!

thank you very much
just what i needed


Troponin said:you have to replace the div for extra field on the other point in the item.php and edit the css.
Search in www for div placement css and clear div

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

More
15 years 6 days ago #76410 by HomesteadMommy
Replied by HomesteadMommy on topic Drawing of the template category item
Thank you very much, worked great!

piperchick said:I have just played with this in Firebug and got it to work. I have attached a screen shot.
All I did was a a float: left; to the div.catItemImageBlock in k2.css

div.catItemImageBlock {
float:left;
margin:0 0 16px;
padding:8px;
}

components/com_k2/css/k2.css

You may need to finesse a bit as Mihael has indicated.

I hope this helps.

HomesteadMommy said:Thanks for having a look. I do have firebug and will keep working on my site today. Hard getting a block of time long enough with little ones lol. What I would like is when you open the articles (I'm using catalog mode) I would like the photos to be to the side and not top. You can see how they come up on my site here. I would like them to look like this site. Before I changed to K2 I had the Imagesized plugin and it did a great job for this! Exactly what I wanted, but it doesn't seem to work with K2.

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

More
14 years 10 months ago #76411 by Ricardo Dias
Replied by Ricardo Dias on topic Drawing of the template category item
Hi,

I would like to use the TITLE side by side with image.
Is this possible?

Regards,

Ricardo Dias

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

  • jeanchristophe
  • jeanchristophe's Avatar Topic Author
  • Offline
  • Junior Member
More
14 years 10 months ago #76412 by jeanchristophe
Replied by jeanchristophe on topic Drawing of the template category item
Yes you can!
Just read all the previous answers and you will find what you are looking for.

Best regards
Jean-Christophe

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

More
14 years 10 months ago #76413 by Erin Barker
Replied by Erin Barker on topic Drawing of the template category item
Hello. I am reading this and I am confused. In what css code or php code to I have to change to make the Catagory Items appear with the Images on the Left and the Header & Intro Text on the Right?

thank you for your time and patience.

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

More
14 years 10 months ago #76414 by piperchick
Replied by piperchick on topic Drawing of the template category item
In components/com_k2/css/k2.css add "float:left;" to the div.catItemImageBlock. Your code should look like this:

div.catItemImageBlock {
float:left;
margin:0 0 16px;
padding:8px;
}

Really, it is just adding the "float:left;"

You will need to do this in div.itemImageBlock to change the layout in the item-level.

Give this a try (but save the original first) and let us know how you make out.


Erin Barker said:Hello. I am reading this and I am confused. In what css code or php code to I have to change to make the Catagory Items appear with the Images on the Left and the Header & Intro Text on the Right? thank you for your time and patience.

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

More
14 years 10 months ago #76415 by Erin Barker
Replied by Erin Barker on topic Drawing of the template category item
Well I tryed it.. and It only changed the way the item looks when the item is viewed.. I need the Catigory list items to change.

I have included some screen shots of what it looks like now and how I would like it to look when its done.

I guess I would like it to go from vertical lay out to horizontal layout.

thank you for your time and help on this.
its very appreciated.
Attachments:

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

More
14 years 10 months ago #76416 by piperchick
Replied by piperchick on topic Drawing of the template category item
Add float:left; to k2.css div.catItemImageBlock


Erin Barker said:Well I tryed it.. and It only changed the way the item looks when the item is viewed.. I need the Catigory list items to change.
I have included some screen shots of what it looks like now and how I would like it to look when its done.

I guess I would like it to go from vertical lay out to horizontal layout.

thank you for your time and help on this.
its very appreciated.

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


Powered by Kunena Forum