RE: Creating a custom block
"Garrett Hunter" <[email protected]> Wed, 11 Jun 2003 12:22:21 -0700
| Newsgroups | gmane.comp.cms.xaraya.knowledge-base |
|---|---|
| Message-ID | <20030611192219.OGLG11703.pop018.verizon.net@ishamael> |
Sounds like same problem as customizing the "right" blockgroup (see bug#610). Block_groups templates are overriding block_instances templates. -----Original Message----- From: xaraya_knowledge-base-bounces-n5IRV0TL0hwRxVAL8JNkPw@public.gmane.org [mailto:xaraya_knowledge-base-bounces-n5IRV0TL0hwRxVAL8JNkPw@public.gmane.org] On Behalf Of Mark Linsell Sent: Monday, June 09, 2003 2:55 AM To: [email protected] I have been trying to create a new block template which has a background image along with the header text. So I copied block/default.xt and renamed it customleft.xt. I then changed the div class as follows: <xar:if id="title_condition" condition="!empty($title)"> <div class="xar-block-head"> <div class="custom-xar-block-title">#$title#</div> </div> </xar:if> <div class="xar-block-body"> #$content# </div> <div class="xar-block-foot"></div> And added the following into the style.css file: .custom-xar-block-title { font-weight: bold; font-style: italic; font-size: 11pt; background-image: url(../images/customleftheader.gif); background-position: center center; background-repeat: repeat-y; } I then created a new base/text block instance using the "customleft" template (does this need .xt on the end?). However nothing changes... any ideas what I have done wrong? Thanks, Mark. _______________________________________________ Xaraya_knowledge-base mailing list [email protected] http://lists.xaraya.com/mailman/listinfo/xaraya_knowledge-base