cotonti.com : cat icon & sprite https://www.cotonti.com Последние сообщения в теме Cotonti en Tue, 21 Oct 2025 05:40:37 -0000 Bosco All I see it a thin gray bar, Koradhil....

Added 16 hours later:

finally fixt this using the page_file_url tag. Now it works like I want. thx for the help lads.

]]>
чт, 05 мая 2011 20:52:57 -0000
GHengeveld ]]> чт, 05 мая 2011 20:06:19 -0000 Bosco @ kort

Didn't think of the cat codes. Thx man.

Can you help me out with the download image too?

Fooled around with it for 2 days now, tried all different kind of tags, but am currently stranded at:

 

<!-- IF {PAGE_FILE}> Yes  --><img src="https://www.cotonti.com/img/filename.jpg"/> <!-- ENDIF -->

But then it will display the image in all the pages, including the ones that don't have a DL attached to it.

It probably is something very small that I am missing, but this is driving me nuts, so, could you, or someone else tell me what I need to put in there, or what I missed or didnt do?

 

 

]]>
чт, 05 мая 2011 14:44:13 -0000
Kort To use a sprite you'll have to define styles for each category. You can use category codes for this. Then you just define styles in the stylesheet with background positions.

]]>
вт, 03 мая 2011 19:27:29 -0000
Bosco I'm not really used to that logic block thingy, can you please give one example Koradhil?

Added 4 hours later:

while we are on the subject of logic blocks;

 

what tags do I use on the marked places?

<!-- IF {here} > here  --><img src="https://www.cotonti.com/img/filename.jpg"/> <!-- ENDIF -->

 

when I want to display an image in my news.tpl when there is a file attached to that page.

]]>
вт, 03 мая 2011 11:01:00 -0000
GHengeveld Yes it can be done, but you can't use the category icon field in the cms anymore, you have to use template logic to achieve it. It just works like regular sprites.

]]>
вт, 03 мая 2011 08:06:22 -0000
Bosco Well, I want to put all the category icons in one image file,  with the page icons I use. But you must add them per category, and  I am not sure how to continue. I got a rather heavy site when it comes to imagery, so I want to put as much images in single files as possible.

]]>
вс, 01 мая 2011 15:43:54 -0000
Trustmaster Could you explain what you want in detail please?

]]>
вс, 01 мая 2011 15:34:43 -0000
Bosco is that possible with Cotonti in a simple manner?

]]>
вс, 01 мая 2011 15:00:05 -0000