Recent Topics

1 Dec 10, 2006 17:06    

Hi,

i'm just examining the files (templates and core files) a bit as i wanted to customize the display of "read more" (on the frontbpage) and "[More:]" (within the full post) a bit.

I came to _item.class.php within inc/MODEL/item

                if( $more_anchor == '#' )                                                                                           
                { // TRANS: this is the default text displayed once the more link has been activated                                
                        $more_anchor = '['.T_('More:').']';                                                                         
                }

Is there any usual way to overwrite this default behaviour from within the template?

Currently the content get's pulled by $Item->content(); - for frontpage and article full view the same way - both within _main.php.

As i'm a newbie to b2e this is all a bit confusing to me. I'd just like to put a prettier button or something on the front view of the blogs and a ruler (<hr>) or probably some ads between the excerpt and the more-content in the full view.

Thanks for your help.

3 Dec 10, 2006 18:53

Yup. Check the "element index" link in my sig file for your version, click the letter c, then scroll down until you find content. Actually you'll end up unhappy unless you figure out to look for content again because it's Item::content() you want. You will then see all the params, the order you need to supply them in, and most of the time what they default to. So like if you're using 1.8.6 you would end up checking out http://doc.b2evolution.net/v-1-8/evocore/Item.html#methodcontent and coming up with something like this:

$Item->content( '#', '#', '<img src="full_url" alt="click me" />', '<hr />', '<p style="font-size:300%;">', '</p>' );

I'm not sure if HR will work or not, but that'd be where you would put it. Not even sure about using an image tag to be honest.

I think as you get into playing with your skin you'll find the element index thing to be your friend. Even though sometimes you have to poke around quite a bit to find what you're after.

4 Dec 10, 2006 19:10

thanks guys. Should have looked there before asking. Maybe i'll get that into my head soon :)


Form is loading...