Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#325 2005-09-14 04:20:44
Re: upm_img_popper
for a clear example go to my current home page where i am doing what i wish to do…. but here i am doing it by coding a new image by hand by creating a new unique html page on an article basis. www.homepage.mac/bici
eg on the main poage click on a perma link ( bottom of each entry) and a new header iamge is displayed for that article.
…. texted postive
Offline
#326 2005-09-14 04:34:24
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
You’re after this.
Offline
#327 2005-09-14 15:07:38
Re: upm_img_popper
ok. i added this bit ;
<code>
#header {
background: url(<txp:upm_img_full_url />);
width: <txp:upm_img_full_width />;
height: <txp:upm_img_full_height />;
}
</code>
To a Form (artilce form type) callled header_img. but all that does i casue the code to apear in my article when displayed? Point me to a real ezample of where this is actually workling. thx
…. texted postive
Offline
#328 2005-09-14 16:14:19
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Offline
#329 2005-09-14 16:47:22
Re: upm_img_popper
i didn’t put the rules into a stylesheet. i put them into a FORM called header_img.
i still havent seen this actually work!
…. texted postive
Offline
#330 2005-09-14 18:17:17
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
And where did you put the form?
Offline
#331 2005-09-14 19:53:35
Re: upm_img_popper
The form i created under the FORMS tab in texpattern. and i added this to my default page:
<code>
<head>
<txp:if_individual_article>
<txp:article form=“header” />
</txp:if_individual_article>
</head></code>
…. texted postive
Offline
#332 2005-09-14 19:58:44
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Chances are you’ve missed the third form somewhere in there: page calls “header” form, “header” form calls “header_img” form.
Offline
#333 2005-09-14 20:07:16
Re: upm_img_popper
Is this around your css?
<code><style type=“text/css”></style></code>
Refresh Dallas and other Refreshing Cities.
Offline
#334 2005-09-14 20:12:03
Re: upm_img_popper
which third form???? pages has this:
<code>
<txp:if_individual_article>
<txp:article form=“header” />
</txp:if_individual_article>
</head></code>
HEADER form has this:<code>
<txp:upm_article_image form=“header_img” /></code>
and header-img FORM has this:<code>
#header {
background: url(<txp:upm_img_full_url />);
width: <txp:upm_img_full_width />;
height: <txp:upm_img_full_height />;
}</code>
what other form am i needing????
Last edited by bici (2005-09-14 20:14:10)
…. texted postive
Offline
#335 2005-09-14 20:19:41
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Sorry, just two if the page one is right in your page. Jeff is right, you have to have style tags too. I assumed that was obvious, but maybe it isn’t. Gonna go update that thread.
Offline
#336 2005-09-14 20:20:47
Re: upm_img_popper
> tinyfly wrote:
> Is this around your css?
<code><style type=“text/css”></style></code>
tinyfly: Now THAT was a really important piece of information that was not in the documentation. Mary: perhaps this can be added to it.
So we now have some sucess!
EXCEPT that my main header appears on the individual article page, while this new image has replaced my main HEADER image! In other words i have reversed the effect that i was after. BUT it is a step forward! thx…. but how to correct this reversal?
…. texted postive
Offline