Within an include that gets called from all the pages on my site is this piece of code:
{exp:weblog:entries weblog="landingpage" limit="1"}
<a class="logo">{exp:imgsizer:size src="{landinglogo}" height="70" quality="100"}{sized}{/exp:imgsizer:size}</a>
{/exp:weblog:entries}This code works perfectly on home but on subpages the {landinglogo} does not display. I have also tried it without the imagesizer code:
{exp:weblog:entries weblog="landingpage" limit="1"}
{landinglogo}
{/exp:weblog:entries}And again on subpages only I cannot even get it to display what should be the full path to the image with the image name at the end. This had been working up until a few weeks ago (when I checked on it), but now it’s not. I’ve cleared my browser and EE caches, I haven’t moved servers and I know it has some ambition to work given it works on Home/Index but not Subpage/Index.
Now, here’s the rub:
My home url is http://www.domain.com/index/home/COMPANYNAME/ where COMPANYNAME is the title of any entry in our LANDINGPAGE weblog, which also gets an image uploaded to another custom field within that form. When COMPANYNAME is changed in the URL, the logo on the page changes to that company’s logo. For sub pages this url is somewhat longer, as in: http://www.domain.com/index/get_the_facts/this_is_the_page/COMPANYNAME/.
I have the feeling I’m probably doing something wrong here but I swear I had it working a few weeks ago! The only other thing I can think of is I did add an entry to that weblog then deleted it. Perhaps this threw something off?