[geeklog-users] Adding Blocks to article.php

geeklog-users-admin at lists.geeklog.net geeklog-users-admin at lists.geeklog.net
Thu May 22 15:44:24 EDT 2003


>Not to sound rude, but I'm well aware of how to call it using the block
>function and I did mean lib-custom.php (bad habit of typing lib-common.php)
>
>Anyway, I have the blocks working fine on every page, however if you look at
>any article where you have 'read more' the article.php file only returns to
>left blocks (what's related & story options). I wish to add on of my custom
>blocks to show up under those two blocks or add the entire left side blocks
>underneath them.
>
>Does that make more sense?

Yes, it does (assuming you meant right side blocks, not left side blocks, the second time you said it). It sounds like you want something like changing (in article.php):

$display .= COM_siteFooter();

to

$display .= COM_siteFooter(1);

Now, this probably is not exactly what you want, as it gives you *two* right columns, not one, which can seriously infringe on the space for the article itself.

If you edit the article.thtml file in your layouts directory, you can remove the cell that contains {whats_related_story_options}; that will remove those two blocks completely.

Which is probably closer to what you want, but not quite.

If you want both sets of blocks, the problem you're going to run into is that COM_siteFooter(true) opens up a new cell to place its right blocks into. So getting them to share space is going to require (I suspect) more than simple programming. It might be possible to program COM_siteFooter (in lib-common.php) to "know" when it is in an article, and then not open a new cell.

Jerry
-- 
jerry at sandiego.edu
http://www.sandiego.edu/~jerry/
Serra 188B/x8773
--
"The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong goes wrong it usually turns out to be impossible to get at and repair."--Douglas Adams (Mostly Harmless)



More information about the geeklog-users mailing list