 |

willbegood
User
Jul 24, 2008, 10:53 AM
Post #1 of 5
(393 views)
Shortcut
|
HELLLPPPPP!!!! Dynamic image header only display on the first article page
|
Can't Post
|
|
Hello, i really don't know where the bug is coming from. I want to be able to change the main image of my header page (wich display on all of the page of my site). So i create an editor (single record), with a "upload" field and a "text" field (i use it for the alt of my image). I have many editors. When i put together my Header image and an editor (single menu) it works. But when Header image is displayed with a detail page of another editor with multiple record... the header image only shows on the first entry date. For exemple i have 3 articles, it will only show on the first article entered and never on the other. Really strange!!! Do i forget something? I know it's possible to make it work. Please help!!!!!
|
|
|  |
 |

willbegood
User
Jul 24, 2008, 11:01 AM
Post #2 of 5
(392 views)
Shortcut
|
|
Re: [willbegood] HELLLPPPPP!!!! Dynamic image header only display on the first article page
[In reply to]
|
Can't Post
|
|
My top php code was: list($imgheaderRecords, $imgheaderMetaData) = getRecords(array( 'tableName' => 'imgheader', 'where' => whereRecordNumberInUrl(1), 'limit' => '1', )); $imgheaderRecord = @$imgheaderRecords[0]; It works on lists And for the the detail pages i've just commented the where and limit argument, and it works, see below: list($imgheaderRecords, $imgheaderMetaData) = getRecords(array( 'tableName' => 'imgheader', //'where' => whereRecordNumberInUrl(1), //'limit' => '1', )); $imgheaderRecord = @$imgheaderRecords[0]; Does somebody can tell me if it's a "correct" way to do it, perhaps there is a more elegant way ;). And i would like to understand the all stuff please.
|
|
|  |
 |

sagentic
User

Jul 24, 2008, 12:33 PM
Post #3 of 5
(379 views)
Shortcut
|
|
Re: [willbegood] HELLLPPPPP!!!! Dynamic image header only display on the first article page
[In reply to]
|
Can't Post
|
|
Try creating a page that just shows your header image. Then on all other pages, put a php includes statement where the header would be: <?php include "header.php"; ?>
|
|
|  |
 |

willbegood
User
Jul 24, 2008, 12:40 PM
Post #4 of 5
(376 views)
Shortcut
|
|
Re: [sagentic] HELLLPPPPP!!!! Dynamic image header only display on the first article page
[In reply to]
|
Can't Post
|
|
A already tryed to do that, it doesn't worked
|
|
|  |
 |

Dave
Staff
/ Moderator

Jul 24, 2008, 4:21 PM
Post #5 of 5
(353 views)
Shortcut
|
|
Re: [willbegood] HELLLPPPPP!!!! Dynamic image header only display on the first article page
[In reply to]
|
Can't Post
|
|
Hi willbegood, Sometimes when you have multiple viewers you need to make sure they use different variable names or they'll overwrite each others values. It could be that, or it could be something else. Are you able to post an url where we can see the problem and attach the problem viewer to this thread? If I can look at the code it will help. Thanks! Dave Edis - Senior Developer interactivetools.com
|
|
|  |
|