Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 02:09 am EST
Geeklog Forums
Splitting the intro block 30/70
Woi
Anonymous
Hi,
I rund a site where the design would look better if I could split the top intro text with a table, so that I have an image on the left side, in the article, that would be ~30% of the width, and have the story, including the title and contributed by etc be on the right 70%. I've managed to do this simply by modifying the professional theme with the split, but since the front page is generated from the same template as the article page, this shows up on the main page too. Not ideal since the image for each story is quite large.
Is there an easy way to make this appear only on the article page, but not on the front page? like this
artice:
| image | Bla bla title and story stuff | (30/70%)
main
| Bla bla title and story stuff | (100%)
Hope someone understands what I mean...
I rund a site where the design would look better if I could split the top intro text with a table, so that I have an image on the left side, in the article, that would be ~30% of the width, and have the story, including the title and contributed by etc be on the right 70%. I've managed to do this simply by modifying the professional theme with the split, but since the front page is generated from the same template as the article page, this shows up on the main page too. Not ideal since the image for each story is quite large.
Is there an easy way to make this appear only on the article page, but not on the front page? like this
artice:
| image | Bla bla title and story stuff | (30/70%)
main
| Bla bla title and story stuff | (100%)
Hope someone understands what I mean...
5
6
Quote
Status: offline
beewee
Forum User
Full Member
Registered: 08/05/03
Posts: 969
Location:The Netherlands, where else?
You have to change that in /layout/professional/article/article.thtml. Just make a two-column table, put the image in the left column, the {formatted article} in the right column.
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
Dutch Geeklog sites about camping/hiking:
www.kampeerzaken.nl | www.campersite.nl | www.caravans.nl | www.caravans.net
6
6
Quote
Woi
Anonymous
Thank you, that solved half of it. However, now I've ended up with something like this
| image | all the text |
| -------- | all the text |
| -------- | all the text |
| -------- | all the text |
| -------- | all the text |
| -------- | all the text |
when what I was aiming for was more like
| image | headline and stuff |
| body text body text body t|
| body text body text body t|
| body text body text body t|
| body text body text body t|
| body text body text body t|
Tried combining it with stuff in storybodytext.thtml, but that messes up the layout entirely.
I guess I have to go after the {formatted_article} where it is generated. Is this in article.php?
| image | all the text |
| -------- | all the text |
| -------- | all the text |
| -------- | all the text |
| -------- | all the text |
| -------- | all the text |
when what I was aiming for was more like
| image | headline and stuff |
| body text body text body t|
| body text body text body t|
| body text body text body t|
| body text body text body t|
| body text body text body t|
Tried combining it with stuff in storybodytext.thtml, but that messes up the layout entirely.
I guess I have to go after the {formatted_article} where it is generated. Is this in article.php?
5
5
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Woi: I guess I have to go after the {formatted_article} where it is generated. Is this in article.php?
Yep. All it does, though, is to call STORY_renderArticle() which is in system/lib-story.php
bye, Dirk
7
6
Quote
All times are EST. The time is now 02:09 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content